Example usage for org.apache.commons.lang3.builder EqualsBuilder EqualsBuilder

List of usage examples for org.apache.commons.lang3.builder EqualsBuilder EqualsBuilder

Introduction

In this page you can find the example usage for org.apache.commons.lang3.builder EqualsBuilder EqualsBuilder.

Prototype

public EqualsBuilder() 

Source Link

Document

Constructor for EqualsBuilder.

Starts off assuming that equals is true.

Usage

From source file:com.omertron.themoviedbapi.model.PersonCrew.java

@Override
public boolean equals(Object obj) {
    if (obj instanceof PersonCrew) {
        final PersonCrew other = (PersonCrew) obj;
        return new EqualsBuilder().append(id, other.id).append(name, other.name)
                .append(department, other.department).append(job, other.job).isEquals();
    } else {/* w  w w.  j  a v a  2s.c o m*/
        return false;
    }
}

From source file:ca.travelagency.identity.SystemUserRole.java

@Override
public boolean equals(Object object) {
    if (this == object) {
        return true;
    }/* ww  w  .  j  ava 2s.  c o  m*/
    if (!(object instanceof SystemUserRole)) {
        return false;
    }
    SystemUserRole other = (SystemUserRole) object;
    return new EqualsBuilder().append(getRole(), other.getRole()).isEquals();
}

From source file:com.antonjohansson.elasticsearchshell.domain.node.NodesInfo.java

@Override
public boolean equals(Object obj) {
    if (obj == null || obj.getClass() != getClass()) {
        return false;
    }/*  ww  w.j a  v  a2  s.  com*/
    if (obj == this) {
        return true;
    }

    NodesInfo that = (NodesInfo) obj;
    return new EqualsBuilder().append(this.clusterName, that.clusterName).append(this.nodes, that.nodes)
            .isEquals();
}

From source file:ca.travelagency.config.Parameter.java

@Override
public boolean equals(Object object) {
    if (this == object) {
        return true;
    }/*from w  w w  .ja  v a  2 s  .  c o m*/
    if (!(object instanceof Parameter)) {
        return false;
    }
    return new EqualsBuilder().append(getName(), ((Parameter) object).getName()).isEquals();
}

From source file:com.hp.ov.sdk.dto.Property.java

@Override
public final boolean equals(Object obj) {
    if (this == obj)
        return true;

    if (obj instanceof Property) {
        Property that = (Property) obj;//from www . ja v a 2s. c  o  m

        return new EqualsBuilder().append(displayName, that.displayName).append(name, that.name)
                .append(required, that.required).append(value, that.value).append(valueFormat, that.valueFormat)
                .append(valueType, that.valueType).isEquals();
    }
    return false;
}

From source file:net.mindengine.galen.suite.actions.GalenPageActionCookie.java

@Override
public boolean equals(Object obj) {
    if (obj == null)
        return false;
    if (obj == this)
        return true;
    if (!(obj instanceof GalenPageActionCookie))
        return false;

    GalenPageActionCookie rhs = (GalenPageActionCookie) obj;
    return new EqualsBuilder().append(cookies, rhs.cookies).isEquals();
}

From source file:ch.aonyx.broker.ib.api.bulletin.NewsBulletinSubscriptionRequest.java

@Override
public boolean equals(final Object obj) {
    if (obj == null) {
        return false;
    }//w  w  w.  j a va2s  .  co  m
    if (obj == this) {
        return true;
    }
    if (obj.getClass() != getClass()) {
        return false;
    }
    final NewsBulletinSubscriptionRequest rhs = (NewsBulletinSubscriptionRequest) obj;
    return new EqualsBuilder().append(includeExistingDailyNews, rhs.includeExistingDailyNews).isEquals();
}

From source file:com.deegeu.facebook.messenger.model.send.Adjustment.java

@Override
public boolean equals(Object other) {
    if (other == this) {
        return true;
    }/*from   ww  w .j  a v  a  2  s . c  o  m*/
    if ((other instanceof Adjustment) == false) {
        return false;
    }
    Adjustment rhs = ((Adjustment) other);
    return new EqualsBuilder().append(name, rhs.name).append(amount, rhs.amount).isEquals();
}

From source file:com.deegeu.facebook.messenger.model.receive.Coordinates.java

@Override
public boolean equals(Object other) {
    if (other == this) {
        return true;
    }//from   ww w. j  a  v  a 2s .c  om
    if ((other instanceof Coordinates) == false) {
        return false;
    }
    Coordinates rhs = ((Coordinates) other);
    return new EqualsBuilder().append(longitude, rhs.longitude).append(lat, rhs.lat).isEquals();
}

From source file:com.esofthead.mycollab.module.crm.domain.ContactLead.java

public final boolean equals(Object obj) {
    if (obj == null) {
        return false;
    }//from   w w  w.ja  v a  2 s .c  o  m
    if (obj == this) {
        return true;
    }
    if (!obj.getClass().isAssignableFrom(getClass())) {
        return false;
    }
    ContactLead item = (ContactLead) obj;
    return new EqualsBuilder().append(id, item.id).build();
}