Package org.apache.commons.lang3.builder

Examples of org.apache.commons.lang3.builder.CompareToBuilder


        {
            return false;
        }

        DefaultExpressionEngineSymbols c = (DefaultExpressionEngineSymbols) obj;
        return new EqualsBuilder()
                .append(getPropertyDelimiter(), c.getPropertyDelimiter())
                .append(getEscapedDelimiter(), c.getEscapedDelimiter())
                .append(getIndexStart(), c.getIndexStart())
                .append(getIndexEnd(), c.getIndexEnd())
                .append(getAttributeStart(), c.getAttributeStart())
View Full Code Here


        {
            return false;
        }

        FileLocator c = (FileLocator) obj;
        return new EqualsBuilder().append(getFileName(), c.getFileName())
                .append(getBasePath(), c.getBasePath())
                .append(sourceURLAsString(), c.sourceURLAsString())
                .append(getEncoding(), c.getEncoding())
                .append(getFileSystem(), c.getFileSystem())
                .append(getLocationStrategy(), c.getLocationStrategy())
View Full Code Here

    {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        StatsMetadata that = (StatsMetadata) o;
        return new EqualsBuilder()
                       .append(estimatedRowSize, that.estimatedRowSize)
                       .append(estimatedColumnCount, that.estimatedColumnCount)
                       .append(replayPosition, that.replayPosition)
                       .append(minTimestamp, that.minTimestamp)
                       .append(maxTimestamp, that.maxTimestamp)
View Full Code Here

    @Override
    public final boolean equals(Object object)
    {
        if (object instanceof RowSorter)
        {
            return new EqualsBuilder()
                .append(this.property, ((RowSorter) object).property)
                .append(this.columnIndex, ((RowSorter) object).columnIndex)
                .isEquals();
        }
View Full Code Here

        if (!(object instanceof PortletHref))
        {
            return false;
        }
        PortletHref rhs = (PortletHref) object;
        return new EqualsBuilder()
            .append(this.isAction, rhs.isAction)
            .append(this.parameters, rhs.parameters)
            .append(this.requestedMode, rhs.requestedMode)
            .append(this.requestedState, rhs.requestedState)
            .append(this.requestedSecure, rhs.requestedSecure)
View Full Code Here

            return false;
        }
        DefaultHref rhs = (DefaultHref) object;

        // "parameters" can't be added directly, since equals on HashMap doesn't return true with equal key/values
        return new EqualsBuilder()
            .append(this.parameters.keySet(), rhs.parameters.keySet())
            .append(this.parameters.values().toArray(), rhs.parameters.values().toArray())
            .append(this.url, rhs.url)
            .append(this.anchor, rhs.anchor)
            .isEquals();
View Full Code Here

    }

    @Override
    public int hashCode()
    {
        HashCodeBuilder builder = new HashCodeBuilder(373, 75437)
                .append(metadata)
                .append(deletionInfo());
        for (Cell cell : this)
            builder.append(cell);
        return builder.toHashCode();
    }
View Full Code Here

    }

    @Override
    public int hashCode()
    {
        HashCodeBuilder builder = new HashCodeBuilder(373, 75437)
                .append(metadata)
                .append(deletionInfo());
        for (Column column : this)
            builder.append(column);
        return builder.toHashCode();
    }
View Full Code Here

     *
     * @see java.lang.Object#hashCode()
     */
    @Override
    public int hashCode() {
      return new HashCodeBuilder().append(rowKey).append(colIndex).toHashCode();
    }
View Full Code Here

      return false;
  }
 
  @Override
  public int hashCode() {
    return new HashCodeBuilder()
        .append(this.id)
        .append(this.name)
        .append(this.address)
        .append(this.nip)
        .hashCode();
View Full Code Here

TOP

Related Classes of org.apache.commons.lang3.builder.CompareToBuilder

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.