Search in sources :

Example 51 with EqualsBuilder

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();
}
Also used : EqualsBuilder(org.apache.commons.lang.builder.EqualsBuilder)

Example 52 with EqualsBuilder

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();
}
Also used : EqualsBuilder(org.apache.commons.lang.builder.EqualsBuilder)

Example 53 with EqualsBuilder

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();
}
Also used : EqualsBuilder(org.apache.commons.lang.builder.EqualsBuilder)

Example 54 with EqualsBuilder

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();
}
Also used : EqualsBuilder(org.apache.commons.lang.builder.EqualsBuilder)

Example 55 with EqualsBuilder

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;
}
Also used : EqualsBuilder(org.apache.commons.lang.builder.EqualsBuilder)

Aggregations

EqualsBuilder (org.apache.commons.lang.builder.EqualsBuilder)95 ZooKeeper (org.apache.zookeeper.ZooKeeper)1 Product (org.candlepin.model.Product)1 AbstractStepMeta (org.pentaho.di.core.util.AbstractStepMeta)1 IPentahoRole (org.pentaho.platform.api.engine.security.userroledao.IPentahoRole)1 IPentahoUser (org.pentaho.platform.api.engine.security.userroledao.IPentahoUser)1