RecursiveToStringStyle.Builder

public static class org.apache.commons.lang3.builder.RecursiveToStringStyle.Builder implements Supplier<RecursiveToStringStyle>[source]

Builder for RecursiveToStringStyle instances.

Methods

RecursiveToStringStyle

get()

RecursiveToStringStyle.Builder

setMaxOutputLength(int maxOutputLength)

Sets the maximum length the output buffer may reach before nested objects are elided with RecursiveToStringStyle.TRUNCATED_TEXT; 0 (the default) means unlimited.

public RecursiveToStringStyle get()[source]
Specified by:

get in interface Supplier

public RecursiveToStringStyle.Builder setMaxOutputLength(int maxOutputLength)[source]

Sets the maximum length the output buffer may reach before nested objects are elided with RecursiveToStringStyle.TRUNCATED_TEXT; 0 (the default) means unlimited. This is a throttle, not an exact bound: objects already being rendered may still append their shallow content.

Parameters:

maxOutputLength – once the produced string reaches this length, further nested objects are replaced by a "...<truncated>" marker; 0 means unlimited.

Returns:

this builder for chaining.