@Test public void testJsonSerialization() { RuntimeData.Builder builder = RuntimeData.builder() .setInterfaces(ImmutableMap.of("iface", InterfaceRuntimeData.builder().build())); assertThat( BatfishObjectMapper.clone(builder.build(), RuntimeData.class), equalTo(builder.build())); }
public static Builder builder() { return new Builder(); }
RuntimeData { public static Builder builder() { return new Builder(); } }
RuntimeData { public static Builder builder() { return new Builder(); } @VisibleForTesting private  RuntimeData(@Nonnull Map<String, InterfaceRuntimeData> interfaces); }
RuntimeData { public static Builder builder() { return new Builder(); } @VisibleForTesting private  RuntimeData(@Nonnull Map<String, InterfaceRuntimeData> interfaces); static Builder builder(); @JsonIgnore @Nullable InterfaceRuntimeData getInterface(String ifaceName); @Override boolean equals(@Nullable Object obj); @Override int hashCode(); @Override String toString(); }
RuntimeData { public static Builder builder() { return new Builder(); } @VisibleForTesting private  RuntimeData(@Nonnull Map<String, InterfaceRuntimeData> interfaces); static Builder builder(); @JsonIgnore @Nullable InterfaceRuntimeData getInterface(String ifaceName); @Override boolean equals(@Nullable Object obj); @Override int hashCode(); @Override String toString(); static final RuntimeData EMPTY_RUNTIME_DATA; }