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:de.qaware.chronix.solr.query.analysis.functions.transformation.Add.java

@Override
public boolean equals(Object obj) {
    if (obj == null) {
        return false;
    }//  ww  w.  j  av  a  2 s .  com
    if (obj == this) {
        return true;
    }
    if (obj.getClass() != getClass()) {
        return false;
    }
    Add rhs = (Add) obj;
    return new EqualsBuilder().append(this.value, rhs.value).isEquals();
}

From source file:de.kaiserpfalzEdv.vaadin.event.NotificationPayload.java

@Override
public boolean equals(Object obj) {
    if (obj == null) {
        return false;
    }/*  w ww. j  a  v  a 2 s . c  o m*/
    if (obj == this) {
        return true;
    }
    if (obj.getClass() != getClass()) {
        return false;
    }
    NotificationPayload rhs = (NotificationPayload) obj;
    return new EqualsBuilder().append(this.caption, rhs.caption).append(this.description, rhs.description)
            .append(this.icon, rhs.icon).isEquals();
}

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

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

    if (obj == null || getClass() != obj.getClass())
        return false;

    SnmpV3Configuration that = (SnmpV3Configuration) obj;

    return new EqualsBuilder().append(authorizationProtocol, that.authorizationProtocol)
            .append(privacyProtocol, that.privacyProtocol).append(securityLevel, that.securityLevel)
            .append(snmpV3UserName, that.snmpV3UserName).isEquals();
}

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

@Override
public boolean equals(final Object other) {
    if (other == this) {
        return true;
    }/*w  w w . jav a  2 s .  c  o  m*/
    if ((other instanceof QosTrafficClassifier) == false) {
        return false;
    }
    final QosTrafficClassifier rhs = ((QosTrafficClassifier) other);
    return new EqualsBuilder().append(qosTrafficClass, rhs.qosTrafficClass)
            .append(qosClassificationMapping, rhs.qosClassificationMapping).appendSuper(super.equals(other))
            .isEquals();
}

From source file:it.reply.orchestrator.dto.security.IndigoOAuth2Authentication.java

@Override
public boolean equals(Object obj) {
    if (obj == null || !(obj instanceof IndigoOAuth2Authentication)) {
        return false;
    }/*from w  ww  .  ja v  a  2  s . c o  m*/
    IndigoOAuth2Authentication other = (IndigoOAuth2Authentication) obj;
    return new EqualsBuilder().appendSuper(super.equals(other)).append(this.getToken(), other.getToken())
            .append(this.getUserInfo(), other.getUserInfo()).build();
}

From source file:com.norconex.collector.http.recrawl.PreviousCrawlData.java

@Override
public boolean equals(final Object other) {
    if (!(other instanceof PreviousCrawlData)) {
        return false;
    }/* w w w .ja  va2s .  c o  m*/
    PreviousCrawlData castOther = (PreviousCrawlData) other;
    return new EqualsBuilder().append(reference, castOther.reference).append(contentType, castOther.contentType)
            .append(crawlDate, castOther.crawlDate).append(sitemapLastMod, castOther.sitemapLastMod)
            .append(sitemapChangeFreq, castOther.sitemapChangeFreq)
            .append(sitemapPriority, castOther.sitemapPriority).isEquals();
}

From source file:com.anrisoftware.sscontrol.security.service.ServiceConfigInfo.java

@Override
public boolean equals(Object obj) {
    if (obj == null) {
        return false;
    }/*from   ww  w  . ja  v  a2s . co m*/
    if (obj == this) {
        return true;
    }
    if (!(obj instanceof ServiceConfigInfo)) {
        return false;
    }
    ServiceConfigInfo rhs = (ServiceConfigInfo) obj;
    return new EqualsBuilder().append(getServiceName(), rhs.getServiceName())
            .append(getSecName(), rhs.getSecName()).append(getProfileName(), rhs.getProfileName()).isEquals();
}

From source file:com.nesscomputing.migratory.StatusResult.java

@Override
public boolean equals(final Object other) {
    if (!(other instanceof StatusResult))
        return false;
    StatusResult castOther = (StatusResult) other;
    return new EqualsBuilder().append(personalityName, castOther.personalityName)
            .append(migrationPossible, castOther.migrationPossible).append(lastState, castOther.lastState)
            .append(direction, castOther.direction).append(currentVersion, castOther.currentVersion)
            .append(firstVersion, castOther.firstVersion).append(lastVersion, castOther.lastVersion).isEquals();
}

From source file:br.usp.poli.lta.cereda.wirth2ape.tuple.Quadruple.java

@Override
public boolean equals(Object object) {
    if (object == null) {
        return false;
    }/* w  w  w. ja  v  a2 s  . c  o m*/
    if (getClass() != object.getClass()) {
        return false;
    }
    final Quadruple<?, ?, ?, ?> reference = (Quadruple<?, ?, ?, ?>) object;
    return new EqualsBuilder().append(second, reference.second).append(third, reference.third)
            .append(fourth, reference.fourth).isEquals();
}

From source file:com.anrisoftware.sscontrol.httpd.webservice.ServiceConfigInfo.java

@Override
public boolean equals(Object obj) {
    if (obj == null) {
        return false;
    }/*w w  w  . ja v a2 s .c o  m*/
    if (obj == this) {
        return true;
    }
    if (!(obj instanceof ServiceConfigInfo)) {
        return false;
    }
    ServiceConfigInfo rhs = (ServiceConfigInfo) obj;
    return new EqualsBuilder().append(getServiceName(), rhs.getServiceName())
            .append(getWebName(), rhs.getWebName()).append(getProfileName(), rhs.getProfileName()).isEquals();
}