ContentData extends CandlepinDTO implements ContentInfo { @Override public boolean equals(Object obj) { if (obj == null || !(obj instanceof ContentData)) { return false; } if (obj == this) { return true; } ContentData that = (ContentData) obj; EqualsBuilder builder = new EqualsBuilder() .append(this.uuid, that.uuid) .append(this.id, that.id) .append(this.type, that.type) .append(this.label, that.label) .append(this.name, that.name) .append(this.vendor, that.vendor) .append(this.contentUrl, that.contentUrl) .append(this.requiredTags, that.requiredTags) .append(this.releaseVer, that.releaseVer) .append(this.gpgUrl, that.gpgUrl) .append(this.metadataExpire, that.metadataExpire) .append(this.modifiedProductIds, that.modifiedProductIds) .append(this.arches, that.arches) .append(this.locked, that.locked); return super.equals(obj) && builder.isEquals(); } ContentData();  ContentData(String id, String name, String type, String label, String vendor);  ContentData(ContentData source);  ContentData(Content source); String getUuid(); ContentData setUuid(String uuid); String getId(); ContentData setId(String id); String getType(); ContentData setType(String type); String getLabel(); ContentData setLabel(String label); String getName(); ContentData setName(String name); String getVendor(); ContentData setVendor(String vendor); String getContentUrl(); ContentData setContentUrl(String contentUrl); String getRequiredTags(); ContentData setRequiredTags(String requiredTags); @JsonProperty("releaseVer") String getReleaseVersion(); @JsonProperty("releaseVer") ContentData setReleaseVersion(String releaseVer); String getGpgUrl(); ContentData setGpgUrl(String gpgUrl); Long getMetadataExpiration(); ContentData setMetadataExpiration(Long metadataExpire); Collection<String> getModifiedProductIds(); @Override Collection<String> getRequiredProductIds(); boolean addModifiedProductId(String productId); boolean removeModifiedProductId(String productId); ContentData setModifiedProductIds(Collection<String> modifiedProductIds); ContentData setRequiredProductIds(Collection<String> requiredProductIds); String getArches(); ContentData setArches(String arches); @XmlTransient Boolean isLocked(); ContentData setLocked(Boolean locked); @Override String toString(); @Override boolean equals(Object obj); @Override int hashCode(); @Override Object clone(); ContentData populate(ContentData source); ContentData populate(Content source); static final long serialVersionUID; }
@Test public void testBaseEquality() { ContentData lhs = new ContentData(); ContentData rhs = new ContentData(); assertFalse(lhs.equals(null)); assertTrue(lhs.equals(lhs)); assertTrue(rhs.equals(rhs)); assertTrue(lhs.equals(rhs)); assertTrue(rhs.equals(lhs)); }