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

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

Introduction

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

The text is from its open source code.

Constructor

ToStringBuilder(Object object, ToStringStyle style)

Constructor for ToStringBuilder specifying the output style.

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

ToStringBuilder(Object object)

Constructor for ToStringBuilder.

This constructor outputs using the default style set with setDefaultStyle.

Method

ToStringBuilderappend(String fieldName, boolean value)

Append to the toString a boolean value.

ToStringBuilderappend(String fieldName, boolean[] array)

Append to the toString a boolean array.

ToStringBuilderappend(String fieldName, byte value)

Append to the toString an byte value.

ToStringBuilderappend(String fieldName, byte[] array)

Append to the toString a byte array.

ToStringBuilderappend(String fieldName, char value)

Append to the toString a char value.

ToStringBuilderappend(String fieldName, char[] array)

Append to the toString a char array.

ToStringBuilderappend(String fieldName, double value)

Append to the toString a double value.

ToStringBuilderappend(String fieldName, double[] array)

Append to the toString a double array.

ToStringBuilderappend(String fieldName, float value)

Append to the toString an float value.

ToStringBuilderappend(String fieldName, float[] array)

Append to the toString a float array.

ToStringBuilderappend(String fieldName, int value)

Append to the toString an int value.

ToStringBuilderappend(String fieldName, int[] array)

Append to the toString an int array.

ToStringBuilderappend(String fieldName, long value)

Append to the toString a long value.

ToStringBuilderappend(String fieldName, long[] array)

Append to the toString a long array.

ToStringBuilderappend(String fieldName, Object obj)

Append to the toString an Object value.

ToStringBuilderappend(String fieldName, Object[] array)

Append to the toString an Object array.

ToStringBuilderappend(String fieldName, short value)

Append to the toString an short value.

ToStringBuilderappend(String fieldName, short[] array)

Append to the toString a short array.

ToStringBuilderappend(boolean value)

Append to the toString a boolean value.

ToStringBuilderappend(boolean[] array)

Append to the toString a boolean array.

ToStringBuilderappend(byte value)

Append to the toString a byte value.

ToStringBuilderappend(byte[] array)

Append to the toString a byte array.

ToStringBuilderappend(char value)

Append to the toString a char value.

ToStringBuilderappend(char[] array)

Append to the toString a char array.

ToStringBuilderappend(double value)

Append to the toString a double value.

ToStringBuilderappend(double[] array)

Append to the toString a double array.

ToStringBuilderappend(float value)

Append to the toString a float value.

ToStringBuilderappend(float[] array)

Append to the toString a float array.

ToStringBuilderappend(int value)

Append to the toString an int value.

ToStringBuilderappend(int[] array)

Append to the toString an int array.

ToStringBuilderappend(long value)

Append to the toString a long value.

ToStringBuilderappend(long[] array)

Append to the toString a long array.

ToStringBuilderappend(Object obj)

Append to the toString an Object value.

ToStringBuilderappend(Object[] array)

Append to the toString an Object array.

ToStringBuilderappend(short value)

Append to the toString a short value.

ToStringBuilderappend(short[] array)

Append to the toString a short array.

ToStringBuilderappendSuper(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.

ToStringStylegetDefaultStyle()

Gets the default ToStringStyle to use.

This could allow the ToStringStyle to be controlled for an entire application with one call.

This might be used to have a verbose ToStringStyle during development and a compact ToStringStyle in production.

StringreflectionToString(Object object, ToStringStyle style)

Forwards to ReflectionToStringBuilder.

StringreflectionToString(Object object)

Forwards to ReflectionToStringBuilder.

StringreflectionToString(Object object, ToStringStyle style, boolean outputTransients)

Forwards to ReflectionToStringBuilder.

StringreflectionToString(Object object, ToStringStyle style, boolean outputTransients, Class reflectUpToClass)

Forwards to ReflectionToStringBuilder.

voidsetDefaultStyle(ToStringStyle style)

Sets the default ToStringStyle to use.

StringtoString()

Returns the built toString.

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