public class ToStringCreator extends Object
toString() methods
 with pluggable styling conventions. By default, ToStringCreator adheres
 to Spring's toString() styling conventions.| Constructor and Description | 
|---|
| ToStringCreator(Object obj)Create a ToStringCreator for the given object. | 
| ToStringCreator(Object obj,
               ToStringStyler styler)Create a ToStringCreator for the given object, using the provided style. | 
| ToStringCreator(Object obj,
               ValueStyler styler)Create a ToStringCreator for the given object, using the provided style. | 
| Modifier and Type | Method and Description | 
|---|---|
| ToStringCreator | append(Object value)Append the provided value. | 
| ToStringCreator | append(String fieldName,
      boolean value)Append a boolean field value. | 
| ToStringCreator | append(String fieldName,
      byte value)Append a byte field value. | 
| ToStringCreator | append(String fieldName,
      double value)Append a double field value. | 
| ToStringCreator | append(String fieldName,
      float value)Append a float field value. | 
| ToStringCreator | append(String fieldName,
      int value)Append a integer field value. | 
| ToStringCreator | append(String fieldName,
      long value)Append a long field value. | 
| ToStringCreator | append(String fieldName,
      Object value)Append a field value. | 
| ToStringCreator | append(String fieldName,
      short value)Append a short field value. | 
| String | toString()Return the String representation that this ToStringCreator built. | 
public ToStringCreator(Object obj)
obj - the object to be stringifiedpublic ToStringCreator(Object obj, @Nullable ValueStyler styler)
obj - the object to be stringifiedstyler - the ValueStyler encapsulating pretty-print instructionspublic ToStringCreator(Object obj, @Nullable ToStringStyler styler)
obj - the object to be stringifiedstyler - the ToStringStyler encapsulating pretty-print instructionspublic ToStringCreator append(String fieldName, byte value)
fieldName - the name of the field, usually the member variable namevalue - the field valuepublic ToStringCreator append(String fieldName, short value)
fieldName - the name of the field, usually the member variable namevalue - the field valuepublic ToStringCreator append(String fieldName, int value)
fieldName - the name of the field, usually the member variable namevalue - the field valuepublic ToStringCreator append(String fieldName, long value)
fieldName - the name of the field, usually the member variable namevalue - the field valuepublic ToStringCreator append(String fieldName, float value)
fieldName - the name of the field, usually the member variable namevalue - the field valuepublic ToStringCreator append(String fieldName, double value)
fieldName - the name of the field, usually the member variable namevalue - the field valuepublic ToStringCreator append(String fieldName, boolean value)
fieldName - the name of the field, usually the member variable namevalue - the field valuepublic ToStringCreator append(String fieldName, @Nullable Object value)
fieldName - the name of the field, usually the member variable namevalue - the field valuepublic ToStringCreator append(Object value)
value - the value to append