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