Package org.apache.commons.lang3.builder
Class RecursiveToStringStyle.Builder
- java.lang.Object
-
- org.apache.commons.lang3.builder.RecursiveToStringStyle.Builder
-
- All Implemented Interfaces:
java.util.function.Supplier<RecursiveToStringStyle>
- Enclosing class:
- RecursiveToStringStyle
public static class RecursiveToStringStyle.Builder extends java.lang.Object implements java.util.function.Supplier<RecursiveToStringStyle>
Builder forRecursiveToStringStyleinstances.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RecursiveToStringStyleget()RecursiveToStringStyle.BuildersetMaxOutputLength(int maxOutputLength)Sets the maximum length the output buffer may reach before nested objects are elided withRecursiveToStringStyle.TRUNCATED_TEXT;0(the default) means unlimited.
-
-
-
Method Detail
-
get
public RecursiveToStringStyle get()
- Specified by:
getin interfacejava.util.function.Supplier<RecursiveToStringStyle>
-
setMaxOutputLength
public RecursiveToStringStyle.Builder setMaxOutputLength(int maxOutputLength)
Sets the maximum length the output buffer may reach before nested objects are elided withRecursiveToStringStyle.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;0means unlimited.- Returns:
- this builder for chaining.
-
-