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.compiler.modeller.model.StepMetadata.java

@Override
public boolean equals(Object o) {
    if (this == o) {
        return true;
    }/*from   w  w w.j a  va2  s.  c  om*/

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

    StepMetadata that = (StepMetadata) o;

    return new EqualsBuilder().append(stepName, that.stepName).append(inputs, that.inputs)
            .append(outputs, that.outputs).isEquals();
}

From source file:alfio.model.user.Organization.java

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

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

    Organization that = (Organization) o;

    return new EqualsBuilder().append(id, that.id).isEquals();
}

From source file:br.usp.poli.lta.cereda.aa.examples.ExampleSymbol.java

@Override
public boolean equals(Object object) {
    if (object == null) {
        return false;
    } else {// www  . ja va  2  s. c  o m
        if (!(object.getClass().equals(ExampleSymbol.class))) {
            return false;
        } else {
            return new EqualsBuilder().append(this.getValue(), ((ExampleSymbol) object).getValue()).isEquals();
        }
    }
}

From source file:com.xpn.xwiki.objects.NumberProperty.java

@Override
public boolean equals(Object obj) {
    if (obj == null) {
        return false;
    }//from w ww .j a  v a  2s.c  om

    return new EqualsBuilder().appendSuper(super.equals(obj))
            .append(getValue(), ((NumberProperty) obj).getValue()).isEquals();
}

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

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

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

    LocationEntry that = (LocationEntry) obj;

    return new EqualsBuilder().append(type, that.type).append(value, that.value).isEquals();
}

From source file:ca.uhn.fhir.validation.SingleValidationMessage.java

@Override
public boolean equals(Object obj) {
    if (this == obj) {
        return true;
    }/*from  ww  w.jav a 2  s.co  m*/
    if (obj == null) {
        return false;
    }
    if (!(obj instanceof SingleValidationMessage)) {
        return false;
    }
    SingleValidationMessage other = (SingleValidationMessage) obj;
    EqualsBuilder b = new EqualsBuilder();
    b.append(myLocationCol, other.myLocationCol);
    b.append(myLocationLine, other.myLocationLine);
    b.append(myLocationString, other.myLocationString);
    b.append(myMessage, other.myMessage);
    b.append(mySeverity, other.mySeverity);
    return b.isEquals();
}

From source file:de.qaware.chronix.storage.solr.timeseries.metric.MetricTimeSeriesKey.java

@Override
public boolean equals(Object o) {
    if (this == o)
        return true;
    if (o == null || getClass() != o.getClass())
        return false;

    MetricTimeSeriesKey that = (MetricTimeSeriesKey) o;

    EqualsBuilder eb = new EqualsBuilder();
    for (MetricDimension dim : MetricDimension.getIdentityDimensions()) {
        if (dim == MetricDimension.METRIC) {
            eb.append(mts.getMetric(), that.getMetricTimeSeries().getMetric());
        } else {//from   w ww .  ja  va  2 s. co  m
            eb.append(mts.attributes().get(dim), that.getMetricTimeSeries().attributes().get(dim));
        }
    }
    return eb.isEquals();
}

From source file:com.hp.ov.sdk.dto.generated.LogicalLocation.java

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

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

    LogicalLocation that = (LogicalLocation) obj;

    return new EqualsBuilder().append(locationEntries, that.locationEntries).isEquals();
}

From source file:com.lexicalscope.fluentreflection.FluentObjectImpl.java

@Override
public boolean equals(final Object that) {
    if (that != null && that.getClass().equals(getClass())) {
        final FluentObjectImpl<?> castedThat = (FluentObjectImpl<?>) that;
        return new EqualsBuilder().append(instance, castedThat.instance).isEquals();
    }//from w w  w. j  a v  a 2 s.  co m
    return false;
}

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

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

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

    SwitchMapTemplate that = (SwitchMapTemplate) obj;

    return new EqualsBuilder().append(switchMapEntryTemplates, that.switchMapEntryTemplates).isEquals();
}