@Test public void testInterfaceRuntimeDataJsonSerialization() { InterfaceRuntimeData.Builder irdBuilder = InterfaceRuntimeData.builder() .setAddress(ConcreteInterfaceAddress.parse("1.2.3.4/24")) .setBandwidth(1d) .setLineUp(true) .setSpeed(2d); assertThat( BatfishObjectMapper.clone(irdBuilder.build(), InterfaceRuntimeData.class), equalTo(irdBuilder.build())); }
static Builder builder() { return new Builder(); }
InterfaceRuntimeData { static Builder builder() { return new Builder(); } }
InterfaceRuntimeData { static Builder builder() { return new Builder(); } @JsonCreator @VisibleForTesting  InterfaceRuntimeData(
      @Nullable @JsonProperty(PROP_ADDRESS) ConcreteInterfaceAddress address,
      @Nullable @JsonProperty(PROP_BANDWIDTH) Double bandwidth,
      @Nullable @JsonProperty(PROP_LINE_UP) Boolean lineUp,
      @Nullable @JsonProperty(PROP_SPEED) Double speed); }
InterfaceRuntimeData { static Builder builder() { return new Builder(); } @JsonCreator @VisibleForTesting  InterfaceRuntimeData(
      @Nullable @JsonProperty(PROP_ADDRESS) ConcreteInterfaceAddress address,
      @Nullable @JsonProperty(PROP_BANDWIDTH) Double bandwidth,
      @Nullable @JsonProperty(PROP_LINE_UP) Boolean lineUp,
      @Nullable @JsonProperty(PROP_SPEED) Double speed); @JsonProperty(PROP_ADDRESS) @Nullable ConcreteInterfaceAddress getAddress(); @JsonProperty(PROP_BANDWIDTH) @Nullable Double getBandwidth(); @JsonProperty(PROP_LINE_UP) @Nullable Boolean getLineUp(); @JsonProperty(PROP_SPEED) @Nullable Double getSpeed(); @Override boolean equals(@Nullable Object obj); @Override int hashCode(); @Override String toString(); }
InterfaceRuntimeData { static Builder builder() { return new Builder(); } @JsonCreator @VisibleForTesting  InterfaceRuntimeData(
      @Nullable @JsonProperty(PROP_ADDRESS) ConcreteInterfaceAddress address,
      @Nullable @JsonProperty(PROP_BANDWIDTH) Double bandwidth,
      @Nullable @JsonProperty(PROP_LINE_UP) Boolean lineUp,
      @Nullable @JsonProperty(PROP_SPEED) Double speed); @JsonProperty(PROP_ADDRESS) @Nullable ConcreteInterfaceAddress getAddress(); @JsonProperty(PROP_BANDWIDTH) @Nullable Double getBandwidth(); @JsonProperty(PROP_LINE_UP) @Nullable Boolean getLineUp(); @JsonProperty(PROP_SPEED) @Nullable Double getSpeed(); @Override boolean equals(@Nullable Object obj); @Override int hashCode(); @Override String toString();  }