Class ToStringBuilder
- java.lang.Object
- 
- org.apache.commons.lang3.builder.ToStringBuilder
 
- 
- All Implemented Interfaces:
- Builder<java.lang.String>
 - Direct Known Subclasses:
- ReflectionToStringBuilder
 
 public class ToStringBuilder extends java.lang.Object implements Builder<java.lang.String> Assists in implementing Object.toString()methods.This class enables a good and consistent toString()to be built for any class or object. This class aims to simplify the process by:- allowing field names
- handling all types consistently
- handling nulls consistently
- outputting arrays and multi-dimensional arrays
- enabling the detail level to be controlled for Objects and Collections
- handling class hierarchies
 To use this class write code as follows: public class Person { String name; int age; boolean smoker; ... public String toString() { return new ToStringBuilder(this). append("name", name). append("age", age). append("smoker", smoker). toString(); } }This will produce a toString of the format: Person@7f54[name=Stephen,age=29,smoker=false]To add the superclass toString, useappendSuper(java.lang.String). To append thetoStringfrom an object that is delegated to (or any other object), useappendToString(java.lang.String).Alternatively, there is a method that uses reflection to determine the fields to test. Because these fields are usually private, the method, reflectionToString, usesAccessibleObject.setAccessibleto change the visibility of the fields. This will fail under a security manager, unless the appropriate permissions are set up correctly. It is also slower than testing explicitly.A typical invocation for this method would look like: public String toString() { return ToStringBuilder.reflectionToString(this); }You can also use the builder to debug 3rd party objects: System.out.println("An object: " + ToStringBuilder.reflectionToString(anObject));The exact format of the toStringis determined by theToStringStylepassed into the constructor.- Since:
- 1.0
 
