Package org.apache.commons.lang3.text

Examples of org.apache.commons.lang3.text.StrBuilder

The aim has been to provide an API that mimics very closely what StringBuffer provides, but with additional methods. It should be noted that some edge cases, with invalid indices or null input, have been altered - see individual methods. The biggest of these changes is that by default, null will not output the text 'null'. This can be controlled by a property, {@link #setNullText(String)}.

Prior to 3.0, this class implemented Cloneable but did not implement the clone method so could not be used. From 3.0 onwards it no longer implements the interface. @since 2.2 @version $Id: StrBuilder.java 1153484 2011-08-03 13:39:42Z ggregory $


    @Override
    public int compareTo(
        @NotNull(message = "other can't be NULL") final RepoCommit other
    ) {
        return new CompareToBuilder().append(
            this.repo().coordinates(),
            other.repo().coordinates()
        ).append(this.sha(), other.sha()).build();
    }
View Full Code Here


    @Override
    public int compareTo(
        @NotNull(message = "cont should not be NULL") final Content cont
    ) {
        return new CompareToBuilder()
            .append(this.path(), cont.path())
                .append(this.repo().coordinates(), cont.repo().coordinates())
            .build();
    }
View Full Code Here

        @Override
        public int compareTo(
            @NotNull(message = "label can't be NULL") final Label label
        ) {
            return new CompareToBuilder()
                .append(this.repo().coordinates(), label.repo().coordinates())
                .append(this.obj, label.name())
                .build();
        }
View Full Code Here

        }
        @Override
        public int compareTo(
            @NotNull(message = "other can't be NULL") final Coordinates other
        ) {
            return new CompareToBuilder()
                .append(this.usr, other.user())
                .append(this.rpo, other.repo())
                .build();
        }
View Full Code Here

    @Override
    public boolean equals(final Object other) {
      if (!(other instanceof RowColIndex))
        return false;
      RowColIndex castOther = (RowColIndex) other;
      return new EqualsBuilder().append(rowKey, castOther.rowKey).append(colIndex, castOther.colIndex)
          .isEquals();
    }
View Full Code Here

  public boolean equals(Object obj) {
    if (obj == null) return false;
    if (obj == this) return true;
    if (Purchaser.class.isAssignableFrom(obj.getClass())) {
      final Purchaser other = Purchaser.class.cast(obj);
      return new EqualsBuilder().append(this.id, other.id)
          .append(this.name, other.name)
          .append(this.address, other.address)
          .append(this.nip, other.nip).isEquals();
      }
      return false;
View Full Code Here

        {
            return false;
        }

        QueryResult<?> c = (QueryResult<?>) obj;
        return new EqualsBuilder().append(getNode(), c.getNode())
                .append(getAttributeName(), c.getAttributeName()).isEquals();
    }
View Full Code Here

        {
            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

TOP

Related Classes of org.apache.commons.lang3.text.StrBuilder

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.