@Test public void shouldEquate() { assertTrue(new DataSourceObject("foo", null, true).equals(new DataSourceObject("foo", null, false))); assertFalse(new DataSourceObject("foo", null, true).equals(new DataSourceObject("goo", null, true))); }
@Override public boolean equals(Object o) { if (!(o instanceof DataSourceObject)) { return false; } return new EqualsBuilder().append(this.objectId, ((DataSourceObject) o).objectId).isEquals(); }
DataSourceObject { @Override public boolean equals(Object o) { if (!(o instanceof DataSourceObject)) { return false; } return new EqualsBuilder().append(this.objectId, ((DataSourceObject) o).objectId).isEquals(); } }
DataSourceObject { @Override public boolean equals(Object o) { if (!(o instanceof DataSourceObject)) { return false; } return new EqualsBuilder().append(this.objectId, ((DataSourceObject) o).objectId).isEquals(); } DataSourceObject(String objectId, Object objectValue, boolean failIfNotFound); }
DataSourceObject { @Override public boolean equals(Object o) { if (!(o instanceof DataSourceObject)) { return false; } return new EqualsBuilder().append(this.objectId, ((DataSourceObject) o).objectId).isEquals(); } DataSourceObject(String objectId, Object objectValue, boolean failIfNotFound); String getObjectId(); Object getObjectValue(); boolean isFailIfNotFound(); boolean isNullWarningPublished(); void setNullWarningPublished(boolean nullWarningPublished); @Override boolean equals(Object o); @Override int hashCode(); }
DataSourceObject { @Override public boolean equals(Object o) { if (!(o instanceof DataSourceObject)) { return false; } return new EqualsBuilder().append(this.objectId, ((DataSourceObject) o).objectId).isEquals(); } DataSourceObject(String objectId, Object objectValue, boolean failIfNotFound); String getObjectId(); Object getObjectValue(); boolean isFailIfNotFound(); boolean isNullWarningPublished(); void setNullWarningPublished(boolean nullWarningPublished); @Override boolean equals(Object o); @Override int hashCode();  }