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.rodaxsoft.mailgun.ListMember.java

@Override
public boolean equals(Object obj) {
    if (obj == null) {
        return false;
    }//w  ww.  jav  a  2s.  c om

    if (obj == this) {
        return true;
    }

    if (!(obj instanceof ListMember)) {
        return false;
    }

    ListMember rhs = (ListMember) obj;
    return new EqualsBuilder().append(address.toLowerCase(), rhs.address.toLowerCase()).isEquals();
}

From source file:io.netlibs.bgp.protocol.InetAddressNextHop.java

@Override
@SuppressWarnings("unchecked")
public boolean equals(final Object obj) {
    if (!(obj instanceof InetAddressNextHop)) {
        return false;
    }/*from w  w  w . ja  v  a 2s  .  c  o  m*/

    final InetAddressNextHop<T> o = (InetAddressNextHop<T>) obj;

    return (new EqualsBuilder()).append(this.getAddress(), o.getAddress()).isEquals();
}

From source file:com.galenframework.specs.Place.java

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

    Place rhs = (Place) obj;//w  w  w  .j  ava2 s .c o  m
    return new EqualsBuilder().append(filePath, rhs.filePath).append(lineNumber, rhs.lineNumber).isEquals();
}

From source file:com.settlement.model.Role.java

@Override
public boolean equals(Object object) {
    if (object == null) {
        return false;
    }//  w  ww . j  a v  a2  s  . c om
    if (object == this) {
        return true;
    }

    if (object instanceof Role) {
        Role rhs = (Role) object;
        return new EqualsBuilder().append(id, rhs.id).isEquals();
    } else {
        return false;
    }
}

From source file:com.diffeo.dossier.fc.StringFeature.java

@Override
public boolean equals(Object obj) {
    if (obj == null) {
        return false;
    }/*from   ww  w . j  av a  2s . c  om*/
    if (obj == this) {
        return true;
    }
    if (obj.getClass() != getClass()) {
        return false;
    }
    StringFeature rhs = (StringFeature) obj;
    return new EqualsBuilder().append(value, rhs.value).isEquals();
}

From source file:com.pandich.dropwizard.curator.ClassMember.java

@Override
public boolean equals(final Object o) {
    if (this == o) {
        return true;
    }/*from   w  ww  . ja  v  a  2s . c o  m*/
    if (!(o instanceof ClassMember)) {
        return false;
    }

    final ClassMember that = (ClassMember) o;

    return new EqualsBuilder().append(this.configurationClass, that.configurationClass)
            .append(this.member, that.member).build();
}

From source file:com.yarg.animatronics.datamodel.AnimationKey.java

@Override
public boolean equals(Object obj) {

    if (this == obj) {
        return true;
    } else if (!(obj instanceof AnimationKey)) {
        return false;
    }//from w  w  w  .  j av a2s  .com

    AnimationKey compareObj = (AnimationKey) obj;
    return new EqualsBuilder().append(getTick(), compareObj.getTick()).append(getTime(), compareObj.getTime())
            .isEquals();
}

From source file:com.trenako.web.controllers.form.OptionForm.java

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

    OptionForm other = (OptionForm) obj;
    return new EqualsBuilder().append(this.option, other.option).append(this.file, other.file).isEquals();
}

From source file:com.anrisoftware.sscontrol.security.service.SecServiceInfo.java

@Override
public boolean equals(Object obj) {
    if (obj == null) {
        return false;
    }// w  w  w  . ja  v a2s.  c om
    if (obj == this) {
        return true;
    }
    if (!(obj instanceof SecServiceInfo)) {
        return false;
    }
    SecServiceInfo rhs = (SecServiceInfo) obj;
    return new EqualsBuilder().append(getServiceName(), rhs.getServiceName()).isEquals();
}

From source file:net.mindengine.galen.validation.ErrorArea.java

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

    ErrorArea rhs = (ErrorArea) obj;//from w w  w .  j  a v  a2  s .com
    return new EqualsBuilder().append(rect, rhs.rect).append(message, rhs.message).isEquals();
}