类 DefaultValueStyler
- java.lang.Object
- org.springframework.core.style.DefaultValueStyler
- 所有已实现的接口:
ValueStyler
public class DefaultValueStyler extends Object implements ValueStyler
Converts objects to String form, generally for debugging purposes, using Spring'stoString
styling conventions.Uses the reflective visitor pattern underneath the hood to nicely encapsulate styling algorithms for each type of styled object.
- 从以下版本开始:
- 1.2.2
- 作者:
- Keith Donald, Juergen Hoeller
构造器详细资料
DefaultValueStyler
public DefaultValueStyler()
方法详细资料
style
public String style(Object value)
从接口复制的说明:ValueStyler
Style the given value, returning a String representation.- 指定者:
style
在接口中ValueStyler
- 参数:
value
- the Object value to style- 返回:
- the styled String