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.hp.ov.sdk.dto.generated.ConnectionTemplate.java

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

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

        return new EqualsBuilder().appendSuper(super.equals(obj)).append(bandwidth, that.bandwidth).isEquals();
    }//  ww w.  ja  v a 2 s  .com
    return false;
}

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

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

    NodeCPU that = (NodeCPU) obj;
    return new EqualsBuilder().append(this.percentage, that.percentage).isEquals();
}

From source file:com.riversoforion.zambezi.dice.Dice.java

@Override
public boolean equals(Object obj) {

    if (obj == null || !(obj instanceof Dice))
        return false;
    if (obj == this)
        return true;
    Dice other = (Dice) obj;/*from  www .j  av  a2s .  c  o  m*/
    return new EqualsBuilder().append(this.dice, other.dice).isEquals();
}

From source file:co.rsk.metrics.BlockHeaderElement.java

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

    return new EqualsBuilder().append(blockHeader, that.blockHeader).append(difficulty, that.difficulty)
            .isEquals();//  w  ww.  ja v  a 2s.  c o m
}

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

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

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

        return new EqualsBuilder().append(id, that.id).append(name, that.name)
                .append(optionLinks, that.optionLinks).isEquals();
    }/*from  w w w.ja  va2  s.  c om*/
    return false;
}

From source file:io.lavagna.model.LabelListValue.java

@Override
public boolean equals(Object obj) {
    if (obj == null || !(obj instanceof LabelListValue)) {
        return false;
    }//w  ww  . j  a  va  2 s  .  co m
    LabelListValue other = (LabelListValue) obj;
    return new EqualsBuilder().append(id, other.id).append(cardLabelId, other.cardLabelId)
            .append(order, other.order).append(value, other.value).isEquals();
}

From source file:com.stitchgalaxy.domain.Partner.java

public boolean sameIdentityAs(Partner other) {
    return other != null
            && new EqualsBuilder().append(this.name, other.name).append(this.uri, other.uri).isEquals();
}

From source file:de.uniwue.info6.misc.Password.java

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

    Password pass = (Password) obj;/*  ww  w  .java  2  s.c o m*/
    return new EqualsBuilder().append(password, pass).isEquals();
}

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

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

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

    StackingGroup that = (StackingGroup) obj;

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

From source file:ch.aonyx.broker.ib.api.order.OrderComboLeg.java

@Override
public boolean equals(final Object obj) {
    if (this == obj) {
        return true;
    }//from w w w .  j  a  v  a2  s. c  om
    if (obj == null) {
        return false;
    }
    if (getClass() != obj.getClass()) {
        return false;
    }
    final OrderComboLeg rhs = (OrderComboLeg) obj;
    return new EqualsBuilder().append(price, rhs.price).isEquals();
}