Top Description Fields Constructors Methods
org.springframework.core.style

public abstract Class StylerUtils

extends Object
Class Inheritance

Simple utility class to allow for convenient access to value styling logic, mainly to support descriptive logging messages.

For more sophisticated needs, use the ValueStyler abstraction directly. This class simply uses a shared DefaultValueStyler instance underneath.

Author
Keith Donald
Since
1.2.2
See Also
ValueStyler, DefaultValueStyler

Field Summary

Modifier and TypeField and Description
pack-priv static final ValueStyler
DEFAULT_VALUE_STYLER

Default ValueStyler instance used by the style method.

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static String

Returns:

the styled String
style
(Object
the Object value to style
value
)

Style the specified value according to default conventions.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

DEFAULT_VALUE_STYLERback to summary
pack-priv static final ValueStyler DEFAULT_VALUE_STYLER

Default ValueStyler instance used by the style method. Also available for the ToStringCreator class in this package.

Constructor Detail

StylerUtilsback to summary
public StylerUtils()

Method Detail

styleback to summary
public static String style(Object value)

Style the specified value according to default conventions.

Parameters
value:Object

the Object value to style

Returns:String

the styled String

See Also
DefaultValueStyler