List of usage examples for org.apache.commons.lang3.builder ToStringBuilder setDefaultStyle
public static void setDefaultStyle(final ToStringStyle style)
Sets the default ToStringStyle
to use.
This method sets a singleton default value, typically for the whole JVM.
From source file:org.faster.orm.pagination.Page.java
@Override public String toString() { ToStringBuilder.setDefaultStyle(ToStringStyle.SHORT_PREFIX_STYLE); return new ToStringBuilder(this).append("TotalRecordCount", totalRecordCount).append("PageCount", pageCount) .append("PageSize", pageSize).append("CurrentPageIndex", currentPageIndex) .append("hasPreviousPage", hasPreviousPage()).append("hasNextPage", hasNextPage()).toString(); }
From source file:org.openwms.core.domain.system.AbstractPreference.java
/** * Return all fields as concatenated String. * /*w ww .j av a 2 s .co m*/ * @return fields as String */ public String getPropertiesAsString() { ToStringBuilder.setDefaultStyle(ToStringStyle.SIMPLE_STYLE); return new ToStringBuilder(this).append(getFields()).append(getValue()).append(getDescription()) .append(getFloatValue()).append(getMinimum()).append(getMaximum()).toString(); }
From source file:pl.wasat.smarthma.model.om.GeometryMembers.java
@Override public String toString() { ToStringStyle style = new SmartHMAStringStyle(); ToStringBuilder.setDefaultStyle(style); return ToStringBuilder.reflectionToString(this, style); }