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:ezbake.discovery.servicediscovery.BasicServiceInstance.java

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

    BasicServiceInstance rhs = (BasicServiceInstance) obj;
    return new EqualsBuilder().append(applicationName, rhs.applicationName).append(serviceName, rhs.serviceName)
            .append(serviceType, rhs.serviceType).append(host, rhs.host).append(port, rhs.port).isEquals();
}

From source file:net.sf.jsqlparser.statement.select.SubSelect.java

@Override
public boolean equals(Object obj) {

    if (obj == null)
        return false;
    if (obj == this)
        return true;
    if (!(obj instanceof SubSelect))
        return false;

    SubSelect rhs = (SubSelect) obj;/*w  ww. j  a  va  2  s . c  o m*/
    return new EqualsBuilder().
    // if deriving: appendSuper(super.equals(obj)).
            append(alias, rhs.alias).append(selectBody.toString(), rhs.selectBody.toString()).isEquals();
}

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

@Override
public boolean equals(final Object obj) {
    if (obj == null) {
        return false;
    }/*from   w  ww . j  a  v  a 2s  .c o  m*/
    if (obj == this) {
        return true;
    }
    if (obj.getClass() != getClass()) {
        return false;
    }
    final BindNewlyCreatedOpenOrderRequest rhs = (BindNewlyCreatedOpenOrderRequest) obj;
    return new EqualsBuilder().append(bindNewlyCreatedOrder, rhs.bindNewlyCreatedOrder).isEquals();
}

From source file:ch.aonyx.broker.ib.api.system.ServerLogLevelRequest.java

@Override
public boolean equals(final Object obj) {
    if (obj == null) {
        return false;
    }/*from w w w  . j  a  v  a  2 s  .com*/
    if (obj == this) {
        return true;
    }
    if (obj.getClass() != getClass()) {
        return false;
    }
    final ServerLogLevelRequest rhs = (ServerLogLevelRequest) obj;
    return new EqualsBuilder().append(logLevel, rhs.logLevel).isEquals();
}

From source file:com.galenframework.suite.actions.GalenPageActionInjectJavascript.java

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

    GalenPageActionInjectJavascript rhs = (GalenPageActionInjectJavascript) obj;

    return new EqualsBuilder() //@formatter:off
            .append(javascriptFilePath, rhs.javascriptFilePath).isEquals(); //@formatter:on
}

From source file:annis.model.Annotation.java

@Override
public boolean equals(Object obj) {
    if (obj == null || !(obj instanceof Annotation)) {
        return false;
    }/*w  w  w  .j a va  2s  . com*/

    Annotation other = (Annotation) obj;

    return new EqualsBuilder().append(this.namespace, other.namespace).append(this.name, other.name)
            .append(this.value, other.value).isEquals();
}

From source file:de.ailis.usb4java.libusb.Version.java

@Override
public boolean equals(final Object obj) {
    if (obj == null)
        return false;
    if (obj == this)
        return true;
    if (obj.getClass() != getClass())
        return false;
    final Version other = (Version) obj;
    return new EqualsBuilder().append(major(), other.major()).append(minor(), other.minor())
            .append(micro(), other.micro()).append(rc(), other.rc()).isEquals();
}

From source file:de.ailis.usb4java.descriptors.SimpleUsbStringDescriptor.java

@Override
public boolean equals(final Object obj) {
    if (this == obj)
        return true;
    if (obj == null || getClass() != obj.getClass())
        return false;
    final SimpleUsbStringDescriptor other = (SimpleUsbStringDescriptor) obj;
    return new EqualsBuilder().append(bLength(), other.bLength())
            .append(bDescriptorType(), other.bDescriptorType()).append(this.bString, other.bString).isEquals();
}

From source file:de.openali.odysseus.chart.framework.model.data.DataRange.java

@Override
public boolean equals(final Object obj) {
    if (obj == null) {
        return false;
    }// w ww . j  a v  a  2  s  .  com
    if (obj == this) {
        return true;
    }
    if (obj.getClass() != getClass()) {
        return false;
    }

    final DataRange<?> other = (DataRange<?>) obj;

    return new EqualsBuilder().append(m_min, other.m_min).append(m_min, other.m_min).isEquals();
}

From source file:de.qaware.chronix.solr.query.analysis.functions.transformation.Subtract.java

@Override
public boolean equals(Object obj) {
    if (obj == null) {
        return false;
    }//  ww w  .  ja  va  2 s.  co  m
    if (obj == this) {
        return true;
    }
    if (obj.getClass() != getClass()) {
        return false;
    }
    Subtract rhs = (Subtract) obj;
    return new EqualsBuilder().append(this.value, rhs.value).isEquals();
}