Package org.apache.commons.lang3.builder

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


     * @see java.lang.Object#toString()
     */
    @Override
    public String toString()
    {
        return new ToStringBuilder(this, ToStringStyle.SIMPLE_STYLE) //
            .append("project", this.project) //$NON-NLS-1$
            .append("amount", this.amount) //$NON-NLS-1$
            .append("city", this.city) //$NON-NLS-1$
            .append("task", this.task) //$NON-NLS-1$
            .toString();
View Full Code Here


         * @see java.lang.Object#toString()
         */
        @Override
        public String toString()
        {
            return new ToStringBuilder(this, ToStringStyle.SIMPLE_STYLE) //
                .append("name", this.itemName) //$NON-NLS-1$
                .append("email", this.itemEmail) //$NON-NLS-1$
                .toString();
        }
View Full Code Here

    }

    @Override
    public String toString()
    {
        return new ToStringBuilder(this)
            .append("cfId", cfId)
            .append("ksName", ksName)
            .append("cfName", cfName)
            .append("cfType", cfType)
            .append("comparator", comparator)
View Full Code Here

     */
    public static String toString(Object array, String stringIfNull) {
        if (array == null) {
            return stringIfNull;
        }
        return new ToStringBuilder(array, ToStringStyle.SIMPLE_STYLE).append(array).toString();
    }
View Full Code Here

     */
    public static String toString(Object array, String stringIfNull) {
        if (array == null) {
            return stringIfNull;
        }
        return new ToStringBuilder(array, ToStringStyle.SIMPLE_STYLE).append(array).toString();
    }
View Full Code Here

     */
    public static String toString(final Object array, final String stringIfNull) {
        if (array == null) {
            return stringIfNull;
        }
        return new ToStringBuilder(array, ToStringStyle.SIMPLE_STYLE).append(array).toString();
    }
View Full Code Here

    }

    @Override
    public String toString()
    {
        return new ToStringBuilder(this)
            .append("cfId", cfId)
            .append("ksName", ksName)
            .append("cfName", cfName)
            .append("cfType", cfType)
            .append("comparator", comparator)
View Full Code Here

     */
    public static String toString(final Object array, final String stringIfNull) {
        if (array == null) {
            return stringIfNull;
        }
        return new ToStringBuilder(array, ToStringStyle.SIMPLE_STYLE).append(array).toString();
    }
View Full Code Here

    this.workQueue = workQueue;
  }

  @Override
  public String toString() {
    final ToStringBuilder sb = new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE);
    sb.append("name", name);
    sb.append("corePoolSize", corePoolSize);
    sb.append("keepAliveTime", keepAliveTime);
    sb.append("keepAliveTimeUnit", keepAliveTimeUnit);
    sb.append("daemon", daemon);
    sb.append("allowCoreThreadTimeOut", allowCoreThreadTimeOut);
    if (workQueue != null) {
      sb.append("workQueue", workQueue.getClass().getName());
    }
    if (handler != null) {
      sb.append("handler", handler.getClass().getName());
    }
    return sb.toString();
  }
View Full Code Here

    super.setMaximumPoolSize(maximumPoolSize);
  }

  @Override
  public String toString() {
    final ToStringBuilder sb = new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE);
    sb.append("activeCount", getActiveCount());
    sb.append("corePoolSize", getCorePoolSize());
    sb.append("largestPoolSize", getLargestPoolSize());
    sb.append("maximumPoolSize", getMaximumPoolSize());
    sb.append("poolSize", getPoolSize());
    sb.append("completedTaskCount", getCompletedTaskCount());
    sb.append("keepAliveTimeSecs", getKeepAliveTime(TimeUnit.SECONDS));
    sb.append("name", getName());
    sb.append("taskCount", getTaskCount());
    sb.append("allowsCoreThreadTimeOut", allowsCoreThreadTimeOut());
    return sb.toString();
  }
View Full Code Here

TOP

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

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.