Top Description Methods
org.joda.convert

public Interface StringConverterFactory

Known Direct Implementers
org.joda.convert.TypeStringConverterFactory, org.joda.convert.factory.BooleanArrayStringConverterFactory, org.joda.convert.factory.BooleanObjectArrayStringConverterFactory, org.joda.convert.factory.ByteObjectArrayStringConverterFactory, org.joda.convert.factory.CharObjectArrayStringConverterFactory, org.joda.convert.factory.NumericArrayStringConverterFactory, org.joda.convert.factory.NumericObjectArrayStringConverterFactory, org.joda.convert.AnnotationStringConverterFactory, org.joda.convert.EnumStringConverterFactory

Factory for StringConverter that allows converters to be created dynamically or easily initialised.

Implementations must be immutable and thread-safe.

Since
1.5

Method Summary

Modifier and TypeMethod and Description
public StringConverter<?>

Returns:

the converter, null if not found
findConverter
(Class<?>
the type to lookup, not null
cls
)

Finds a converter by type.

Method Detail

findConverterback to summary
public StringConverter<?> findConverter(Class<?> cls)

Finds a converter by type.

Parameters
cls:Class<?>

the type to lookup, not null

Returns:StringConverter<?>

the converter, null if not found

Exceptions
RuntimeException:
(or subclass) if source code is invalid