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.hp.ov.sdk.dto.LogicalSwitchDomainPerSwitch.java

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

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

    LogicalSwitchDomainPerSwitch that = (LogicalSwitchDomainPerSwitch) obj;

    return new EqualsBuilder().append(firmwareVersion, that.firmwareVersion).append(ipAddress, that.ipAddress)
            .append(memberId, that.memberId).append(model, that.model).append(state, that.state)
            .append(status, that.status).append(uri, that.uri).append(vpcRole, that.vpcRole).isEquals();
}

From source file:com.galenframework.ide.devices.commands.DeviceRestartCommand.java

@Override
public boolean equals(Object obj) {
    if (obj == null) {
        return false;
    } else if (obj == this) {
        return true;
    } else if (!(obj instanceof DeviceRestartCommand)) {
        return false;
    } else {/*from   ww  w.  j a v a  2 s  . c  o  m*/
        DeviceRestartCommand rhs = (DeviceRestartCommand) obj;
        return new EqualsBuilder().append(rhs.getCommandId(), this.getCommandId()).isEquals();
    }
}

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

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

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

@Override
public boolean equals(Object other) {
    if (other == this) {
        return true;
    }//from w ww .j a  va2  s . co m
    if ((other instanceof Recipient) == false) {
        return false;
    }
    Recipient rhs = ((Recipient) other);
    return new EqualsBuilder().append(this.id, rhs.id).append(this.phoneNumber, rhs.phoneNumber).isEquals();
}

From source file:ch.aonyx.broker.ib.api.account.AbstractAccountUpdateRequest.java

@Override
public boolean equals(final Object obj) {
    if (obj == null) {
        return false;
    }/*from  www .  ja  v a 2s . co  m*/
    if (obj == this) {
        return true;
    }
    if (obj.getClass() != getClass()) {
        return false;
    }
    final AbstractAccountUpdateRequest rhs = (AbstractAccountUpdateRequest) obj;
    return new EqualsBuilder().append(accountName, rhs.accountName).append(subscribe, rhs.subscribe).isEquals();
}

From source file:com.stitchgalaxy.domain.Category.java

public boolean sameIdentityAs(Category other) {
    return other != null
            && new EqualsBuilder().append(this.name, other.name).append(this.path, other.path).isEquals();
}

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

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

    GalenPageActionInjectJavascript rhs = (GalenPageActionInjectJavascript) obj;

    return new EqualsBuilder().append(javascriptFilePath, rhs.javascriptFilePath).isEquals();
}

From source file:net.sf.jsqlparser.expression.BinaryExpression.java

@Override
public boolean equals(Object obj) {
    if (this == obj)
        return true;
    if (obj == null)
        return false;
    if (getClass() != obj.getClass())
        return false;
    BinaryExpression other = (BinaryExpression) obj;
    return new EqualsBuilder().append(leftExpression, other.leftExpression)
            .append(rightExpression, other.rightExpression).append(not, other.not).isEquals();

}

From source file:com.anrisoftware.sscontrol.source.service.SourceServiceConfigInfo.java

@Override
public boolean equals(Object obj) {
    if (obj == null) {
        return false;
    }/*from ww w  . j a  va2s  .  c  om*/
    if (obj == this) {
        return true;
    }
    if (!(obj instanceof SourceServiceConfigInfo)) {
        return false;
    }
    SourceServiceConfigInfo rhs = (SourceServiceConfigInfo) obj;
    return new EqualsBuilder().append(getServiceName(), rhs.getServiceName())
            .append(getSourceName(), rhs.getSourceName()).append(getProfileName(), rhs.getProfileName())
            .isEquals();
}

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

@Override
public boolean equals(Object other) {
    if (other == this) {
        return true;
    }/*from   w  w w .java2s.c  om*/
    if ((other instanceof Attachment) == false) {
        return false;
    }
    Attachment rhs = ((Attachment) other);
    return new EqualsBuilder().append(type, rhs.type).append(payload, rhs.payload).isEquals();
}