Search in sources :

Example 86 with EqualsBuilder

use of org.apache.commons.lang.builder.EqualsBuilder in project vladmihalcea.wordpress.com by vladmihalcea.

the class SubVersion method equals.

@Override
public boolean equals(Object obj) {
    if (this == obj) {
        return true;
    }
    if (!(obj instanceof SubVersion)) {
        return false;
    }
    SubVersion that = (SubVersion) obj;
    EqualsBuilder eb = new EqualsBuilder();
    eb.append(getCode(), that.getCode());
    return eb.isEquals();
}
Also used : EqualsBuilder(org.apache.commons.lang.builder.EqualsBuilder)

Example 87 with EqualsBuilder

use of org.apache.commons.lang.builder.EqualsBuilder in project vladmihalcea.wordpress.com by vladmihalcea.

the class WarehouseProductInfo method equals.

@Override
public boolean equals(Object obj) {
    if (this == obj) {
        return true;
    }
    if (!(obj instanceof WarehouseProductInfo)) {
        return false;
    }
    WarehouseProductInfo that = (WarehouseProductInfo) obj;
    EqualsBuilder eb = new EqualsBuilder();
    eb.append(product, that.getProduct());
    return eb.isEquals();
}
Also used : EqualsBuilder(org.apache.commons.lang.builder.EqualsBuilder)

Example 88 with EqualsBuilder

use of org.apache.commons.lang.builder.EqualsBuilder in project vladmihalcea.wordpress.com by vladmihalcea.

the class BagLeaf method equals.

@Override
public boolean equals(Object obj) {
    if (this == obj) {
        return true;
    }
    if (!(obj instanceof BagLeaf)) {
        return false;
    }
    BagLeaf that = (BagLeaf) obj;
    EqualsBuilder eb = new EqualsBuilder();
    eb.append(index, that.index);
    return eb.isEquals();
}
Also used : EqualsBuilder(org.apache.commons.lang.builder.EqualsBuilder)

Example 89 with EqualsBuilder

use of org.apache.commons.lang.builder.EqualsBuilder in project cobar by alibaba.

the class Tuple method equals.

@Override
public boolean equals(Object obj) {
    if (obj == this)
        return true;
    if (!(obj instanceof Tuple))
        return false;
    Tuple that = (Tuple) obj;
    EqualsBuilder builder = new EqualsBuilder();
    builder.append(this.objects, that.objects);
    return builder.isEquals();
}
Also used : EqualsBuilder(org.apache.commons.lang.builder.EqualsBuilder)

Example 90 with EqualsBuilder

use of org.apache.commons.lang.builder.EqualsBuilder in project gora by apache.

the class DataStoreBase method equals.

@Override
public boolean equals(Object obj) {
    if (obj instanceof DataStoreBase) {
        @SuppressWarnings("rawtypes") DataStoreBase that = (DataStoreBase) obj;
        EqualsBuilder builder = new EqualsBuilder();
        builder.append(this.keyClass, that.keyClass);
        builder.append(this.persistentClass, that.persistentClass);
        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