Top Description Constructors Methods
org.springframework.core.convert.support

pack-priv final Class ObjectToStringConverter

extends Object
implements Converter<Object, String>
Class Inheritance
All Implemented Interfaces
org.springframework.core.convert.converter.Converter
Imports
org.springframework.core.convert.converter.Converter

Simply calls Object#toString() to convert a source Object to a String.
Author
Keith Donald
Since
3.0

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public String
convert(Object
the source object to convert, which must be an instance of S (never null)
source
)

Implements org.springframework.core.convert.converter.Converter.convert.

Convert the source object of type S to target type T.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

ObjectToStringConverterback to summary
pack-priv ObjectToStringConverter()

Method Detail

convertback to summary
public String convert(Object source)

Implements org.springframework.core.convert.converter.Converter.convert.

Doc from org.springframework.core.convert.converter.Converter.convert.

Convert the source object of type S to target type T.

Parameters
source:Object

the source object to convert, which must be an instance of S (never null)

Returns:String

the converted object, which must be an instance of T (potentially null)

Annotations
@Override