- 
- 
Constructor SummaryConstructors Constructor Description ToStringBuilder(java.lang.Object object)Constructs a builder for the specified object using the default output style.ToStringBuilder(java.lang.Object object, ToStringStyle style)Constructs a builder for the specified object using the defined output style.ToStringBuilder(java.lang.Object object, ToStringStyle style, java.lang.StringBuffer buffer)Constructs a builder for the specified object.
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ToStringBuilderappend(boolean value)Append to thetoStringabooleanvalue.ToStringBuilderappend(boolean[] array)Append to thetoStringabooleanarray.ToStringBuilderappend(byte value)Append to thetoStringabytevalue.ToStringBuilderappend(byte[] array)Append to thetoStringabytearray.ToStringBuilderappend(char value)Append to thetoStringacharvalue.ToStringBuilderappend(char[] array)Append to thetoStringachararray.ToStringBuilderappend(double value)Append to thetoStringadoublevalue.ToStringBuilderappend(double[] array)Append to thetoStringadoublearray.ToStringBuilderappend(float value)Append to thetoStringafloatvalue.ToStringBuilderappend(float[] array)Append to thetoStringafloatarray.ToStringBuilderappend(int value)Append to thetoStringanintvalue.ToStringBuilderappend(int[] array)Append to thetoStringanintarray.ToStringBuilderappend(long value)Append to thetoStringalongvalue.ToStringBuilderappend(long[] array)Append to thetoStringalongarray.ToStringBuilderappend(short value)Append to thetoStringashortvalue.ToStringBuilderappend(short[] array)Append to thetoStringashortarray.ToStringBuilderappend(java.lang.Object obj)Append to thetoStringanObjectvalue.ToStringBuilderappend(java.lang.Object[] array)Append to thetoStringanObjectarray.ToStringBuilderappend(java.lang.String fieldName, boolean value)Append to thetoStringabooleanvalue.ToStringBuilderappend(java.lang.String fieldName, boolean[] array)Append to thetoStringabooleanarray.ToStringBuilderappend(java.lang.String fieldName, boolean[] array, boolean fullDetail)Append to thetoStringabooleanarray.ToStringBuilderappend(java.lang.String fieldName, byte value)Append to thetoStringanbytevalue.ToStringBuilderappend(java.lang.String fieldName, byte[] array)Append to thetoStringabytearray.ToStringBuilderappend(java.lang.String fieldName, byte[] array, boolean fullDetail)Append to thetoStringabytearray.ToStringBuilderappend(java.lang.String fieldName, char value)Append to thetoStringacharvalue.ToStringBuilderappend(java.lang.String fieldName, char[] array)Append to thetoStringachararray.ToStringBuilderappend(java.lang.String fieldName, char[] array, boolean fullDetail)Append to thetoStringachararray.ToStringBuilderappend(java.lang.String fieldName, double value)Append to thetoStringadoublevalue.ToStringBuilderappend(java.lang.String fieldName, double[] array)Append to thetoStringadoublearray.ToStringBuilderappend(java.lang.String fieldName, double[] array, boolean fullDetail)Append to thetoStringadoublearray.ToStringBuilderappend(java.lang.String fieldName, float value)Append to thetoStringanfloatvalue.ToStringBuilderappend(java.lang.String fieldName, float[] array)Append to thetoStringafloatarray.ToStringBuilderappend(java.lang.String fieldName, float[] array, boolean fullDetail)Append to thetoStringafloatarray.ToStringBuilderappend(java.lang.String fieldName, int value)Append to thetoStringanintvalue.ToStringBuilderappend(java.lang.String fieldName, int[] array)Append to thetoStringanintarray.ToStringBuilderappend(java.lang.String fieldName, int[] array, boolean fullDetail)Append to thetoStringanintarray.ToStringBuilderappend(java.lang.String fieldName, long value)Append to thetoStringalongvalue.ToStringBuilderappend(java.lang.String fieldName, long[] array)Append to thetoStringalongarray.ToStringBuilderappend(java.lang.String fieldName, long[] array, boolean fullDetail)Append to thetoStringalongarray.ToStringBuilderappend(java.lang.String fieldName, short value)Append to thetoStringanshortvalue.ToStringBuilderappend(java.lang.String fieldName, short[] array)Append to thetoStringashortarray.ToStringBuilderappend(java.lang.String fieldName, short[] array, boolean fullDetail)Append to thetoStringashortarray.ToStringBuilderappend(java.lang.String fieldName, java.lang.Object obj)Append to thetoStringanObjectvalue.ToStringBuilderappend(java.lang.String fieldName, java.lang.Object[] array)Append to thetoStringanObjectarray.ToStringBuilderappend(java.lang.String fieldName, java.lang.Object[] array, boolean fullDetail)Append to thetoStringanObjectarray.ToStringBuilderappend(java.lang.String fieldName, java.lang.Object obj, boolean fullDetail)Append to thetoStringanObjectvalue.ToStringBuilderappendAsObjectToString(java.lang.Object srcObject)Appends with the same format as the defaultObject toString()method.ToStringBuilderappendSuper(java.lang.String superToString)Append thetoStringfrom the superclass.ToStringBuilderappendToString(java.lang.String toString)Append thetoStringfrom another object.java.lang.Stringbuild()Returns the String that was build as an object representation.static ToStringStylegetDefaultStyle()Gets the defaultToStringStyleto use.java.lang.ObjectgetObject()Returns theObjectbeing output.java.lang.StringBuffergetStringBuffer()Gets theStringBufferbeing populated.ToStringStylegetStyle()Gets theToStringStylebeing used.static java.lang.StringreflectionToString(java.lang.Object object)UsesReflectionToStringBuilderto generate atoStringfor the specified object.static java.lang.StringreflectionToString(java.lang.Object object, ToStringStyle style)UsesReflectionToStringBuilderto generate atoStringfor the specified object.static java.lang.StringreflectionToString(java.lang.Object object, ToStringStyle style, boolean outputTransients)UsesReflectionToStringBuilderto generate atoStringfor the specified object.static <T> java.lang.StringreflectionToString(T object, ToStringStyle style, boolean outputTransients, java.lang.Class<? super T> reflectUpToClass)UsesReflectionToStringBuilderto generate atoStringfor the specified object.static voidsetDefaultStyle(ToStringStyle style)Sets the defaultToStringStyleto use.java.lang.StringtoString()Returns the builttoString.
 
- 
- 
- 
Constructor Detail- 
ToStringBuilderpublic ToStringBuilder(java.lang.Object object) Constructs a builder for the specified object using the default output style. This default style is obtained from getDefaultStyle().- Parameters:
- object- the Object to build a- toStringfor, not recommended to be null
 
 - 
ToStringBuilderpublic ToStringBuilder(java.lang.Object object, ToStringStyle style)Constructs a builder for the specified object using the defined output style. If the style is null, the default style is used.- Parameters:
- object- the Object to build a- toStringfor, not recommended to be null
- style- the style of the- toStringto create, null uses the default style
 
 - 
