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.github.woonsan.jackrabbit.migration.datastore.batch.DataStoreConfiguration.java

@Override
public boolean equals(Object o) {
    if (o == null) {
        return false;
    }/*from ww w.j av  a  2s . co m*/

    if (!(o instanceof DataStoreConfiguration)) {
        return false;
    }

    DataStoreConfiguration that = (DataStoreConfiguration) o;

    return new EqualsBuilder().append(this.homeDir, that.homeDir).append(this.className, that.className)
            .append(this.params, that.params).build().booleanValue();
}

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

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

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

    SubPort subPort = (SubPort) obj;// www.j  a va  2s  .c  om

    return new EqualsBuilder().append(portNumber, subPort.portNumber).append(portStatus, subPort.portStatus)
            .append(portStatusReason, subPort.portStatusReason).isEquals();
}

From source file:com.thoughtworks.go.plugin.access.artifact.models.FetchArtifactEnvironmentVariable.java

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

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

    FetchArtifactEnvironmentVariable that = (FetchArtifactEnvironmentVariable) o;

    return new EqualsBuilder().append(secure, that.secure).append(name, that.name).append(value, that.value)
            .isEquals();//from  ww w . j a  v  a  2  s .  co  m
}

From source file:de.qaware.chronix.importer.csv.Attributes.java

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

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

    Attributes that = (Attributes) o;

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

From source file:com.omertron.themoviedbapi.model.AlternativeTitle.java

@Override
public boolean equals(Object obj) {
    if (obj instanceof AlternativeTitle) {
        final AlternativeTitle other = (AlternativeTitle) obj;
        return new EqualsBuilder().append(country, other.country).append(title, other.title).isEquals();
    } else {/*  w w  w. ja  va 2s  . com*/
        return false;
    }
}

From source file:com.galenframework.validation.ValidationObject.java

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

    ValidationObject rhs = (ValidationObject) obj;
    return new EqualsBuilder() //@formatter:off
            .append(name, rhs.name).append(area, rhs.area).isEquals(); //@formatter:on
}

From source file:com.antonjohansson.geolocation.framework.domain.LookupResult.java

@Override
public boolean equals(Object obj) {
    if (obj == null || obj.getClass() != getClass()) {
        return false;
    }//from www  . jav a  2 s . co m
    if (obj == this) {
        return true;
    }

    LookupResult that = (LookupResult) obj;
    return new EqualsBuilder().append(this.ip, that.ip).append(this.longitude, that.longitude)
            .append(this.latitude, that.latitude).isEquals();
}

From source file:eu.learnpad.simulator.robot.activiti.markovrobot.MarkovData.java

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

    MarkovData rhs = (MarkovData) obj;/*from ww  w  .java  2  s  .co  m*/
    return new EqualsBuilder().append(taskId, rhs.taskId).append(properties, rhs.properties).isEquals();
}

From source file:de.kaiserpfalzEdv.office.core.security.PermissionNameHolderDTO.java

@Override
public boolean equals(Object obj) {
    if (obj == null) {
        return false;
    }/*  w w  w  .  jav  a  2s  .co m*/
    if (obj == this) {
        return true;
    }
    if (obj.getClass() != getClass()) {
        return false;
    }
    PermissionNameHolderDTO rhs = (PermissionNameHolderDTO) obj;
    return new EqualsBuilder().append(this.getPermissionName(), rhs.getPermissionName()).isEquals();
}

From source file:kiss.domain.user.User.java

public boolean equalTo(Object o) {
    if (this == o)
        return true;

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

    User user = (User) o;/*w ww  .  ja  v a  2s . com*/

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