- Type Parameters:
T
- the type of the converter
- All Known Subinterfaces:
StringConverter<T>
,TypedStringConverter<T>
public interface ToStringConverter<T>
Interface defining conversion to a
String
.
ToStringConverter is an interface and must be implemented with care. Implementations must be immutable and thread-safe.
-
Method Summary
Modifier and TypeMethodDescriptionconvertToString
(T object) Converts the specified object to aString
.
-
Method Details
-
convertToString
Converts the specified object to aString
.- Parameters:
object
- the object to convert, not null- Returns:
- the converted string, may be null but generally not
-