@Test public void testJavaSerialization() { Layer2VniConfig vni = Layer2VniConfig.builder() .setVni(1) .setVrf("v") .setRouteDistinguisher(RouteDistinguisher.from(65555L, 1)) .setRouteTarget(ExtendedCommunity.of(0, 1, 1)) .build(); assertThat(SerializationUtils.clone(vni), equalTo(vni)); }
public static Builder builder() { return new Builder(); }
Layer2VniConfig extends VniConfig implements Serializable, Comparable<Layer2VniConfig> { public static Builder builder() { return new Builder(); } }
Layer2VniConfig extends VniConfig implements Serializable, Comparable<Layer2VniConfig> { public static Builder builder() { return new Builder(); } private  Layer2VniConfig(
      int vni,
      String vrf,
      RouteDistinguisher rd,
      ExtendedCommunity routeTarget,
      String importRouteTarget); }
Layer2VniConfig extends VniConfig implements Serializable, Comparable<Layer2VniConfig> { public static Builder builder() { return new Builder(); } private  Layer2VniConfig(
      int vni,
      String vrf,
      RouteDistinguisher rd,
      ExtendedCommunity routeTarget,
      String importRouteTarget); @Override boolean equals(@Nullable Object o); @Override int hashCode(); @Override int compareTo(Layer2VniConfig o); @Override String toString(); static Builder builder(); }
Layer2VniConfig extends VniConfig implements Serializable, Comparable<Layer2VniConfig> { public static Builder builder() { return new Builder(); } private  Layer2VniConfig(
      int vni,
      String vrf,
      RouteDistinguisher rd,
      ExtendedCommunity routeTarget,
      String importRouteTarget); @Override boolean equals(@Nullable Object o); @Override int hashCode(); @Override int compareTo(Layer2VniConfig o); @Override String toString(); static Builder builder();  }