List of usage examples for org.apache.commons.lang.builder ToStringStyle appendEnd
public void appendEnd(StringBuffer buffer, Object object)
Append to the toString
the end of data indicator.
From source file:com.opengamma.engine.value.ComputedValue.java
@Override public String toString() { final StringBuffer sb = new StringBuffer(); final ToStringStyle style = ToStringStyle.SHORT_PREFIX_STYLE; style.appendStart(sb, this); appendFieldsToString(sb, style);/* w w w . j ava2 s.c o m*/ style.appendEnd(sb, this); return sb.toString(); }
From source file:com.opengamma.integration.cashflow.PositionPayment.java
@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(); }
From source file:com.opengamma.engine.calcnode.MutableExecutionLog.java
@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); }/* w w w .j ava2 s . c o m*/ if (!_logLevels.isEmpty()) { style.append(sb, "logLevels", _logLevels, null); } style.appendEnd(sb, this); return sb.toString(); }
From source file:com.opengamma.engine.view.calcnode.MutableExecutionLog.java
@Override public String toString() { StringBuffer sb = new StringBuffer(); ToStringStyle style = ToStringStyle.SHORT_PREFIX_STYLE; style.appendStart(sb, this); style.append(sb, "error", hasError(), null); style.append(sb, "warn", hasWarn(), null); style.append(sb, "info", hasInfo(), null); if (hasException()) { style.append(sb, "exception", getExceptionClass(), null); }/* w ww . j a va2 s . c o m*/ style.appendEnd(sb, this); return sb.toString(); }