Package org.apache.commons.lang.builder

Examples of org.apache.commons.lang.builder.ToStringStyle


  }

  @Override
  public String toString() {
    StringBuffer sb = new StringBuffer();
    ToStringStyle style = ToStringStyle.SHORT_PREFIX_STYLE;
    style.appendStart(sb, this);
    style.append(sb, "position", getPosition(), null);
    style.append(sb, "type", getPaymentType(), null);
    style.append(sb, "direction", getDirection(), null);
    style.append(sb, "index", getIndex(), null);
    style.append(sb, "amount", getAmount(), null);
    style.appendEnd(sb, this);
    return sb.toString();
  }
View Full Code Here


  }

  @Override
  public String toString() {
    final StringBuffer sb = new StringBuffer();
    final ToStringStyle style = ToStringStyle.SHORT_PREFIX_STYLE;
    style.appendStart(sb, this);
    appendFieldsToString(sb, style);
    style.appendEnd(sb, this);
    return sb.toString();
  }
View Full Code Here

  }

  @Override
  public String toString() {
    StringBuffer sb = new StringBuffer();
    ToStringStyle style = ToStringStyle.SHORT_PREFIX_STYLE;
    style.appendStart(sb, this);
    if (hasException()) {
      style.append(sb, "exception", getExceptionClass(), null);
    }
    if (!_logLevels.isEmpty()) {
      style.append(sb, "logLevels", _logLevels, null);
    }
    style.appendEnd(sb, this);
    return sb.toString();
  }
View Full Code Here

TOP

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

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.