use of org.apache.commons.lang.builder.EqualsBuilder in project POL-POM-5 by PlayOnLinux.
the class IconsListElement method equals.
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
IconsListElement<?> that = (IconsListElement<?>) o;
EqualsBuilder builder = new EqualsBuilder();
builder.append(item, that.item);
return builder.isEquals();
}
use of org.apache.commons.lang.builder.EqualsBuilder in project POL-POM-5 by PlayOnLinux.
the class LocalRepository method equals.
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
LocalRepository that = (LocalRepository) o;
EqualsBuilder builder = new EqualsBuilder();
builder.append(repositoryDirectory, that.repositoryDirectory);
return builder.isEquals();
}
use of org.apache.commons.lang.builder.EqualsBuilder in project POL-POM-5 by PlayOnLinux.
the class BackgroundRepository method equals.
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
BackgroundRepository that = (BackgroundRepository) o;
EqualsBuilder builder = new EqualsBuilder();
builder.append(delegatedRepository, that.delegatedRepository);
return builder.isEquals();
}
use of org.apache.commons.lang.builder.EqualsBuilder in project incubator-rya by apache.
the class MergeParentMetadata method equals.
@Override
public boolean equals(final Object obj) {
if (!(obj instanceof MergeParentMetadata)) {
return false;
}
final MergeParentMetadata other = (MergeParentMetadata) obj;
final EqualsBuilder builder = new EqualsBuilder().append(getRyaInstanceName(), other.getRyaInstanceName()).append(getTimestamp(), other.getTimestamp()).append(getFilterTimestamp(), other.getFilterTimestamp()).append(getParentTimeOffset(), other.getParentTimeOffset());
return builder.isEquals();
}
use of org.apache.commons.lang.builder.EqualsBuilder in project candlepin by candlepin.
the class Owner method equals.
// Generated by Netbeans
@Override
public boolean equals(Object obj) {
if (obj == this) {
return true;
}
// should update this line to also likely check the parent's equality bits.
if (obj instanceof Owner) {
Owner that = (Owner) obj;
// Pull the parent owner IDs, as we're not interested in verifying that the parent owners
// themselves are equal; just so long as they point to the same parent owner.
String lpoid = this.getParentOwner() != null ? this.getParentOwner().getId() : null;
String rpoid = that.getParentOwner() != null ? that.getParentOwner().getId() : null;
// Same with the upstream consumer
String lucid = this.getUpstreamConsumer() != null ? this.getUpstreamConsumer().getId() : null;
String rucid = that.getUpstreamConsumer() != null ? that.getUpstreamConsumer().getId() : null;
EqualsBuilder builder = new EqualsBuilder().append(this.getId(), that.getId()).append(this.getKey(), that.getKey()).append(this.getDisplayName(), that.getDisplayName()).append(lpoid, rpoid).append(this.getContentPrefix(), that.getContentPrefix()).append(this.getDefaultServiceLevel(), that.getDefaultServiceLevel()).append(lucid, rucid).append(this.getLogLevel(), that.getLogLevel()).append(this.isAutobindDisabled(), that.isAutobindDisabled()).append(this.getContentAccessMode(), that.getContentAccessMode()).append(this.getContentAccessModeList(), that.getContentAccessModeList());
return builder.isEquals();
}
return false;
}
Aggregations