List of usage examples for org.apache.commons.lang.text StrBuilder size
int size
To view the source code for org.apache.commons.lang.text StrBuilder size.
Click Source Link
From source file:com.opengamma.core.position.impl.SimplePortfolioNode.java
/** * Gets a full-detail string containing all child nodes and positions. * //from www . ja v a 2s . c om * @return the full-detail string, not null */ public String toLongString() { StrBuilder childBuf = new StrBuilder(1024); childBuf.append("["); for (int i = 0; i < getChildNodes().size(); i++) { PortfolioNode child = getChildNodes().get(i); if (child instanceof SimplePortfolioNode) { childBuf.append(((SimplePortfolioNode) child).toLongString()); } else { childBuf.append(child.toString()); } if (i != getChildNodes().size() - 1) { childBuf.append(","); } } childBuf.append("]"); return new StrBuilder(childBuf.size() + 128).append("PortfolioNode[uniqueId=").append(getUniqueId()) .append(",childNodes=").append(childBuf).append(",positions=").append(getPositions()).append("]") .toString(); }