@Test public void testEquals() { new EqualsTester() .addEqualityGroup( new VendorStructureId("f1", "t1", "n1"), new VendorStructureId("f1", "t1", "n1")) .addEqualityGroup(new VendorStructureId("f2", "t1", "n1")) .addEqualityGroup(new VendorStructureId("f1", "t2", "n1")) .addEqualityGroup(new VendorStructureId("f1", "t1", "n2")) .testEquals(); }
@Override public boolean equals(@Nullable Object obj) { if (this == obj) { return true; } if (!(obj instanceof VendorStructureId)) { return false; } VendorStructureId other = (VendorStructureId) obj; return _filename.equals(other._filename) && _structureType.equals(other._structureType) && _structureName.equals(other._structureName); }
VendorStructureId implements Serializable { @Override public boolean equals(@Nullable Object obj) { if (this == obj) { return true; } if (!(obj instanceof VendorStructureId)) { return false; } VendorStructureId other = (VendorStructureId) obj; return _filename.equals(other._filename) && _structureType.equals(other._structureType) && _structureName.equals(other._structureName); } }
VendorStructureId implements Serializable { @Override public boolean equals(@Nullable Object obj) { if (this == obj) { return true; } if (!(obj instanceof VendorStructureId)) { return false; } VendorStructureId other = (VendorStructureId) obj; return _filename.equals(other._filename) && _structureType.equals(other._structureType) && _structureName.equals(other._structureName); } VendorStructureId(String filename, String structureType, String structureName); }
VendorStructureId implements Serializable { @Override public boolean equals(@Nullable Object obj) { if (this == obj) { return true; } if (!(obj instanceof VendorStructureId)) { return false; } VendorStructureId other = (VendorStructureId) obj; return _filename.equals(other._filename) && _structureType.equals(other._structureType) && _structureName.equals(other._structureName); } VendorStructureId(String filename, String structureType, String structureName); @JsonProperty(PROP_FILENAME) String getFilename(); @JsonProperty(PROP_STRUCTURE_TYPE) String getStructureType(); @JsonProperty(PROP_STRUCTURE_NAME) String getStructureName(); @Override boolean equals(@Nullable Object obj); @Override int hashCode(); @Override String toString(); }
VendorStructureId implements Serializable { @Override public boolean equals(@Nullable Object obj) { if (this == obj) { return true; } if (!(obj instanceof VendorStructureId)) { return false; } VendorStructureId other = (VendorStructureId) obj; return _filename.equals(other._filename) && _structureType.equals(other._structureType) && _structureName.equals(other._structureName); } VendorStructureId(String filename, String structureType, String structureName); @JsonProperty(PROP_FILENAME) String getFilename(); @JsonProperty(PROP_STRUCTURE_TYPE) String getStructureType(); @JsonProperty(PROP_STRUCTURE_NAME) String getStructureName(); @Override boolean equals(@Nullable Object obj); @Override int hashCode(); @Override String toString();  }