@Test public void testEquals() { Mlag.Builder b = Mlag.builder() .setId("id") .setLocalInterface("Vlan1") .setPeerAddress(Ip.parse("1.1.1.1")) .setPeerInterface("Eth1"); new EqualsTester() .addEqualityGroup(b.build(), b.build()) .addEqualityGroup(new Object()) .addEqualityGroup(b.setId("id2").build()) .addEqualityGroup(b.setPeerInterface("Eth2").build()) .addEqualityGroup(b.setLocalInterface("Vlan2").build()) .addEqualityGroup(b.setPeerAddress(Ip.parse("2.2.2.2")).build()) .testEquals(); }
@Override public boolean equals(Object o) { if (this == o) { return true; } if (!(o instanceof Mlag)) { return false; } Mlag mlag = (Mlag) o; return _id.equals(mlag._id) && Objects.equals(_peerAddress, mlag._peerAddress) && Objects.equals(_peerInterface, mlag._peerInterface) && Objects.equals(_localInterface, mlag._localInterface); }
Mlag implements Serializable { @Override public boolean equals(Object o) { if (this == o) { return true; } if (!(o instanceof Mlag)) { return false; } Mlag mlag = (Mlag) o; return _id.equals(mlag._id) && Objects.equals(_peerAddress, mlag._peerAddress) && Objects.equals(_peerInterface, mlag._peerInterface) && Objects.equals(_localInterface, mlag._localInterface); } }
Mlag implements Serializable { @Override public boolean equals(Object o) { if (this == o) { return true; } if (!(o instanceof Mlag)) { return false; } Mlag mlag = (Mlag) o; return _id.equals(mlag._id) && Objects.equals(_peerAddress, mlag._peerAddress) && Objects.equals(_peerInterface, mlag._peerInterface) && Objects.equals(_localInterface, mlag._localInterface); } private  Mlag(
      String id,
      @Nullable Ip peerAddress,
      @Nullable String peerInterface,
      @Nullable String localInterface); }
Mlag implements Serializable { @Override public boolean equals(Object o) { if (this == o) { return true; } if (!(o instanceof Mlag)) { return false; } Mlag mlag = (Mlag) o; return _id.equals(mlag._id) && Objects.equals(_peerAddress, mlag._peerAddress) && Objects.equals(_peerInterface, mlag._peerInterface) && Objects.equals(_localInterface, mlag._localInterface); } 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 { @Override public boolean equals(Object o) { if (this == o) { return true; } if (!(o instanceof Mlag)) { return false; } Mlag mlag = (Mlag) o; return _id.equals(mlag._id) && Objects.equals(_peerAddress, mlag._peerAddress) && Objects.equals(_peerInterface, mlag._peerInterface) && Objects.equals(_localInterface, mlag._localInterface); } 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();  }