Class SimpleValueStyler

java.lang.Object
org.springframework.core.style.DefaultValueStyler
org.springframework.core.style.SimpleValueStyler
All Implemented Interfaces:
ValueStyler

public class SimpleValueStyler extends DefaultValueStyler
ValueStyler that converts objects to String form — generally for debugging purposes — using simple styling conventions that mimic the toString() styling conventions for standard JDK implementations of collections, maps, and arrays.

Uses the reflective visitor pattern underneath the hood to nicely encapsulate styling algorithms for each type of styled object.

Favor SimpleValueStyler over DefaultValueStyler when you wish to use styling similar to the JDK or when you need configurable control over the styling of classes and methods.

Since:
6.0
Author:
Sam Brannen