org.springframework.core.style

## 接口 ToStringStyler

- 所有已知实现类:
    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.
  从以下版本开始:
    1.2.2
  作者:
    Keith Donald

- - ### 方法概要

    所有方法 实例方法 抽象方法
    限定符和类型 | 方法和说明
    --- | ---
    `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.

- - ### 方法详细资料

    - #### styleStart

          void styleStart(StringBuilder buffer,
                          Object obj)

      Style a `toString()`'ed object before its fields are styled.
      参数:
        `buffer` - the buffer to print to
        `obj` - the object to style

    - #### styleEnd

          void styleEnd(StringBuilder buffer,
                        Object obj)

      Style a `toString()`'ed object after it's fields are styled.
      参数:
        `buffer` - the buffer to print to
        `obj` - the object to style

    - #### styleField

          void styleField(StringBuilder buffer,
                          String fieldName,
                          @Nullable
                          Object value)

      Style a field value as a string.
      参数:
        `buffer` - the buffer to print to
        `fieldName` - the he name of the field
        `value` - the field value

    - #### styleValue

          void styleValue(StringBuilder buffer,
                          Object value)

      Style the given value.
      参数:
        `buffer` - the buffer to print to
        `value` - the field value

    - #### styleFieldSeparator

          void styleFieldSeparator(StringBuilder buffer)

      Style the field separator.
      参数:
        `buffer` - buffer to print to