Class DefaultValueStyler

  • java.lang.Object
  • All Implemented Interfaces:

    public class DefaultValueStyler
    extends java.lang.Object
    implements ValueStyler
    Converts objects to String form, generally for debugging purposes, using Spring's toString styling conventions.

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

    Keith Donald, Juergen Hoeller
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      java.lang.String style(java.lang.Object value)
      Style the given value, returning a String representation.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DefaultValueStyler

        public DefaultValueStyler()
    • Method Detail

      • style

        public java.lang.String style(@Nullable
                                      java.lang.Object value)
        Description copied from interface: ValueStyler
        Style the given value, returning a String representation.
        Specified by:
        style in interface ValueStyler
        value - the Object value to style
        the styled String