Class ToStringBuilder.Builder
java.lang.Object
org.apache.commons.lang3.builder.AbstractReflection.AbstractBuilder<ToStringBuilder.Builder>
org.apache.commons.lang3.builder.ToStringBuilder.Builder
- All Implemented Interfaces:
Supplier<AbstractReflection>
- Enclosing class:
ToStringBuilder
public static class ToStringBuilder.Builder
extends AbstractReflection.AbstractBuilder<ToStringBuilder.Builder>
Builds instances of CompareToBuilder.
- Since:
- 3.21.0
-
Method Summary
Modifier and TypeMethodDescriptionget()setBuffer(StringBuffer buffer) Sets theStringBufferto populate, may be null.Sets the Object to build atoStringfor, not recommended to be null.setStyle(ToStringStyle style) Sets the style of thetoStringto create, null uses the default style.Methods inherited from class AbstractReflection.AbstractBuilder
asThis, setForceAccessible
-
Method Details
-
get
-
setBuffer
Sets theStringBufferto populate, may be null.- Parameters:
buffer- TheStringBufferto populate, may be null- Returns:
thisbuilder instance.
-
setObject
Sets the Object to build atoStringfor, not recommended to be null.- Parameters:
object- The Object to build atoStringfor, not recommended to be null.- Returns:
thisbuilder instance.
-
setStyle
Sets the style of thetoStringto create, null uses the default style.- Parameters:
style- The style of thetoStringto create, null uses the default style- Returns:
thisbuilder instance.
-