Example usage for org.apache.commons.lang3.builder ToStringBuilder setDefaultStyle

List of usage examples for org.apache.commons.lang3.builder ToStringBuilder setDefaultStyle

Introduction

In this page you can find the example usage for org.apache.commons.lang3.builder ToStringBuilder setDefaultStyle.

Prototype

public static void setDefaultStyle(final ToStringStyle style) 

Source Link

Document

Sets the default ToStringStyle to use.

This method sets a singleton default value, typically for the whole JVM.

Usage

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);
}