spring-framework / org.springframework.core.style / DefaultValueStyler

DefaultValueStyler

open class DefaultValueStyler : 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.

Author
Keith Donald

Author
Juergen Hoeller

Since
1.2.2

Constructors

<init>

DefaultValueStyler()

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.

Functions

style

open fun style(value: Any): String