public interface ToStringStyler
toString() methods.
 Encapsulates the print algorithms; some other object such as a builder
 should provide the workflow.| Modifier and Type | Method and Description | 
|---|---|
| void | styleEnd(StringBuilder buffer,
        Object obj)Style a  toString()'ed object after it's fields are styled. | 
| void | styleField(StringBuilder buffer,
          String fieldName,
          Object value)Style a field value as a string. | 
| void | styleFieldSeparator(StringBuilder buffer)Style the field separator. | 
| void | styleStart(StringBuilder buffer,
          Object obj)Style a  toString()'ed object before its fields are styled. | 
| void | styleValue(StringBuilder buffer,
          Object value)Style the given value. | 
void styleStart(StringBuilder buffer, Object obj)
toString()'ed object before its fields are styled.buffer - the buffer to print toobj - the object to stylevoid styleEnd(StringBuilder buffer, Object obj)
toString()'ed object after it's fields are styled.buffer - the buffer to print toobj - the object to stylevoid styleField(StringBuilder buffer, String fieldName, @Nullable Object value)
buffer - the buffer to print tofieldName - the he name of the fieldvalue - the field valuevoid styleValue(StringBuilder buffer, Object value)
buffer - the buffer to print tovalue - the field valuevoid styleFieldSeparator(StringBuilder buffer)
buffer - buffer to print to