ToStringBuilderpublic ToStringBuilder(java.lang.Object object, ToStringStyle style, java.lang.StringBuffer buffer)Constructs a builder for the specified object. If the style is null, the default style is used.If the buffer is null, a new one is created.- Parameters:
- object- the Object to build a- toStringfor, not recommended to be null
- style- the style of the- toStringto create, null uses the default style
- buffer- the- StringBufferto populate, may be null
 
 
- 
 - 
Method Detail- 
getDefaultStylepublic static ToStringStyle getDefaultStyle() Gets the default ToStringStyleto use.This method gets a singleton default value, typically for the whole JVM. Changing this default should generally only be done during application startup. It is recommended to pass a ToStringStyleto the constructor instead of using this global default.This method can be used from multiple threads. Internally, a volatilevariable is used to provide the guarantee that the latest value set usingsetDefaultStyle(org.apache.commons.lang3.builder.ToStringStyle)is the value returned. It is strongly recommended that the default style is only changed during application startup.One reason for changing the default could be to have a verbose style during development and a compact style in production. - Returns:
- the default ToStringStyle, never null
 
 - 
setDefaultStylepublic static void setDefaultStyle(ToStringStyle style) Sets the default ToStringStyleto use.This method sets a singleton default value, typically for the whole JVM. Changing this default should generally only be done during application startup. It is recommended to pass a ToStringStyleto the constructor instead of changing this global default.This method is not intended for use from multiple threads. Internally, a volatilevariable is used to provide the guarantee that the latest value set is the value returned fromgetDefaultStyle().- Parameters:
- style- the default- ToStringStyle
- Throws:
- java.lang.IllegalArgumentException- if the style is- null
 
 - 
reflectionToStringpublic static java.lang.String reflectionToString(java.lang.Object object) Uses ReflectionToStringBuilderto generate atoStringfor the specified object.- Parameters:
- object- the Object to be output
- Returns:
- the String result
- See Also:
- ReflectionToStringBuilder.toString(Object)
 
 - 
reflectionToStringpublic static java.lang.String reflectionToString(java.lang.Object object, ToStringStyle style)Uses ReflectionToStringBuilderto generate atoStringfor the specified object.- Parameters:
- object- the Object to be output
- style- the style of the- toStringto create, may be- null
- Returns:
- the String result
- See Also:
- ReflectionToStringBuilder.toString(Object,ToStringStyle)
 
 - 
reflectionToStringpublic static java.lang.String reflectionToString(java.lang.Object object, ToStringStyle style, boolean outputTransients)Uses ReflectionToStringBuilderto generate atoStringfor the specified object.- Parameters:
- object- the Object to be output
- style- the style of the- toStringto create, may be- null
- outputTransients- whether to include transient fields
- Returns:
- the String result
- See Also:
- ReflectionToStringBuilder.toString(Object,ToStringStyle,boolean)
 
 - 
reflectionToStringpublic static <T> java.lang.String reflectionToString(T object, ToStringStyle style, boolean outputTransients, java.lang.Class<? super T> reflectUpToClass)Uses ReflectionToStringBuilderto generate atoStringfor the specified object.- Type Parameters:
- T- the type of the object
- Parameters:
- object- the Object to be output
- style- the style of the- toStringto create, may be- null
- outputTransients- whether to include transient fields
- reflectUpToClass- the superclass to reflect up to (inclusive), may be- null
- Returns:
- the String result
- Since:
- 2.0
- See Also:
- ReflectionToStringBuilder.toString(Object,ToStringStyle,boolean,boolean,Class)
 
 - 
appendpublic ToStringBuilder append(boolean value) Append to the toStringabooleanvalue.- Parameters:
- value- the value to add to the- toString
- Returns:
- this
 
 - 
appendpublic ToStringBuilder append(boolean[] array) Append to the toStringabooleanarray.- Parameters:
- array- the array to add to the- toString
- Returns:
- this
 
 - 
appendpublic ToStringBuilder append(byte value) Append to the toStringabytevalue.- Parameters:
- value- the value to add to the- toString
- Returns:
- this
 
 - 
appendpublic ToStringBuilder append(byte[] array) Append to the toStringabytearray.- Parameters:
- array- the array to add to the- toString
- Returns:
- this
 
 - 
