@Test public void testJacksonSerialization() { Bridge bridge = Bridge.builder() .setPorts(ImmutableSet.of("a")) .setPvid(2) .setVids(IntegerSpace.of(2)) .build(); assertThat(BatfishObjectMapper.clone(bridge, Bridge.class), equalTo(bridge)); }
public static @Nonnull Builder builder() { return new Builder(); }
Bridge implements Serializable { public static @Nonnull Builder builder() { return new Builder(); } }
Bridge implements Serializable { public static @Nonnull Builder builder() { return new Builder(); } private  Bridge(SortedSet<String> ports, int pvid, IntegerSpace vids); }
Bridge implements Serializable { public static @Nonnull Builder builder() { return new Builder(); } private  Bridge(SortedSet<String> ports, int pvid, IntegerSpace vids); static @Nonnull Builder builder(); @JsonProperty(PROP_PORTS) @Nonnull Set<String> getPorts(); @JsonProperty(PROP_PVID) int getPvid(); @JsonProperty(PROP_VIDS) @Nonnull IntegerSpace getVids(); @Override boolean equals(@Nullable Object obj); @Override int hashCode(); @Override @Nonnull String toString(); }
Bridge implements Serializable { public static @Nonnull Builder builder() { return new Builder(); } private  Bridge(SortedSet<String> ports, int pvid, IntegerSpace vids); static @Nonnull Builder builder(); @JsonProperty(PROP_PORTS) @Nonnull Set<String> getPorts(); @JsonProperty(PROP_PVID) int getPvid(); @JsonProperty(PROP_VIDS) @Nonnull IntegerSpace getVids(); @Override boolean equals(@Nullable Object obj); @Override int hashCode(); @Override @Nonnull String toString();  }