Examples of EqualsBuilder


Examples of br.net.woodstock.rockframework.core.util.EqualsBuilder

  public boolean equals(final Object obj) {
    if (!(obj instanceof Identity)) {
      return false;
    }
    Identity other = (Identity) obj;
    return new EqualsBuilder().add(this.getPrivateKey(), other.getPrivateKey()).add(this.getChain(), other.getChain()).build().booleanValue();
  }
View Full Code Here

Examples of com.dotcms.repackage.org.apache.commons.lang.builder.EqualsBuilder

  }

  public boolean equals(Object other) {
    if ( !(other instanceof File) ) return false;
    File castOther = (File) other;
    return new EqualsBuilder()
    .append(this.inode, castOther.inode)
    .isEquals();
  }
View Full Code Here

Examples of com.flipthebird.gwthashcodeequals.EqualsBuilder

    /** Compare this object to another object. */
    @Override
    public boolean equals(Object obj) {
        EmailMessage other = (EmailMessage) obj;
        return new EqualsBuilder()
                    .append(this.format, other.format)
                    .append(this.sender, other.sender)
                    .append(this.replyTo, other.replyTo)
                    .append(this.recipients, other.recipients)
                    .append(this.subject, other.subject)
View Full Code Here

Examples of net.emaze.dysfunctional.equality.EqualsBuilder

    public boolean equals(Object rhs) {
        if (rhs instanceof DenseRange == false) {
            return false;
        }
        final DenseRange<T> other = (DenseRange<T>) rhs;
        final EqualsBuilder builder = new EqualsBuilder().append(this.sequencer, other.sequencer).
                append(this.comparator, other.comparator);
        if (!this.iterator().hasNext() && !other.iterator().hasNext()) {
            return builder.isEquals();
        }
        return builder.
                append(this.begin, other.begin).
                append(this.end, other.end).
                isEquals();
    }
View Full Code Here

Examples of org.apache.cayenne.util.EqualsBuilder

        if (!Util.nullSafeEquals(entityName, id.entityName)) {
            return false;
        }

        if (isTemporary()) {
            return new EqualsBuilder().append(key, id.key).isEquals();
        }

        if (singleKey != null) {
            return Util.nullSafeEquals(singleKey, id.singleKey)
                    && valueEquals(singleValue, id.singleValue);
View Full Code Here

Examples of org.apache.cayenne.util.EqualsBuilder

            return o2 instanceof Number
                    && ((Number) o1).longValue() == ((Number) o2).longValue();
        }

        if (o1.getClass().isArray()) {
            return new EqualsBuilder().append(o1, o2).isEquals();
        }

        return Util.nullSafeEquals(o1, o2);
    }
View Full Code Here

Examples of org.apache.cayenne.util.EqualsBuilder

        if (!(o instanceof ColumnDescriptor)) {
            return false;
        }

        ColumnDescriptor rhs = (ColumnDescriptor) o;
        return new EqualsBuilder().append(name, rhs.name).append(
                qualifiedColumnName,
                rhs.qualifiedColumnName).append(procedureName, rhs.procedureName).append(
                label,
                rhs.label).append(tableName, rhs.tableName).isEquals();
    }
View Full Code Here

Examples of org.apache.commons.lang.builder.EqualsBuilder

    category = getCategoryDefault();
    fireModelChanged();
  }
 
  private boolean isDefault() {
    EqualsBuilder builder = new EqualsBuilder();
    builder.append(getDescriptionDefault(), getDescription());
    builder.append(getCategoryDefault(), getCategory());
    builder.append(getDirectAccessDefault(), isDirectAccess());
    builder.append(getCacheableDefault(), isCachable());
    return builder.isEquals();
  }
View Full Code Here

Examples of org.apache.commons.lang.builder.EqualsBuilder

    @Override
    public boolean equals(Object obj) {
        if (obj != null && obj instanceof TMLScriptMethod) {
            TMLScriptMethod other = (TMLScriptMethod) obj;
            EqualsBuilder builder = new EqualsBuilder();
            builder.append(hashCode(), other.hashCode());
            return builder.isEquals();
        }
        return super.equals(obj);
    }
View Full Code Here

Examples of org.apache.commons.lang.builder.EqualsBuilder

    @Override
    public boolean equals(Object obj) {       
        if (obj != null && obj instanceof TMLScriptMethodParameter) {
            TMLScriptMethodParameter other = (TMLScriptMethodParameter) obj;
            EqualsBuilder builder = new EqualsBuilder();
            builder.append(hashCode(), other.hashCode());
            return builder.isEquals();
        }
        return super.equals(obj);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.