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:io.cloudslang.lang.entities.ListForLoopStatement.java

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

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

    ListForLoopStatement that = (ListForLoopStatement) o;

    return new EqualsBuilder().appendSuper(super.equals(o)).append(varName, that.varName).isEquals();
}

From source file:com.antonjohansson.elasticsearchshell.domain.ClusterInfo.java

@Override
public boolean equals(Object obj) {
    if (obj == null || obj.getClass() != getClass()) {
        return false;
    }//  ww w . ja v a  2  s . c  om
    if (obj == this) {
        return true;
    }

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

From source file:net.sf.jabb.util.stat.AtomicLongStatistics.java

@Override
public boolean equals(Object other) {
    if (other == this) {
        return true;
    }//from   w ww  .j  ava2 s .  co  m
    if (other == null || !(other instanceof NumberStatistics<?>)) {
        return false;
    }
    NumberStatistics<?> that = (NumberStatistics<?>) other;
    return new EqualsBuilder().append(this.getCount(), that.getCount())
            .append(this.getSum(), that.getSum() == null ? null : Long.valueOf(that.getSum().longValue()))
            .append(this.getMin(), that.getMin() == null ? null : Long.valueOf(that.getMin().longValue()))
            .append(this.getMax(), that.getMax() == null ? null : Long.valueOf(that.getMax().longValue()))
            .isEquals();
}

From source file:com.galenframework.specs.Location.java

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

    Location rhs = (Location) obj;
    return new EqualsBuilder().append(range, rhs.range).append(sides, rhs.sides).isEquals();
}

From source file:com.nesscomputing.event.NessEventType.java

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

From source file:de.upb.wdqa.wdvd.features.FeatureImpl.java

@Override
public boolean equals(Object obj) {
    if (obj == null) {
        return false;
    }/*from  w  w  w .  j  a va 2  s.  c o m*/
    if (obj == this) {
        return true;
    }

    Feature rhs = (Feature) obj;
    return new EqualsBuilder().append(getName(), rhs.getName()).isEquals();
}

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

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

From source file:com.mingo.domain.Test.java

/**
 * {@inheritDoc}/*  www.  j  a v  a 2 s.c o  m*/
 */
@Override
public boolean equals(Object o) {
    if (this == o) {
        return true;
    }
    if (!(o instanceof Test)) {
        return false;
    }

    Test that = (Test) o;
    return new EqualsBuilder().appendSuper(super.equals(that)).append(name, that.name)
            .append(identifier, that.identifier).isEquals();
}

From source file:io.cloudslang.lang.compiler.parser.model.ParsedDescriptionData.java

@Override
public boolean equals(Object o) {
    if (this == o) {
        return true;
    }/*from www .ja  v a2s  .c om*/

    if (o == null || getClass() != o.getClass()) {
        return false;
    }

    ParsedDescriptionData that = (ParsedDescriptionData) o;

    return new EqualsBuilder().append(topLevelDescriptions, that.topLevelDescriptions)
            .append(stepDescriptions, that.stepDescriptions).append(errors, that.errors).isEquals();
}

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

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

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

    SwitchMapEntry that = (SwitchMapEntry) obj;

    return new EqualsBuilder().append(location, that.location)
            .append(permittedSwitchTypeUri, that.permittedSwitchTypeUri).append(switchUri, that.switchUri)
            .isEquals();//from   ww w. j  a va  2  s. c  o m
}