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.norconex.collector.http.url.Link.java

@Override
public boolean equals(final Object other) {
    if (!(other instanceof Link))
        return false;
    Link castOther = (Link) other;// ww w.j a  v a2 s.co  m
    return new EqualsBuilder().append(url, castOther.url).append(tag, castOther.tag)
            .append(text, castOther.text).append(title, castOther.title).append(referrer, castOther.referrer)
            .isEquals();
}

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

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

    RailwayForm other = (RailwayForm) obj;
    return new EqualsBuilder().append(this.railway, other.railway).isEquals();
}

From source file:com.qcadoo.model.internal.utils.EntitySignature.java

@Override
public boolean equals(Object obj) {
    if (this == obj) {
        return true;
    }//from w  ww.ja  va 2s  .  com
    if (obj == null || getClass() != obj.getClass()) {
        return false;
    }
    EntitySignature other = (EntitySignature) obj;
    return new EqualsBuilder().append(id, other.id).append(model, other.model).append(plugin, other.plugin)
            .isEquals();
}

From source file:net.sf.dynamicreports.design.base.style.DRDesignPen.java

@Override
public boolean equals(Object obj) {
    if (obj == null) {
        return false;
    }//from  w w  w .  ja va  2  s  .  com
    if (obj == this) {
        return true;
    }
    if (obj.getClass() != getClass()) {
        return false;
    }

    DRDesignPen o = (DRDesignPen) obj;
    EqualsBuilder equalsBuilder = new EqualsBuilder().append(lineWidth, o.lineWidth)
            .append(lineStyle, o.lineStyle).append(lineColor, o.lineColor);
    return equalsBuilder.isEquals();
}

From source file:net.sf.jabb.util.bean.DoubleValueBean.java

@Override
public boolean equals(Object obj) {
    if (obj == null) {
        return false;
    }/*from w  ww.  j a va 2 s .c o  m*/
    if (obj == this) {
        return true;
    }
    if (obj.getClass() != getClass()) {
        return false;
    }
    DoubleValueBean<?, ?> rhs = (DoubleValueBean<?, ?>) obj;
    return new EqualsBuilder()
            //.appendSuper(super.equals(obj))
            .append(value1, rhs.value1).append(value2, rhs.value2).isEquals();
}

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

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

    Context that = (Context) o;

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

From source file:com.omertron.themoviedbapi.model.media.Trailer.java

@Override
public boolean equals(Object obj) {
    if (obj instanceof Trailer) {
        final Trailer other = (Trailer) obj;
        return new EqualsBuilder().append(name, other.name).append(size, other.size)
                .append(source, other.source).append(type, other.type).isEquals();
    } else {//from ww w. ja  v a 2  s.c  om
        return false;
    }
}

From source file:ch.aonyx.broker.ib.api.account.ManagedAccountListRequest.java

@Override
public boolean equals(final Object obj) {
    if (obj == null) {
        return false;
    }/*from   ww  w  . ja va2 s.c o  m*/
    if (obj == this) {
        return true;
    }
    if (obj.getClass() != getClass()) {
        return false;
    }
    return new EqualsBuilder().isEquals();
}

From source file:net.sf.dynamicreports.design.base.style.DRDesignPadding.java

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

    DRDesignPadding o = (DRDesignPadding) obj;
    EqualsBuilder equalsBuilder = new EqualsBuilder().append(top, o.top).append(left, o.left)
            .append(bottom, o.bottom).append(right, o.right);
    return equalsBuilder.isEquals();
}

From source file:com.galenframework.parser.StructNode.java

@Override
public boolean equals(Object obj) {
    if (obj == null) {
        return false;
    }/*from w w w . ja  v a 2 s.  co  m*/
    if (obj == this) {
        return true;
    }
    if (!(obj instanceof StructNode)) {
        return false;
    }
    StructNode rhs = (StructNode) obj;
    return new EqualsBuilder().append(this.name, rhs.name).append(this.childNodes, rhs.childNodes)
            .append(this.fileLineNumber, rhs.fileLineNumber).append(this.source, rhs.source).isEquals();
}