Search in sources :

Example 11 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 12 with EqualsBuilder

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

the class Version method equals.

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

Example 13 with EqualsBuilder

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

the class BagBranch method equals.

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

Example 14 with EqualsBuilder

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

the class Company method equals.

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

Example 15 with EqualsBuilder

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

the class Image method equals.

@Override
public boolean equals(Object obj) {
    if (this == obj) {
        return true;
    }
    if (!(obj instanceof Image)) {
        return false;
    }
    Image that = (Image) obj;
    EqualsBuilder eb = new EqualsBuilder();
    eb.append(name, that.name);
    eb.append(product, that.product);
    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