@Test public void testEquals() { final NiciraEncapEthDst encapEthDst1 = new NiciraEncapEthDst(mac1); final NiciraEncapEthDst sameAsEncapEthDst1 = new NiciraEncapEthDst(mac1); final NiciraEncapEthDst encapEthDst2 = new NiciraEncapEthDst(mac2); new EqualsTester().addEqualityGroup(encapEthDst1, sameAsEncapEthDst1).addEqualityGroup(encapEthDst2) .testEquals(); }
@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (obj instanceof NiciraEncapEthDst) { NiciraEncapEthDst that = (NiciraEncapEthDst) obj; return Objects.equals(encapEthDst, that.encapEthDst); } return false; }
NiciraEncapEthDst extends AbstractExtension implements ExtensionTreatment { @Override public boolean equals(Object obj) { if (this == obj) { return true; } if (obj instanceof NiciraEncapEthDst) { NiciraEncapEthDst that = (NiciraEncapEthDst) obj; return Objects.equals(encapEthDst, that.encapEthDst); } return false; } }
NiciraEncapEthDst extends AbstractExtension implements ExtensionTreatment { @Override public boolean equals(Object obj) { if (this == obj) { return true; } if (obj instanceof NiciraEncapEthDst) { NiciraEncapEthDst that = (NiciraEncapEthDst) obj; return Objects.equals(encapEthDst, that.encapEthDst); } return false; } NiciraEncapEthDst();  NiciraEncapEthDst(MacAddress encapEthDst); }
NiciraEncapEthDst extends AbstractExtension implements ExtensionTreatment { @Override public boolean equals(Object obj) { if (this == obj) { return true; } if (obj instanceof NiciraEncapEthDst) { NiciraEncapEthDst that = (NiciraEncapEthDst) obj; return Objects.equals(encapEthDst, that.encapEthDst); } return false; } NiciraEncapEthDst();  NiciraEncapEthDst(MacAddress encapEthDst); MacAddress encapEthDst(); @Override ExtensionTreatmentType type(); @Override void deserialize(byte[] data); @Override byte[] serialize(); @Override int hashCode(); @Override boolean equals(Object obj); @Override String toString(); }
NiciraEncapEthDst extends AbstractExtension implements ExtensionTreatment { @Override public boolean equals(Object obj) { if (this == obj) { return true; } if (obj instanceof NiciraEncapEthDst) { NiciraEncapEthDst that = (NiciraEncapEthDst) obj; return Objects.equals(encapEthDst, that.encapEthDst); } return false; } NiciraEncapEthDst();  NiciraEncapEthDst(MacAddress encapEthDst); MacAddress encapEthDst(); @Override ExtensionTreatmentType type(); @Override void deserialize(byte[] data); @Override byte[] serialize(); @Override int hashCode(); @Override boolean equals(Object obj); @Override String toString();  }