public class AttributesStringBuilder
extends org.apache.commons.lang3.builder.ToStringBuilder
| Constructor and Description |
|---|
AttributesStringBuilder(Object object)
Constructs a builder for the specified object.
|
AttributesStringBuilder(Object object,
org.apache.commons.lang3.builder.ToStringStyle style,
StringBuffer buffer)
Constructs a builder for the specified object using the defined output style and build buffer.
|
| Modifier and Type | Method and Description |
|---|---|
org.apache.commons.lang3.builder.ToStringBuilder |
append(String fieldName,
boolean value)
Append to the
toString a boolean
value when true. |
org.apache.commons.lang3.builder.ToStringBuilder |
append(String fieldName,
Object obj)
Append to the
toString an Object
value when not null or an empty collection. |
org.apache.commons.lang3.builder.ToStringBuilder |
append(String fieldName,
Object obj,
boolean fullDetail)
Append to the
toString an Object
value. |
append, append, append, append, append, append, append, append, append, append, append, append, append, append, append, append, append, append, append, append, append, append, append, append, append, append, append, append, append, append, append, append, append, append, append, append, append, append, append, append, append, append, append, appendAsObjectToString, appendSuper, appendToString, build, getDefaultStyle, getObject, getStringBuffer, getStyle, reflectionToString, reflectionToString, reflectionToString, reflectionToString, setDefaultStyle, toStringpublic AttributesStringBuilder(Object object)
object - The Object to build a toString for, not recommended to be nullpublic AttributesStringBuilder(Object object, org.apache.commons.lang3.builder.ToStringStyle style, StringBuffer buffer)
object - The Object to build a toString for, not recommended to be nullstyle - The style of the toString to create.buffer - The string buffer to use for building.public org.apache.commons.lang3.builder.ToStringBuilder append(String fieldName, boolean value)
toString a boolean
value when true.append in class org.apache.commons.lang3.builder.ToStringBuilderfieldName - the field namevalue - the value to add to the toStringthis instance.public org.apache.commons.lang3.builder.ToStringBuilder append(String fieldName, Object obj)
toString an Object
value when not null or an empty collection.append in class org.apache.commons.lang3.builder.ToStringBuilderfieldName - the field nameobj - the value to add to the toStringthis instance.public org.apache.commons.lang3.builder.ToStringBuilder append(String fieldName, Object obj, boolean fullDetail)
toString an Object
value.append in class org.apache.commons.lang3.builder.ToStringBuilderfieldName - the field nameobj - the value to add to the toStringfullDetail - true for detail,
false for summary infothis instance.Copyright © 2019–2025 Teslanet.nl. All rights reserved.