Package org.apache.commons.lang.builder

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


    @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

    @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

    }
    if (!(object instanceof Statistic)) {
      return false;
    }
    Statistic entry = (Statistic) object;
    return new EqualsBuilder().append(this.getType(), entry.getType()).isEquals();
  }
View Full Code Here

    }
    if (!(object instanceof StatisticEntry)) {
      return false;
    }
    StatisticEntry entry = (StatisticEntry) object;
    return new EqualsBuilder().append(this.getKey(), entry.getKey()).isEquals();
  }
View Full Code Here

   */
  public boolean equals(final Object object) {
    if (!(object instanceof StringIdObject)) { return false; }
    StringIdObject rhs = (StringIdObject) object;
    if (null == getId() || null == rhs.getId()) { return false; }
    return new EqualsBuilder().append(this.getId(), rhs.getId()).isEquals();
  }
View Full Code Here

      return false;
    }
    if (proxy == another) {
      return true;
    }
    return new EqualsBuilder().append(proxy.getComponentContract(),
        ((IComponent) another).getComponentContract()).append(
        proxy.straightGetProperties(),
        ((IComponent) another).straightGetProperties()).isEquals();
  }
View Full Code Here

    {
      return true;
    }

    FileScope fs = (FileScope) o;
    return new EqualsBuilder()
      .append(pathPattern, fs.pathPattern)
      .append(vcsAfterRev, fs.vcsAfterRev)
      .append(vcsBeforeRev, fs.vcsBeforeRev)
      .isEquals();
  }
View Full Code Here

    {
      return true;
    }

    Review r = (Review) o;
    return new EqualsBuilder()
      .append(status, r.status)
      .append(embedded, r.embedded)
      .append(shared, r.shared)
      .append(dataReferential, r.dataReferential)
      .append(goal, r.goal)
View Full Code Here

    }
    if (obj.getClass() != getClass()) {
      return false;
    }
    Modifier rhs = (Modifier) obj;
    return new EqualsBuilder().append(name, rhs.name).append(argument, rhs.argument)
        .isEquals();
  }
View Full Code Here

TOP

Related Classes of org.apache.commons.lang.builder.EqualsBuilder

Copyright © 2018 www.massapicom. 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.