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.tools.build.tester.parallel.testcaseevents.BeginSlangTestCaseEvent.java

@Override
public boolean equals(Object obj) {
    if (obj == null) {
        return false;
    }//ww  w.j  a  va2s  . c  o m
    if (obj == this) {
        return true;
    }
    if (obj.getClass() != getClass()) {
        return false;
    }
    return new EqualsBuilder().appendSuper(super.equals(obj)).isEquals();
}

From source file:io.knotx.adapter.common.http.ServiceMetadata.java

@Override
public boolean equals(Object obj) {
    if (obj != null && obj instanceof ServiceMetadata) {
        final ServiceMetadata other = (ServiceMetadata) obj;
        return new EqualsBuilder().append(path, other.getPath()).append(domain, other.getDomain())
                .append(port, other.getPort()).isEquals();
    } else {/*ww w  . ja  v a2 s  .  c  o m*/
        return false;
    }
}

From source file:com.timrcoulson.gymbro.entity.Set.java

@Override
public boolean equals(Object obj) {
    if (obj == null)
        return false;
    if (!(obj instanceof Set))
        return false;
    Set set = (Set) obj;//w  ww  . j  av a 2 s.  c o m
    if (!(new EqualsBuilder().append(reps, set.reps).append(order, set.order).isEquals()))
        return false;
    return true;
}

From source file:Entidades.ExercicioFichaPK.java

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

    ExercicioFichaPK rhs = (ExercicioFichaPK) obj;
    return new EqualsBuilder().
    // if deriving: appendSuper(super.equals(obj)).
            append(codigoFicha, rhs.codigoFicha).append(codigoExercicio, rhs.codigoExercicio).isEquals();
}

From source file:mz.com.service.Test.java

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

From source file:com.hp.ov.sdk.dto.serverhardwaretype.SettingDependency.java

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

    if (obj instanceof SettingDependency) {
        SettingDependency that = (SettingDependency) obj;

        return new EqualsBuilder().append(type, that.type).isEquals();
    }//from w ww.ja  v a2 s .  c  o m
    return false;
}

From source file:Fact.Fact.java

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

    Fact rhs = (Fact) obj;//from   w  w  w.jav  a  2  s .  co m
    return new EqualsBuilder().
    // if deriving: appendSuper(super.equals(obj)).
            append(factoid, rhs.factoid).isEquals();
}

From source file:com.evrythng.commons.domain.Value.java

@Override
public final boolean equals(final Object other) {

    if (other == null || other.getClass() != getClass()) {
        return false;
    }/*www  .j a v  a  2 s .c o  m*/
    Value<V> that = (Value<V>) other;
    EqualsBuilder equals = new EqualsBuilder();
    equals.append(value, that.value);
    return equals.build();
}

From source file:gov.va.chir.tagline.beans.Annotation.java

@Override
public boolean equals(final Object obj) {
    if (obj instanceof Annotation) {
        final Annotation other = (Annotation) obj;
        return new EqualsBuilder().append(type, other.getType()).append(start, other.getStart())
                .append(end, other.getStart()).isEquals();
    } else {/*from w  w w .j  av a 2s  .  c om*/
        return false;
    }
}

From source file:io.fourfinanceit.homework.model.Client.java

@Override
public boolean equals(Object o) {

    if (null == o)
        return false;
    if (!(o instanceof Client))
        return false;
    if (this == o)
        return true;

    Client input = (Client) o;//  w w w  . ja  v a2s.com
    return new EqualsBuilder().append(this.getClientId(), input.getClientId()).isEquals();

}