ToStringBuilder to create a toString.
This class is intended to be used as a singleton. There is no need to instantiate a new style each time. Simply instantiate the class once, customize the values as required, and store the result in a public static final variable for the rest of the program to access.
| Modifier and Type | Field and Description |
|---|---|
| private static final long | serialVersionUID
Hides org. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public String | Returns: the current array end textOverrides org. Gets the array end text. |
| public String | Returns: the current array separator textOverrides org. Gets the array separator text. |
| public String | Returns: the current array start textOverrides org. Gets the array start text. |
| public String | Returns: the current content end textOverrides org. Gets the content end text. |
| public String | Returns: the current content start textOverrides org. Gets the content start text. |
| public String | Returns: the current field name value separator textOverrides org. Gets the field name value separator text. |
| public String | Returns: the current field separator textOverrides org. Gets the field separator text. |
| public String | Returns: the current text to output whennull foundOverrides org. Gets the text to output when |
| public String | Returns: the current end of size textOverrides org. Gets the end text to output when a |
| public String | Returns: the current start of size textOverrides org. Gets the text to output when a |
| public String | Returns: the current end of summary textOverrides org. Gets the end text to output when an |
| public String | Returns: the current start of summary textOverrides org. Gets the start text to output when an |
| public boolean | Returns: the current array content detail settingOverrides org. Gets whether to output array content detail. |
| public boolean | Returns: the current defaultFullDetail flagOverrides org. Gets whether to use full detail when the caller doesn't specify. |
| public boolean | Returns: fieldSeparatorAtEnd flagOverrides org. Gets whether the field separator should be added at the end of each buffer. |
| public boolean | Returns: the fieldSeparatorAtStart flagOverrides org. Gets whether the field separator should be added at the start of each buffer. |
| public boolean | Returns: the current useClassName flagOverrides org. Gets whether to use the class name. |
| public boolean | Returns: the current useFieldNames flagOverrides org. Gets whether to use the field names passed in. |
| public boolean | Returns: the current useIdentityHashCode flagOverrides org. Gets whether to use the identity hash code. |
| public boolean | Returns: the current useShortClassName flagOverrides org. Gets whether to output short or long class names. |
| public void | setArrayContentDetail(final boolean
the new arrayContentDetail flag arrayContentDetail)Overrides org. Sets whether to output array content detail. |
| public void | setArrayEnd(final String
the new array end text arrayEnd)Overrides org. Sets the array end text. |
| public void | setArraySeparator(final String
the new array separator text arraySeparator)Overrides org. Sets the array separator text. |
| public void | setArrayStart(final String
the new array start text arrayStart)Overrides org. Sets the array start text. |
| public void | setContentEnd(final String
the new content end text contentEnd)Overrides org. Sets the content end text. |
| public void | setContentStart(final String
the new content start text contentStart)Overrides org. Sets the content start text. |
| public void | setDefaultFullDetail(final boolean
the new defaultFullDetail flag defaultFullDetail)Overrides org. Sets whether to use full detail when the caller doesn't specify. |
| public void | setFieldNameValueSeparator(final String
the new field name value separator text fieldNameValueSeparator)Overrides org. Sets the field name value separator text. |
| public void | setFieldSeparator(final String
the new field separator text fieldSeparator)Overrides org. Sets the field separator text. |
| public void | setFieldSeparatorAtEnd(final boolean
the fieldSeparatorAtEnd flag fieldSeparatorAtEnd)Overrides org. Sets whether the field separator should be added at the end of each buffer. |
| public void | setFieldSeparatorAtStart(final boolean
the fieldSeparatorAtStart flag fieldSeparatorAtStart)Overrides org. Sets whether the field separator should be added at the start of each buffer. |
| public void | setNullText(final String
the new text to output when nullText)null foundOverrides org. Sets the text to output when |
| public void | setSizeEndText(final String
the new end of size text sizeEndText)Overrides org. Sets the end text to output when a |
| public void | setSizeStartText(final String
the new start of size text sizeStartText)Overrides org. Sets the start text to output when a |
| public void | setSummaryObjectEndText(final String
the new end of summary text summaryObjectEndText)Overrides org. Sets the end text to output when an |
| public void | setSummaryObjectStartText(final String
the new start of summary text summaryObjectStartText)Overrides org. Sets the start text to output when an |
| public void | setUseClassName(final boolean
the new useClassName flag useClassName)Overrides org. Sets whether to use the class name. |
| public void | setUseFieldNames(final boolean
the new useFieldNames flag useFieldNames)Overrides org. Sets whether to use the field names passed in. |
| public void | setUseIdentityHashCode(final boolean
the new useIdentityHashCode flag useIdentityHashCode)Overrides org. Sets whether to use the identity hash code. |
| public void | setUseShortClassName(final boolean
the new useShortClassName flag useShortClassName)Overrides org. Sets whether to output short or long class names. |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides org. Required for serialization support.
| |
| StandardToStringStyle | back to summary |
|---|---|
| public StandardToStringStyle() Constructs a new instance. | |
| getArrayEnd | back to summary |
|---|---|
| public String getArrayEnd() Overrides org. Gets the array end text. | |
| getArraySeparator | back to summary |
|---|---|
| public String getArraySeparator() Overrides org. Gets the array separator text. | |
| getArrayStart | back to summary |
|---|---|
| public String getArrayStart() Overrides org. Gets the array start text. | |
| getContentEnd | back to summary |
|---|---|
| public String getContentEnd() Overrides org. Gets the content end text. | |
| getContentStart | back to summary |
|---|---|
| public String getContentStart() Overrides org. Gets the content start text. | |
| getFieldNameValueSeparator | back to summary |
|---|---|
| public String getFieldNameValueSeparator() Overrides org. Gets the field name value separator text. | |
| getFieldSeparator | back to summary |
|---|---|
| public String getFieldSeparator() Overrides org. Gets the field separator text. | |
| getNullText | back to summary |
|---|---|
| public String getNullText() Overrides org. Gets the text to output when | |
| getSizeEndText | back to summary |
|---|---|
| public String getSizeEndText() Overrides org. Gets the end text to output when a This is output after the size value. | |
| getSizeStartText | back to summary |
|---|---|
| public String getSizeStartText() Overrides org. Gets the text to output when a This is output before the size value. | |
| getSummaryObjectEndText | back to summary |
|---|---|
| public String getSummaryObjectEndText() Overrides org. Gets the end text to output when an This is output after the size value. | |
| getSummaryObjectStartText | back to summary |
|---|---|
| public String getSummaryObjectStartText() Overrides org. Gets the start text to output when an This is output before the size value. | |
| isArrayContentDetail | back to summary |
|---|---|
| public boolean isArrayContentDetail() Overrides org. Gets whether to output array content detail.
| |
| isDefaultFullDetail | back to summary |
|---|---|
| public boolean isDefaultFullDetail() Overrides org. Gets whether to use full detail when the caller doesn't specify.
| |
| isFieldSeparatorAtEnd | back to summary |
|---|---|
| public boolean isFieldSeparatorAtEnd() Overrides org. Gets whether the field separator should be added at the end of each buffer.
| |
| isFieldSeparatorAtStart | back to summary |
|---|---|
| public boolean isFieldSeparatorAtStart() Overrides org. Gets whether the field separator should be added at the start of each buffer.
| |
| isUseClassName | back to summary |
|---|---|
| public boolean isUseClassName() Overrides org. Gets whether to use the class name.
| |
| isUseFieldNames | back to summary |
|---|---|
| public boolean isUseFieldNames() Overrides org. Gets whether to use the field names passed in.
| |
| isUseIdentityHashCode | back to summary |
|---|---|
| public boolean isUseIdentityHashCode() Overrides org. Gets whether to use the identity hash code.
| |
| isUseShortClassName | back to summary |
|---|---|
| public boolean isUseShortClassName() Overrides org. Gets whether to output short or long class names.
| |
| setArrayContentDetail | back to summary |
|---|---|
| public void setArrayContentDetail(final boolean arrayContentDetail) Overrides org. Sets whether to output array content detail.
| |
| setArrayEnd | back to summary |
|---|---|
| public void setArrayEnd(final String arrayEnd) Overrides org. Sets the array end text.
| |
| setArraySeparator | back to summary |
|---|---|
| public void setArraySeparator(final String arraySeparator) Overrides org. Sets the array separator text.
| |
| setArrayStart | back to summary |
|---|---|
| public void setArrayStart(final String arrayStart) Overrides org. Sets the array start text.
| |
| setContentEnd | back to summary |
|---|---|
| public void setContentEnd(final String contentEnd) Overrides org. Sets the content end text.
| |
| setContentStart | back to summary |
|---|---|
| public void setContentStart(final String contentStart) Overrides org. Sets the content start text.
| |
| setDefaultFullDetail | back to summary |
|---|---|
| public void setDefaultFullDetail(final boolean defaultFullDetail) Overrides org. Sets whether to use full detail when the caller doesn't specify.
| |
| setFieldNameValueSeparator | back to summary |
|---|---|
| public void setFieldNameValueSeparator(final String fieldNameValueSeparator) Overrides org. Sets the field name value separator text.
| |
| setFieldSeparator | back to summary |
|---|---|
| public void setFieldSeparator(final String fieldSeparator) Overrides org. Sets the field separator text.
| |
| setFieldSeparatorAtEnd | back to summary |
|---|---|
| public void setFieldSeparatorAtEnd(final boolean fieldSeparatorAtEnd) Overrides org. Sets whether the field separator should be added at the end of each buffer.
| |
| setFieldSeparatorAtStart | back to summary |
|---|---|
| public void setFieldSeparatorAtStart(final boolean fieldSeparatorAtStart) Overrides org. Sets whether the field separator should be added at the start of each buffer.
| |
| setNullText | back to summary |
|---|---|
| public void setNullText(final String nullText) Overrides org. Sets the text to output when
| |
| setSizeEndText | back to summary |
|---|---|
| public void setSizeEndText(final String sizeEndText) Overrides org. Sets the end text to output when a This is output after the size value.
| |
| setSizeStartText | back to summary |
|---|---|
| public void setSizeStartText(final String sizeStartText) Overrides org. Sets the start text to output when a This is output before the size value.
| |
| setSummaryObjectEndText | back to summary |
|---|---|
| public void setSummaryObjectEndText(final String summaryObjectEndText) Overrides org. Sets the end text to output when an This is output after the size value.
| |
| setSummaryObjectStartText | back to summary |
|---|---|
| public void setSummaryObjectStartText(final String summaryObjectStartText) Overrides org. Sets the start text to output when an This is output before the size value.
| |
| setUseClassName | back to summary |
|---|---|
| public void setUseClassName(final boolean useClassName) Overrides org. Sets whether to use the class name.
| |
| setUseFieldNames | back to summary |
|---|---|
| public void setUseFieldNames(final boolean useFieldNames) Overrides org. Sets whether to use the field names passed in.
| |
| setUseIdentityHashCode | back to summary |
|---|---|
| public void setUseIdentityHashCode(final boolean useIdentityHashCode) Overrides org. Sets whether to use the identity hash code.
| |
| setUseShortClassName | back to summary |
|---|---|
| public void setUseShortClassName(final boolean useShortClassName) Overrides org. Sets whether to output short or long class names.
| |