Interface ToStringStyler
- All Known Implementing Classes:
- DefaultToStringStyler
public interface ToStringStyler
A strategy interface for pretty-printing 
toString() methods.
 Encapsulates the print algorithms; some other object such as a builder
 should provide the workflow.- Since:
- 1.2.2
- Author:
- Keith Donald
- 
Method SummaryModifier and TypeMethodDescriptionvoidstyleEnd(StringBuilder buffer, Object obj) Style atoString()'ed object after it's fields are styled.voidstyleField(StringBuilder buffer, String fieldName, @Nullable Object value) Style a field value as a string.voidstyleFieldSeparator(StringBuilder buffer) Style the field separator.voidstyleStart(StringBuilder buffer, Object obj) Style atoString()'ed object before its fields are styled.voidstyleValue(StringBuilder buffer, Object value) Style the given value.
- 
Method Details- 
styleStartStyle atoString()'ed object before its fields are styled.- Parameters:
- buffer- the buffer to print to
- obj- the object to style
 
- 
styleEndStyle atoString()'ed object after it's fields are styled.- Parameters:
- buffer- the buffer to print to
- obj- the object to style
 
- 
styleFieldStyle a field value as a string.- Parameters:
- buffer- the buffer to print to
- fieldName- the name of the field
- value- the field value
 
- 
styleValueStyle the given value.- Parameters:
- buffer- the buffer to print to
- value- the field value
 
- 
styleFieldSeparatorStyle the field separator.- Parameters:
- buffer- the buffer to print to
 
 
-