Search in sources :

Example 21 with EqualsBuilder

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

the class Product method equals.

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

Example 22 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)

Example 23 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)

Example 24 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 25 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)

Aggregations

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