T
- the type of the converterStringConverter<T>
, TypedStringConverter<T>
public interface ToStringConverter<T>
String
.
ToStringConverter is an interface and must be implemented with care. Implementations must be immutable and thread-safe.
Modifier and Type | Method | Description |
---|---|---|
java.lang.String |
convertToString(T object) |
Converts the specified object to a
String . |
java.lang.String convertToString(T object)
String
.object
- the object to convert, not null