@Test public void testEquals() { final NiciraNshNp nshNp1 = new NiciraNshNp(np1); final NiciraNshNp sameAsNshNp1 = new NiciraNshNp(np1); final NiciraNshNp nshNp2 = new NiciraNshNp(np2); new EqualsTester().addEqualityGroup(nshNp1, sameAsNshNp1).addEqualityGroup(nshNp2) .testEquals(); }
@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (obj instanceof NiciraNshNp) { NiciraNshNp that = (NiciraNshNp) obj; return Objects.equals(nshNp, that.nshNp); } return false; }
NiciraNshNp extends AbstractExtension implements ExtensionTreatment { @Override public boolean equals(Object obj) { if (this == obj) { return true; } if (obj instanceof NiciraNshNp) { NiciraNshNp that = (NiciraNshNp) obj; return Objects.equals(nshNp, that.nshNp); } return false; } }
NiciraNshNp extends AbstractExtension implements ExtensionTreatment { @Override public boolean equals(Object obj) { if (this == obj) { return true; } if (obj instanceof NiciraNshNp) { NiciraNshNp that = (NiciraNshNp) obj; return Objects.equals(nshNp, that.nshNp); } return false; } NiciraNshNp();  NiciraNshNp(byte nshNp); }
NiciraNshNp extends AbstractExtension implements ExtensionTreatment { @Override public boolean equals(Object obj) { if (this == obj) { return true; } if (obj instanceof NiciraNshNp) { NiciraNshNp that = (NiciraNshNp) obj; return Objects.equals(nshNp, that.nshNp); } return false; } NiciraNshNp();  NiciraNshNp(byte nshNp); byte nshNp(); @Override ExtensionTreatmentType type(); @Override void deserialize(byte[] data); @Override byte[] serialize(); @Override int hashCode(); @Override boolean equals(Object obj); @Override String toString(); }
NiciraNshNp extends AbstractExtension implements ExtensionTreatment { @Override public boolean equals(Object obj) { if (this == obj) { return true; } if (obj instanceof NiciraNshNp) { NiciraNshNp that = (NiciraNshNp) obj; return Objects.equals(nshNp, that.nshNp); } return false; } NiciraNshNp();  NiciraNshNp(byte nshNp); byte nshNp(); @Override ExtensionTreatmentType type(); @Override void deserialize(byte[] data); @Override byte[] serialize(); @Override int hashCode(); @Override boolean equals(Object obj); @Override String toString();  }