appendpublic ToStringBuilder append(char value) Append to the toStringacharvalue.- Parameters:
- value- the value to add to the- toString
- Returns:
- this
 
 - 
appendpublic ToStringBuilder append(char[] array) Append to the toStringachararray.- Parameters:
- array- the array to add to the- toString
- Returns:
- this
 
 - 
appendpublic ToStringBuilder append(double value) Append to the toStringadoublevalue.- Parameters:
- value- the value to add to the- toString
- Returns:
- this
 
 - 
appendpublic ToStringBuilder append(double[] array) Append to the toStringadoublearray.- Parameters:
- array- the array to add to the- toString
- Returns:
- this
 
 - 
appendpublic ToStringBuilder append(float value) Append to the toStringafloatvalue.- Parameters:
- value- the value to add to the- toString
- Returns:
- this
 
 - 
appendpublic ToStringBuilder append(float[] array) Append to the toStringafloatarray.- Parameters:
- array- the array to add to the- toString
- Returns:
- this
 
 - 
appendpublic ToStringBuilder append(int value) Append to the toStringanintvalue.- Parameters:
- value- the value to add to the- toString
- Returns:
- this
 
 - 
appendpublic ToStringBuilder append(int[] array) Append to the toStringanintarray.- Parameters:
- array- the array to add to the- toString
- Returns:
- this
 
 - 
appendpublic ToStringBuilder append(long value) Append to the toStringalongvalue.- Parameters:
- value- the value to add to the- toString
- Returns:
- this
 
 - 
appendpublic ToStringBuilder append(long[] array) Append to the toStringalongarray.- Parameters:
- array- the array to add to the- toString
- Returns:
- this
 
 - 
appendpublic ToStringBuilder append(java.lang.Object obj) Append to the toStringanObjectvalue.- Parameters:
- obj- the value to add to the- toString
- Returns:
- this
 
 - 
appendpublic ToStringBuilder append(java.lang.Object[] array) Append to the toStringanObjectarray.- Parameters:
- array- the array to add to the- toString
- Returns:
- this
 
 - 
appendpublic ToStringBuilder append(short value) Append to the toStringashortvalue.- Parameters:
- value- the value to add to the- toString
- Returns:
- this
 
 - 
appendpublic ToStringBuilder append(short[] array) Append to the toStringashortarray.- Parameters:
- array- the array to add to the- toString
- Returns:
- this
 
 - 
appendpublic ToStringBuilder append(java.lang.String fieldName, boolean value) Append to the toStringabooleanvalue.- Parameters:
- fieldName- the field name
- value- the value to add to the- toString
- Returns:
- this
 
 - 
appendpublic ToStringBuilder append(java.lang.String fieldName, boolean[] array) Append to the toStringabooleanarray.- Parameters:
- fieldName- the field name
- array- the array to add to the- hashCode
- Returns:
- this
 
 - 
appendpublic ToStringBuilder append(java.lang.String fieldName, boolean[] array, boolean fullDetail) Append to the toStringabooleanarray.A boolean parameter controls the level of detail to show. Setting truewill output the array in full. Settingfalsewill output a summary, typically the size of the array.- Parameters:
- fieldName- the field name
- array- the array to add to the- toString
- fullDetail-- truefor detail,- falsefor summary info
- Returns:
- this
 
 - 
appendpublic ToStringBuilder append(java.lang.String fieldName, byte value) Append to the toStringanbytevalue.- Parameters:
- fieldName- the field name
- value- the value to add to the- toString
- Returns:
- this
 
 - 
appendpublic ToStringBuilder append(java.lang.String fieldName, byte[] array) Append to the toStringabytearray.- Parameters:
- fieldName- the field name
- array- the array to add to the- toString
- Returns:
- this
 
 - 
appendpublic ToStringBuilder append(java.lang.String fieldName, byte[] array, boolean fullDetail) Append to the toStringabytearray.A boolean parameter controls the level of detail to show. Setting truewill output the array in full. Settingfalsewill output a summary, typically the size of the array.- Parameters:
- fieldName- the field name
- array- the array to add to the- toString
- fullDetail-- truefor detail,- falsefor summary info
- Returns:
- this
 
 - 
appendpublic ToStringBuilder append(java.lang.String fieldName, char value) Append to the toStringacharvalue.- Parameters:
- fieldName- the field name
- value- the value to add to the- toString
- Returns:
- this
 
 - 
