@Test public void testJavaSerialization() { Ipv4UnicastAddressFamily af = Ipv4UnicastAddressFamily.builder() .setExportPolicy("export") .setImportPolicy("import") .setExportPolicySources(ImmutableSortedSet.of("foo")) .setRouteReflectorClient(true) .build(); assertThat(SerializationUtils.clone(af), equalTo(af)); }
public static Builder builder() { return new Builder(); }
Ipv4UnicastAddressFamily extends AddressFamily { public static Builder builder() { return new Builder(); } }
Ipv4UnicastAddressFamily extends AddressFamily { public static Builder builder() { return new Builder(); } private  Ipv4UnicastAddressFamily(
      AddressFamilyCapabilities addressFamilyCapabilities,
      @Nullable String exportPolicy,
      SortedSet<String> exportPolicySources,
      @Nullable String importPolicy,
      SortedSet<String> importPolicySources,
      boolean routeReflectorClient); }
Ipv4UnicastAddressFamily extends AddressFamily { public static Builder builder() { return new Builder(); } private  Ipv4UnicastAddressFamily(
      AddressFamilyCapabilities addressFamilyCapabilities,
      @Nullable String exportPolicy,
      SortedSet<String> exportPolicySources,
      @Nullable String importPolicy,
      SortedSet<String> importPolicySources,
      boolean routeReflectorClient); @Override Type getType(); @Override boolean equals(@Nullable Object o); @Override int hashCode(); static Builder builder(); }
Ipv4UnicastAddressFamily extends AddressFamily { public static Builder builder() { return new Builder(); } private  Ipv4UnicastAddressFamily(
      AddressFamilyCapabilities addressFamilyCapabilities,
      @Nullable String exportPolicy,
      SortedSet<String> exportPolicySources,
      @Nullable String importPolicy,
      SortedSet<String> importPolicySources,
      boolean routeReflectorClient); @Override Type getType(); @Override boolean equals(@Nullable Object o); @Override int hashCode(); static Builder builder();  }