Search in sources :

Example 16 with EqualsBuilder

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

the class QueryWSBase method equals.

@SuppressWarnings({ "rawtypes" })
@Override
public /**
   * Determines if this object is equal to a different one
   */
boolean equals(Object obj) {
    if (obj instanceof QueryWSBase) {
        QueryWSBase that = (QueryWSBase) obj;
        EqualsBuilder builder = new EqualsBuilder();
        builder.append(dataStore, that.dataStore);
        builder.append(queryString, that.queryString);
        builder.append(fields, that.fields);
        builder.append(startKey, that.startKey);
        builder.append(endKey, that.endKey);
        builder.append(filter, that.filter);
        builder.append(limit, that.limit);
        return builder.isEquals();
    }
    return false;
}
Also used : EqualsBuilder(org.apache.commons.lang.builder.EqualsBuilder)

Example 17 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 18 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 19 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 20 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)

Aggregations

EqualsBuilder (org.apache.commons.lang.builder.EqualsBuilder)26 ZooKeeper (org.apache.zookeeper.ZooKeeper)1