@Test public void testJavaSerialization() { Mlag m = Mlag.builder() .setId("ID") .setPeerAddress(Ip.parse("1.1.1.1")) .setLocalInterface("Ethernet1") .build(); assertThat(SerializationUtils.clone(m), equalTo(m)); }
public static Builder builder() { return new Builder(); }
Mlag implements Serializable { public static Builder builder() { return new Builder(); } }
Mlag implements Serializable { public static Builder builder() { return new Builder(); } private  Mlag(
      String id,
      @Nullable Ip peerAddress,
      @Nullable String peerInterface,
      @Nullable String localInterface); }
Mlag implements Serializable { public static Builder builder() { return new Builder(); } private  Mlag(
      String id,
      @Nullable Ip peerAddress,
      @Nullable String peerInterface,
      @Nullable String localInterface); @JsonProperty(PROP_ID) String getId(); @Nullable @JsonProperty(PROP_PEER_ADDRESS) Ip getPeerAddress(); @Nullable @JsonProperty(PROP_PEER_INTERFACE) String getPeerInterface(); @Nullable @JsonProperty(PROP_LOCAL_INTERFACE) String getLocalInterface(); @Override boolean equals(Object o); @Override int hashCode(); static Builder builder(); }
Mlag implements Serializable { public static Builder builder() { return new Builder(); } private  Mlag(
      String id,
      @Nullable Ip peerAddress,
      @Nullable String peerInterface,
      @Nullable String localInterface); @JsonProperty(PROP_ID) String getId(); @Nullable @JsonProperty(PROP_PEER_ADDRESS) Ip getPeerAddress(); @Nullable @JsonProperty(PROP_PEER_INTERFACE) String getPeerInterface(); @Nullable @JsonProperty(PROP_LOCAL_INTERFACE) String getLocalInterface(); @Override boolean equals(Object o); @Override int hashCode(); static Builder builder();  }