@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 NiciraEncapEthSrc) { NiciraEncapEthSrc that = (NiciraEncapEthSrc) obj; return Objects.equals(encapEthSrc, that.encapEthSrc); } return false; }
NiciraEncapEthSrc extends AbstractExtension implements ExtensionTreatment { @Override public boolean equals(Object obj) { if (this == obj) { return true; } if (obj instanceof NiciraEncapEthSrc) { NiciraEncapEthSrc that = (NiciraEncapEthSrc) obj; return Objects.equals(encapEthSrc, that.encapEthSrc); } return false; } }
NiciraEncapEthSrc extends AbstractExtension implements ExtensionTreatment { @Override public boolean equals(Object obj) { if (this == obj) { return true; } if (obj instanceof NiciraEncapEthSrc) { NiciraEncapEthSrc that = (NiciraEncapEthSrc) obj; return Objects.equals(encapEthSrc, that.encapEthSrc); } return false; } NiciraEncapEthSrc();  NiciraEncapEthSrc(MacAddress encapEthSrc); }
NiciraEncapEthSrc extends AbstractExtension implements ExtensionTreatment { @Override public boolean equals(Object obj) { if (this == obj) { return true; } if (obj instanceof NiciraEncapEthSrc) { NiciraEncapEthSrc that = (NiciraEncapEthSrc) obj; return Objects.equals(encapEthSrc, that.encapEthSrc); } return false; } NiciraEncapEthSrc();  NiciraEncapEthSrc(MacAddress encapEthSrc); MacAddress encapEthSrc(); @Override ExtensionTreatmentType type(); @Override void deserialize(byte[] data); @Override byte[] serialize(); @Override int hashCode(); @Override boolean equals(Object obj); @Override String toString(); }
NiciraEncapEthSrc extends AbstractExtension implements ExtensionTreatment { @Override public boolean equals(Object obj) { if (this == obj) { return true; } if (obj instanceof NiciraEncapEthSrc) { NiciraEncapEthSrc that = (NiciraEncapEthSrc) obj; return Objects.equals(encapEthSrc, that.encapEthSrc); } return false; } NiciraEncapEthSrc();  NiciraEncapEthSrc(MacAddress encapEthSrc); MacAddress encapEthSrc(); @Override ExtensionTreatmentType type(); @Override void deserialize(byte[] data); @Override byte[] serialize(); @Override int hashCode(); @Override boolean equals(Object obj); @Override String toString();  }