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

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

Introduction

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

Prototype

public ToStringBuilder(final Object object, final ToStringStyle style) 

Source Link

Document

Constructs a builder for the specified object using the a defined output style.

If the style is null, the default style is used.

Usage

From source file:de.vandermeer.asciitable.v2.row.RuleRow.java

@Override
public String toString(int indent) {
    ToStringBuilder ret = new ToStringBuilder(this, ObjectToStringStyle.getStyle(indent));
    ret.append("row type       ", "rule type " + this.ruleType + " style " + this.ruleStyle);

    return ret.toString();
}

From source file:de.terrestris.shogun.model.BaseProxyConfig.java

/**
 *
 *//*  w  w w.  j  ava  2s . co m*/
public String toString() {
    return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE).appendSuper(super.toString())
            .append("mandatoryParameters", mandatoryParameters).append("validatorClass", validatorClass)
            .toString();
}