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.omertron.themoviedbapi.model.movie.ReleaseInfo.java

@Override
public boolean equals(Object obj) {
    if (obj instanceof ReleaseInfo) {
        final ReleaseInfo other = (ReleaseInfo) obj;
        return new EqualsBuilder().append(getCountry(), other.getCountry())
                .append(getCertification(), other.getCertification())
                .append(getReleaseDate(), other.getReleaseDate()).append(primary, other.primary).isEquals();
    } else {/* ww w . j  a v  a 2 s .  c om*/
        return false;
    }
}

From source file:com.gammalabs.wifianalyzer.vendor.model.RemoteResult.java

@Override
public boolean equals(Object other) {
    if (this == other) {
        return true;
    }// w w  w .j a  v  a 2  s  . c  om
    if (other == null || getClass() != other.getClass()) {
        return false;
    }
    return new EqualsBuilder().append(getMacAddress(), ((RemoteResult) other).getMacAddress())
            .append(getVendorName(), ((RemoteResult) other).getVendorName()).isEquals();
}

From source file:com.newlandframework.avatarmq.consumer.ClustersState.java

public boolean equals(Object obj) {
    boolean result = false;
    if (obj != null && ClustersState.class.isAssignableFrom(obj.getClass())) {
        ClustersState clusters = (ClustersState) obj;
        result = new EqualsBuilder().append(clusters, clusters.getClusters()).isEquals();
    }//from   ww  w  .  j av a2 s .  com
    return result;
}

From source file:com.antonjohansson.elasticsearchshell.domain.index.IndexStatsResult.java

@Override
public boolean equals(Object obj) {
    if (obj == null || obj.getClass() != getClass()) {
        return false;
    }/* www .  j av  a  2 s . c o m*/
    if (obj == this) {
        return true;
    }

    IndexStatsResult that = (IndexStatsResult) obj;
    return new EqualsBuilder().append(this.indices, that.indices).isEquals();
}

From source file:com.evanzeimet.queryinfo.jpa.jpacontext.QueryInfoJoinKey.java

@Override
public boolean equals(Object obj) {
    boolean result;

    if (obj == null) {
        result = false;//from w  w  w .j  a v a  2 s .c om
    } else if (obj == this) {
        result = true;
    } else if (obj.getClass() != getClass()) {
        result = false;
    } else {
        QueryInfoJoinKey rhs = (QueryInfoJoinKey) obj;
        result = new EqualsBuilder().append(parentAttributeName, rhs.parentAttributeName)
                .append(joinParent, rhs.joinParent).isEquals();
    }

    return result;
}

From source file:de.kaiserpfalzEdv.office.ui.web.widgets.AbstractWidgetEvent.java

@Override
public boolean equals(Object obj) {
    if (obj == null) {
        return false;
    }//from  w w  w  .j  a v  a 2  s .co m
    if (obj == this) {
        return true;
    }
    if (!AbstractMainTabEvent.class.isAssignableFrom(obj.getClass())) {
        return false;
    }

    AbstractMainTabEvent rhs = (AbstractMainTabEvent) obj;
    return new EqualsBuilder().append(this.id, rhs.id).isEquals();
}

From source file:com.galenframework.ide.tests.integration.mocks.MockKey.java

@Override
public boolean equals(Object obj) {
    if (obj == null) {
        return false;
    }//from  ww w  .  j a v  a2 s  . c o m
    if (obj == this) {
        return true;
    }
    if (!(obj instanceof MockKey)) {
        return false;
    }
    MockKey rhs = (MockKey) obj;

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

From source file:io.cloudslang.lang.entities.ResultNavigation.java

@Override
public boolean equals(Object o) {
    if (this == o) {
        return true;
    }/*w  ww  .j av  a 2  s . c  o  m*/

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

    ResultNavigation that = (ResultNavigation) o;

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

From source file:br.usp.poli.lta.cereda.wirth2ape.ape.Action.java

@Override
public boolean equals(Object object) {
    if (object == null) {
        return false;
    }/*from  w  w  w  . j a v a  2s  .c o  m*/
    if (getClass() != object.getClass()) {
        return false;
    }
    final Action reference = (Action) object;
    return new EqualsBuilder().append(name, reference.getName()).isEquals();
}

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

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

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

    OutletState that = (OutletState) obj;

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