Package org.joda.convert
Interface ToStringConverter<T>
- Type Parameters:
T- the type of the converter
- All Known Subinterfaces:
StringConverter<T>,TypedStringConverter<T>
- All Known Implementing Classes:
BooleanArrayStringConverterFactory.BooleanArrayStringConverter,BooleanObjectArrayStringConverterFactory.BooleanArrayStringConverter,ByteObjectArrayStringConverterFactory.ByteArrayStringConverter,CharObjectArrayStringConverterFactory.CharecterArrayStringConverter,EnumStringConverterFactory.EnumStringConverter,JDKStringConverter,NumericArrayStringConverterFactory.DoubleArrayStringConverter,NumericArrayStringConverterFactory.FloatArrayStringConverter,NumericArrayStringConverterFactory.IntArrayStringConverter,NumericArrayStringConverterFactory.LongArrayStringConverter,NumericArrayStringConverterFactory.ShortArrayStringConverter,NumericObjectArrayStringConverterFactory.DoubleArrayStringConverter,NumericObjectArrayStringConverterFactory.FloatArrayStringConverter,NumericObjectArrayStringConverterFactory.IntArrayStringConverter,NumericObjectArrayStringConverterFactory.LongArrayStringConverter,NumericObjectArrayStringConverterFactory.ShortArrayStringConverter,OptionalDoubleStringConverter,OptionalIntStringConverter,OptionalLongStringConverter,ReflectionStringConverter,TypedAdapter,TypeStringConverterFactory.TypeStringConverter,TypeTokenStringConverter
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
-