appendpublic ToStringBuilder append(java.lang.String fieldName, char[] array) Append to the toStringachararray.- Parameters:
- fieldName- the field name
- array- the array to add to the- toString
- Returns:
- this
 
 - 
appendpublic ToStringBuilder append(java.lang.String fieldName, char[] array, boolean fullDetail) Append to the toStringachararray.A boolean parameter controls the level of detail to show. Setting truewill output the array in full. Settingfalsewill output a summary, typically the size of the array.- Parameters:
- fieldName- the field name
- array- the array to add to the- toString
- fullDetail-- truefor detail,- falsefor summary info
- Returns:
- this
 
 - 
appendpublic ToStringBuilder append(java.lang.String fieldName, double value) Append to the toStringadoublevalue.- Parameters:
- fieldName- the field name
- value- the value to add to the- toString
- Returns:
- this
 
 - 
appendpublic ToStringBuilder append(java.lang.String fieldName, double[] array) Append to the toStringadoublearray.- Parameters:
- fieldName- the field name
- array- the array to add to the- toString
- Returns:
- this
 
 - 
appendpublic ToStringBuilder append(java.lang.String fieldName, double[] array, boolean fullDetail) Append to the toStringadoublearray.A boolean parameter controls the level of detail to show. Setting truewill output the array in full. Settingfalsewill output a summary, typically the size of the array.- Parameters:
- fieldName- the field name
- array- the array to add to the- toString
- fullDetail-- truefor detail,- falsefor summary info
- Returns:
- this
 
 - 
appendpublic ToStringBuilder append(java.lang.String fieldName, float value) Append to the toStringanfloatvalue.- Parameters:
- fieldName- the field name
- value- the value to add to the- toString
- Returns:
- this
 
 - 
appendpublic ToStringBuilder append(java.lang.String fieldName, float[] array) Append to the toStringafloatarray.- Parameters:
- fieldName- the field name
- array- the array to add to the- toString
- Returns:
- this
 
 - 
appendpublic ToStringBuilder append(java.lang.String fieldName, float[] array, boolean fullDetail) Append to the toStringafloatarray.A boolean parameter controls the level of detail to show. Setting truewill output the array in full. Settingfalsewill output a summary, typically the size of the array.- Parameters:
- fieldName- the field name
- array- the array to add to the- toString
- fullDetail-- truefor detail,- falsefor summary info
- Returns:
- this
 
 - 
appendpublic ToStringBuilder append(java.lang.String fieldName, int value) Append to the toStringanintvalue.- Parameters:
- fieldName- the field name
- value- the value to add to the- toString
- Returns:
- this
 
 - 
appendpublic ToStringBuilder append(java.lang.String fieldName, int[] array) Append to the toStringanintarray.- Parameters:
- fieldName- the field name
- array- the array to add to the- toString
- Returns:
- this
 
 - 
appendpublic ToStringBuilder append(java.lang.String fieldName, int[] array, boolean fullDetail) Append to the toStringanintarray.A boolean parameter controls the level of detail to show. Setting truewill output the array in full. Settingfalsewill output a summary, typically the size of the array.- Parameters:
- fieldName- the field name
- array- the array to add to the- toString
- fullDetail-- truefor detail,- falsefor summary info
- Returns:
- this
 
 - 
appendpublic ToStringBuilder append(java.lang.String fieldName, long value) Append to the toStringalongvalue.- Parameters:
- fieldName- the field name
- value- the value to add to the- toString
- Returns:
- this
 
 - 
appendpublic ToStringBuilder append(java.lang.String fieldName, long[] array) Append to the toStringalongarray.- Parameters:
- fieldName- the field name
- array- the array to add to the- toString
- Returns:
- this
 
 - 
appendpublic ToStringBuilder append(java.lang.String fieldName, long[] array, boolean fullDetail) Append to the toStringalongarray.A boolean parameter controls the level of detail to show. Setting truewill output the array in full. Settingfalsewill output a summary, typically the size of the array.- Parameters:
- fieldName- the field name
- array- the array to add to the- toString
- fullDetail-- truefor detail,- falsefor summary info
- Returns:
- this
 
 - 
appendpublic ToStringBuilder append(java.lang.String fieldName, java.lang.Object obj) Append to the toStringanObjectvalue.- Parameters:
- fieldName- the field name
- obj- the value to add to the- toString
- Returns:
- this
 
 - 
