Package org.apache.commons.lang3.builder

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


      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


    }

    @Override
    public int hashCode()
    {
        return new HashCodeBuilder().append(getNode())
                .append(getAttributeName()).toHashCode();
    }
View Full Code Here

     * @return a hash code
     */
    @Override
    public int hashCode()
    {
        return new HashCodeBuilder().append(getPropertyDelimiter())
                .append(getEscapedDelimiter()).append(getIndexStart())
                .append(getIndexEnd()).append(getAttributeStart())
                .append(getAttributeEnd()).toHashCode();
    }
View Full Code Here

     * @return a hash code for this object
     */
    @Override
    public int hashCode()
    {
        return new HashCodeBuilder().append(getFileName())
                .append(getBasePath()).append(sourceURLAsString())
                .append(getEncoding()).append(getFileSystem())
                .append(getLocationStrategy()).toHashCode();
    }
View Full Code Here

    }
  }

  @Override
  public String toString() {
    final ToStringBuilder sb = new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE);
    if (ArrayUtils.isNotEmpty(configurationClasses)) {
      final String[] names = new String[configurationClasses.length];
      for (int i = 0; i < names.length; i++) {
        names[i] = configurationClasses[i].getName();
      }
      sb.append("configurationClasses", Arrays.toString(names));
    }
    if (ArrayUtils.isNotEmpty(configurationPackages)) {
      final String[] names = new String[configurationPackages.length];
      for (int i = 0; i < names.length; i++) {
        names[i] = configurationPackages[i].getName();
      }
      sb.append("configurationPackages", Arrays.toString(names));
    }

    if (!CollectionUtils.isEmpty(jvmSystemProperties)) {
      final StringWriter sw = new StringWriter(256);
      try {
        jvmSystemProperties.store(sw, "JVM System Propperties");
      } catch (final IOException e) {
        throw new RuntimeException(e);
      }
      sb.append("jvmSystemProperties", sw.toString());
    }
    return sb.toString();
  }
View Full Code Here

  public Purchaser() {
  }

  public String toString() {
    return new ToStringBuilder(this)
        .append("id", id)
        .append("name", name)
        .append("address", address)
        .append("nip", nip)
        .toString();
View Full Code Here

     * @return a string for this object
     */
    @Override
    public String toString()
    {
        ToStringBuilder sb = new ToStringBuilder(this);
        if (isAttributeResult())
        {
            sb.append("parentNode", getNode()).append("attribute",
                    getAttributeName());
        }
        else
        {
            sb.append("resultNode", getNode());
        }
        return sb.toString();
    }
View Full Code Here

     * @return a string for this object
     */
    @Override
    public String toString()
    {
        return new ToStringBuilder(this).append("keys", nodeKeys).toString();
    }
View Full Code Here

     * @return a string for this object
     */
    @Override
    public String toString()
    {
        return new ToStringBuilder(this)
                .append("propertyDelimiter", getPropertyDelimiter())
                .append("escapedDelimiter", getEscapedDelimiter())
                .append("indexStart", getIndexStart())
                .append("indexEnd", getIndexEnd())
                .append("attributeStart", getAttributeStart())
View Full Code Here

     * @return a string for this object
     */
    @Override
    public String toString()
    {
        return new ToStringBuilder(this).append("fileName", getFileName())
                .append("basePath", getBasePath())
                .append("sourceURL", sourceURLAsString())
                .append("encoding", getEncoding())
                .append("fileSystem", getFileSystem())
                .append("locationStrategy", getLocationStrategy()).toString();
View Full Code Here

TOP

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

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.