@Test public void testJsonSerialization() { SnapshotRuntimeData.Builder builder = SnapshotRuntimeData.builder() .setRuntimeData(ImmutableMap.of("hostname", RuntimeData.EMPTY_RUNTIME_DATA)); assertThat( BatfishObjectMapper.clone(builder.build(), SnapshotRuntimeData.class), equalTo(builder.build())); }
public static Builder builder() { return new Builder(); }
SnapshotRuntimeData { public static Builder builder() { return new Builder(); } }
SnapshotRuntimeData { public static Builder builder() { return new Builder(); } @VisibleForTesting  SnapshotRuntimeData(Map<String, RuntimeData> runtimeData); }
SnapshotRuntimeData { public static Builder builder() { return new Builder(); } @VisibleForTesting  SnapshotRuntimeData(Map<String, RuntimeData> runtimeData); static Builder builder(); @JsonIgnore @Nonnull RuntimeData getRuntimeData(String hostname); @JsonIgnore @Nonnull Set<NodeInterfacePair> getBlacklistedInterfaces(); Builder toBuilder(); @Override boolean equals(@Nullable Object obj); @Override int hashCode(); @Override String toString(); }
SnapshotRuntimeData { public static Builder builder() { return new Builder(); } @VisibleForTesting  SnapshotRuntimeData(Map<String, RuntimeData> runtimeData); static Builder builder(); @JsonIgnore @Nonnull RuntimeData getRuntimeData(String hostname); @JsonIgnore @Nonnull Set<NodeInterfacePair> getBlacklistedInterfaces(); Builder toBuilder(); @Override boolean equals(@Nullable Object obj); @Override int hashCode(); @Override String toString(); static final SnapshotRuntimeData EMPTY_SNAPSHOT_RUNTIME_DATA; }