Package org.joda.convert
Interface TypedStringConverter<T>
-
- Type Parameters:
T
- the type of the converter
- All Superinterfaces:
FromStringConverter<T>
,StringConverter<T>
,ToStringConverter<T>
- All Known Implementing Classes:
BooleanArrayStringConverterFactory.BooleanArrayStringConverter
,BooleanObjectArrayStringConverterFactory.BooleanArrayStringConverter
,ByteObjectArrayStringConverterFactory.ByteArrayStringConverter
,CharObjectArrayStringConverterFactory.CharecterArrayStringConverter
,EnumStringConverterFactory.EnumStringConverter
,JDKStringConverter
,MethodConstructorStringConverter
,MethodsStringConverter
,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
,TypeStringConverter
,TypeTokenStringConverter
public interface TypedStringConverter<T> extends StringConverter<T>
Interface defining conversion to and from aString
together with the type.TypedStringConverter is an interface and must be implemented with care. Implementations must be immutable and thread-safe.
- Since:
- 1.7
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.Class<?>
getEffectiveType()
Gets the effective type that the converter works on.-
Methods inherited from interface org.joda.convert.FromStringConverter
convertFromString
-
Methods inherited from interface org.joda.convert.ToStringConverter
convertToString
-
-
-
-
Method Detail
-
getEffectiveType
java.lang.Class<?> getEffectiveType()
Gets the effective type that the converter works on.For example, if a class declares the
FromString
andToString
then the effective type of the converter is that class. If a subclass is queried for a converter, then the effective type is that of the superclass.- Returns:
- the effective type
-
-