List of usage examples for org.apache.commons.lang.builder ToStringBuilder ToStringBuilder
public ToStringBuilder(Object object, ToStringStyle style)
Constructor for ToStringBuilder
specifying the output style.
If the style is null
, the default style is used.
From source file:com.bcpv.webapp.displaytag.decorators.ReportableListObject.java
/** * @see Object#toString()/*from w w w . j a va2s. c o m*/ */ 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(); }
From source file:com.likethecolor.alchemy.api.entity.QuotationAlchemyEntity.java
/** * @return string representing this object * * @see org.apache.commons.lang.builder.ToStringBuilder *//*w w w. ja v a2s . co m*/ public String toString(final ToStringStyle style) { // note - do not do super.toString // it will result in a StackOverflowError from ToStringStyle return new ToStringBuilder(this, style).append("quotation", getQuotation()) .append("sentiment", getSentiment()).toString(); }
From source file:edu.utah.further.fqe.impl.domain.TimeIntervalEntity.java
/** * @return//from w w w .j av a2 s. co m * @see java.lang.Object#toString() */ @Override public String toString() { return new ToStringBuilder(this, SHORT_WITH_SPACES_STYLE).append("start", start).append("end", end) .toString(); }
From source file:com.amazon.dtasdk.v2.serialization.messages.GetUserIdSerializableRequest.java
@Override public String toString() { return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("operation", operation) .append("infoField1", infoField1).append("infoField2", infoField2).append("infoField3", infoField3) .toString();/*from w w w.j ava 2 s .com*/ }
From source file:edu.utah.further.core.data.domain.SimpleEntity.java
/** * @see java.lang.Object#toString()/*from w w w .ja va 2s . c om*/ */ @Override public String toString() { return new ToStringBuilder(this, SHORT_WITH_SPACES_STYLE).append("id", id).append("age", age) .append("comment", comment).toString(); }