appendpublic ToStringBuilder append(java.lang.String fieldName, java.lang.Object obj, boolean fullDetail) Append to the toStringanObjectvalue.- Parameters:
- fieldName- the field name
- obj- the value to add to the- toString
- fullDetail-- truefor detail,- falsefor summary info
- Returns:
- this
 
 - 
appendpublic ToStringBuilder append(java.lang.String fieldName, java.lang.Object[] array) Append to the toStringanObjectarray.- Parameters:
- fieldName- the field name
- array- the array to add to the- toString
- Returns:
- this
 
 - 
appendpublic ToStringBuilder append(java.lang.String fieldName, java.lang.Object[] array, boolean fullDetail) Append to the toStringanObjectarray.A boolean parameter controls the level of detail to show. Setting truewill output the array in full. Settingfalsewill output a summary, typically the size of the array.- Parameters:
- fieldName- the field name
- array- the array to add to the- toString
- fullDetail-- truefor detail,- falsefor summary info
- Returns:
- this
 
 - 
appendpublic ToStringBuilder append(java.lang.String fieldName, short value) Append to the toStringanshortvalue.- Parameters:
- fieldName- the field name
- value- the value to add to the- toString
- Returns:
- this
 
 - 
appendpublic ToStringBuilder append(java.lang.String fieldName, short[] array) Append to the toStringashortarray.- Parameters:
- fieldName- the field name
- array- the array to add to the- toString
- Returns:
- this
 
 - 
appendpublic ToStringBuilder append(java.lang.String fieldName, short[] array, boolean fullDetail) Append to the toStringashortarray.A boolean parameter controls the level of detail to show. Setting truewill output the array in full. Settingfalsewill output a summary, typically the size of the array.- Parameters:
- fieldName- the field name
- array- the array to add to the- toString
- fullDetail-- truefor detail,- falsefor summary info
- Returns:
- this
 
 - 
appendAsObjectToStringpublic ToStringBuilder appendAsObjectToString(java.lang.Object srcObject) Appends with the same format as the default Object toString()method. Appends the class name followed bySystem.identityHashCode(java.lang.Object).- Parameters:
- srcObject- the- Objectwhose class name and id to output
- Returns:
- this
- Since:
- 2.0
 
 - 
appendSuperpublic ToStringBuilder appendSuper(java.lang.String superToString) Append the toStringfrom the superclass.This method assumes that the superclass uses the same ToStringStyleas this one.If superToStringisnull, no change is made.- Parameters:
- superToString- the result of- super.toString()
- Returns:
- this
- Since:
- 2.0
 
 - 
appendToStringpublic ToStringBuilder appendToString(java.lang.String toString) Append the toStringfrom another object.This method is useful where a class delegates most of the implementation of its properties to another class. You can then call toString()on the other class and pass the result into this method.private AnotherObject delegate; private String fieldInThisClass; public String toString() { return new ToStringBuilder(this). appendToString(delegate.toString()). append(fieldInThisClass). toString(); }This method assumes that the other object uses the same ToStringStyleas this one.If the toStringisnull, no change is made.- Parameters:
- toString- the result of- toString()on another object
- Returns:
- this
- Since:
- 2.0
 
 - 
getObjectpublic java.lang.Object getObject() Returns the Objectbeing output.- Returns:
- The object being output.
- Since:
- 2.0
 
 - 
getStringBufferpublic java.lang.StringBuffer getStringBuffer() Gets the StringBufferbeing populated.- Returns:
- the StringBufferbeing populated
 
 - 
getStylepublic ToStringStyle getStyle() Gets the ToStringStylebeing used.- Returns:
- the ToStringStylebeing used
- Since:
- 2.0
 
 - 
toStringpublic java.lang.String toString() Returns the built toString.This method appends the end of data indicator, and can only be called once. Use getStringBuffer()to get the current string state.If the object is null, return the style'snullText- Overrides:
- toStringin class- java.lang.Object
- Returns:
- the String toString
 
 - 
buildpublic java.lang.String build() Returns the String that was build as an object representation. The default implementation utilizes thetoString()implementation.- Specified by:
- buildin interface- Builder<java.lang.String>
- Returns:
- the String toString
- Since:
- 3.0
- See Also:
- toString()
 
 
- 
 
-