java.lang.Object | |
↳ | org.springframework.core.style.ToStringCreator |
Utility class that builds pretty-printing toString()
methods
with pluggable styling conventions. By default, ToStringCreator adheres
to Spring's toString()
styling conventions.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Create a ToStringCreator for the given object.
| |||||||||||
Create a ToStringCreator for the given object, using the provided style.
| |||||||||||
Create a ToStringCreator for the given object, using the provided style.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Append a boolean field value.
| |||||||||||
Append a integer field value.
| |||||||||||
Append a short field value.
| |||||||||||
Append a long field value.
| |||||||||||
Append the provided value.
| |||||||||||
Append a float field value.
| |||||||||||
Append a field value.
| |||||||||||
Append a double field value.
| |||||||||||
Append a byte field value.
| |||||||||||
Return the String representation that this ToStringCreator built.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Create a ToStringCreator for the given object.
obj | the object to be stringified |
---|
Create a ToStringCreator for the given object, using the provided style.
obj | the object to be stringified |
---|---|
styler | the ValueStyler encapsulating pretty-print instructions |
Create a ToStringCreator for the given object, using the provided style.
obj | the object to be stringified |
---|---|
styler | the ToStringStyler encapsulating pretty-print instructions |
Append a boolean field value.
fieldName | the name of the field, usually the member variable name |
---|---|
value | the field value |
Append a integer field value.
fieldName | the name of the field, usually the member variable name |
---|---|
value | the field value |
Append a short field value.
fieldName | the name of the field, usually the member variable name |
---|---|
value | the field value |
Append a long field value.
fieldName | the name of the field, usually the member variable name |
---|---|
value | the field value |
Append the provided value.
value | The value to append |
---|
Append a float field value.
fieldName | the name of the field, usually the member variable name |
---|---|
value | the field value |
Append a field value.
fieldName | the name of the field, usually the member variable name |
---|---|
value | the field value |
Append a double field value.
fieldName | the name of the field, usually the member variable name |
---|---|
value | the field value |
Append a byte field value.
fieldName | the name of the field, usually the member variable name |
---|---|
value | the field value |