Java org.apache.commons.lang3.builder ToStringBuilder fields, constructors, methods, implement or subclass

Example usage for Java org.apache.commons.lang3.builder ToStringBuilder fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.apache.commons.lang3.builder ToStringBuilder.

The text is from its open source code.

Subclass

org.apache.commons.lang3.builder.ToStringBuilder has subclasses.
Click this link to see all its subclasses.

Constructor

ToStringBuilder(final Object object, final ToStringStyle style)

Constructs a builder for the specified object using the a defined output style.

If the style is null, the default style is used.

ToStringBuilder(final Object object)

Constructs a builder for the specified object using the default output style.

This default style is obtained from #getDefaultStyle() .

Method

ToStringBuilderappend(final String fieldName, final boolean value)

Append to the toString a boolean value.

ToStringBuilderappend(final String fieldName, final boolean[] array)

Append to the toString a boolean array.

ToStringBuilderappend(final String fieldName, final byte value)

Append to the toString an byte value.

ToStringBuilderappend(final String fieldName, final byte[] array)

Append to the toString a byte array.

ToStringBuilderappend(final String fieldName, final char value)

Append to the toString a char value.

ToStringBuilderappend(final String fieldName, final char[] array)

Append to the toString a char array.

ToStringBuilderappend(final String fieldName, final double value)

Append to the toString a double value.

ToStringBuilderappend(final String fieldName, final double[] array)

Append to the toString a double array.

ToStringBuilderappend(final String fieldName, final float value)

Append to the toString an float value.

ToStringBuilderappend(final String fieldName, final float[] array)

Append to the toString a float array.

ToStringBuilderappend(final String fieldName, final int value)

Append to the toString an int value.

ToStringBuilderappend(final String fieldName, final int[] array)

Append to the toString an int array.

ToStringBuilderappend(final String fieldName, final long value)

Append to the toString a long value.

ToStringBuilderappend(final String fieldName, final long[] array)

Append to the toString a long array.

ToStringBuilderappend(final String fieldName, final Object obj)

Append to the toString an Object value.

ToStringBuilderappend(final String fieldName, final Object[] array)

Append to the toString an Object array.

ToStringBuilderappend(final String fieldName, final short value)

Append to the toString an short value.

ToStringBuilderappend(final String fieldName, final short[] array)

Append to the toString a short array.

ToStringBuilderappend(final boolean value)

Append to the toString a boolean value.

ToStringBuilderappend(final boolean[] array)

Append to the toString a boolean array.

ToStringBuilderappend(final byte value)

Append to the toString a byte value.

ToStringBuilderappend(final byte[] array)

Append to the toString a byte array.

ToStringBuilderappend(final char value)

Append to the toString a char value.

ToStringBuilderappend(final char[] array)

Append to the toString a char array.

ToStringBuilderappend(final double value)

Append to the toString a double value.

ToStringBuilderappend(final double[] array)

Append to the toString a double array.

ToStringBuilderappend(final float value)

Append to the toString a float value.

ToStringBuilderappend(final float[] array)

Append to the toString a float array.

ToStringBuilderappend(final int value)

Append to the toString an int value.

ToStringBuilderappend(final int[] array)

Append to the toString an int array.

ToStringBuilderappend(final long value)

Append to the toString a long value.

ToStringBuilderappend(final long[] array)

Append to the toString a long array.

ToStringBuilderappend(final Object obj)

Append to the toString an Object value.

ToStringBuilderappend(final Object[] array)

Append to the toString an Object array.

ToStringBuilderappend(final short value)

Append to the toString a short value.

ToStringBuilderappend(final short[] array)

Append to the toString a short array.

ToStringBuilderappendSuper(final String superToString)

Append the toString from the superclass.

This method assumes that the superclass uses the same ToStringStyle as this one.

If superToString is null, no change is made.

ToStringBuilderappendToString(final String toString)

Append the toString from another object.

This method is useful where a class delegates most of the implementation of its properties to another class.

Stringbuild()
Returns the String that was build as an object representation.
StringreflectionToString(final Object object)

Uses ReflectionToStringBuilder to generate a toString for the specified object.

StringreflectionToString(final Object object, final ToStringStyle style)

Uses ReflectionToStringBuilder to generate a toString for the specified object.

StringreflectionToString(final Object object, final ToStringStyle style, final boolean outputTransients)

Uses ReflectionToStringBuilder to generate a toString for the specified object.

StringreflectionToString(final T object, final ToStringStyle style, final boolean outputTransients, final Class reflectUpToClass)

Uses ReflectionToStringBuilder to generate a toString for the specified object.

voidsetDefaultStyle(final ToStringStyle style)

Sets the default ToStringStyle to use.

This method sets a singleton default value, typically for the whole JVM.

StringtoString()

Returns the built toString.

This method appends the end of data indicator, and can only be called once.