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:de.kaiserpfalzEdv.office.core.data.EntityQueryBase.java

@Override
public boolean equals(Object obj) {
    if (obj == null) {
        return false;
    }//from   w w  w .j a  va2s . c o m
    if (obj == this) {
        return true;
    }
    if (obj.getClass() != getClass()) {
        return false;
    }
    EntityQueryBase rhs = (EntityQueryBase) obj;
    return new EqualsBuilder().append(this.id, rhs.id).append(this.number, rhs.number)
            .append(this.name, rhs.name).isEquals();
}

From source file:de.blizzy.documentr.page.CommitCherryPickConflictResolve.java

@Override
public boolean equals(Object o) {
    if (o == this) {
        return true;
    } else if ((o != null) && o.getClass().equals(getClass())) {
        CommitCherryPickConflictResolve other = (CommitCherryPickConflictResolve) o;
        return new EqualsBuilder().append(targetBranch, other.targetBranch).append(commit, other.commit)
                .append(text, other.text).isEquals();
    }/*  w w  w  .  j a v  a 2s . c  om*/
    return false;
}

From source file:com.anrisoftware.sscontrol.source.service.SourceServiceInfo.java

@Override
public boolean equals(Object obj) {
    if (obj == null) {
        return false;
    }//www  .jav a  2  s. c  om
    if (obj == this) {
        return true;
    }
    if (!(obj instanceof SourceServiceInfo)) {
        return false;
    }
    SourceServiceInfo rhs = (SourceServiceInfo) obj;
    return new EqualsBuilder().append(getServiceName(), rhs.getServiceName()).isEquals();
}

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

@Override
public boolean equals(Object obj) {
    if (obj == null || obj.getClass() != getClass()) {
        return false;
    }//w ww  .  jav  a2 s  .com
    if (obj == this) {
        return true;
    }

    IndexSettings that = (IndexSettings) obj;
    return new EqualsBuilder().append(this.numberOfShards, that.numberOfShards)
            .append(this.numberOfReplicas, that.numberOfReplicas).isEquals();
}

From source file:com.omertron.themoviedbapi.model.movie.ProductionCountry.java

@Override
public boolean equals(Object obj) {
    if (obj instanceof ProductionCountry) {
        final ProductionCountry other = (ProductionCountry) obj;
        return new EqualsBuilder().append(name, other.name).append(country, other.country).isEquals();
    } else {/*from w  w w .  j  a v  a2  s  .c  om*/
        return false;
    }
}

From source file:com.mingo.query.QueryFragment.java

/**
 * {@inheritDoc}//  w  w  w  .  j  av a 2 s .  com
 */
@Override
public boolean equals(Object o) {
    if (this == o) {
        return true;
    }
    if (!(o instanceof QueryFragment)) {
        return false;
    }

    QueryFragment that = (QueryFragment) o;
    return new EqualsBuilder().append(id, that.id).append(body, that.body).isEquals();
}

From source file:models.event.EventType.java

/**
 * The override of the equals method for Event types.
 * @param obj/*from  w w w.jav  a 2 s.  com*/
 * @return 
 */
@Override
public boolean equals(Object obj) {
    if (this == obj) {
        return true;
    }
    if (obj == null) {
        return false;
    }
    if (getClass() != obj.getClass()) {
        return false;
    }
    EventType rhs = (EventType) obj;
    return new EqualsBuilder().append(type, rhs.type).isEquals();
}

From source file:info.carlwithak.mpxg2.model.parameters.TapMsRate.java

@Override
public boolean equals(Object obj) {
    if (obj == null) {
        return false;
    }// w  w  w  . j a  v a2s  .co m
    if (getClass() != obj.getClass()) {
        return false;
    }
    final TapMsRate other = (TapMsRate) obj;
    return new EqualsBuilder().append(this.ms, other.ms).isEquals();
}

From source file:com.antonjohansson.elasticsearchshell.domain.node.NodeOperatingSystem.java

@Override
public boolean equals(Object obj) {
    if (obj == null || obj.getClass() != getClass()) {
        return false;
    }/*  w  w w  .j a  va2s  . c om*/
    if (obj == this) {
        return true;
    }

    NodeOperatingSystem that = (NodeOperatingSystem) obj;
    return new EqualsBuilder().append(this.cpu, that.cpu).append(this.memory, that.memory).isEquals();
}

From source file:io.cloudslang.lang.runtime.env.ForLoopCondition.java

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

    ForLoopCondition that = (ForLoopCondition) o;

    return new EqualsBuilder().append(this.iterable, that.iterable).append(this.index, that.index).isEquals();
}