| org.springframework.core.style.ToStringStyler |
Known Indirect Subclasses
|
A strategy interface for pretty-printing toString() methods.
Encapsulates the print algorithms; some other object such as a builder
should provide the workflow.
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Style a
toString()'ed object after it's fields are styled. | |||||||||||
Style a field value as a string.
| |||||||||||
Style the field separator.
| |||||||||||
Style a
toString()'ed object before its fields are styled. | |||||||||||
Style the given value.
| |||||||||||
Style a toString()'ed object after it's fields are styled.
| buffer | the buffer to print to |
|---|---|
| obj | the object to style |
Style a field value as a string.
| buffer | the buffer to print to |
|---|---|
| fieldName | the he name of the field |
| value | the field value |
Style the field separator.
| buffer | buffer to print to |
|---|
Style a toString()'ed object before its fields are styled.
| buffer | the buffer to print to |
|---|---|
| obj | the object to style |
Style the given value.
| buffer | the buffer to print to |
|---|---|
| value | the field value |