Search in sources :

Example 26 with EqualsBuilder

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

the class QueryBase method equals.

@SuppressWarnings({ "rawtypes" })
@Override
public boolean equals(Object obj) {
    if (obj instanceof QueryBase) {
        QueryBase that = (QueryBase) 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);
        builder.append(localFilterEnabled, that.localFilterEnabled);
        return builder.isEquals();
    }
    return false;
}
Also used : EqualsBuilder(org.apache.commons.lang.builder.EqualsBuilder)

Aggregations

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