-
- All Known Implementing Classes:
BooleanArrayStringConverterFactory
,BooleanObjectArrayStringConverterFactory
,ByteObjectArrayStringConverterFactory
,CharObjectArrayStringConverterFactory
,NumericArrayStringConverterFactory
,NumericObjectArrayStringConverterFactory
public interface StringConverterFactory
Factory forStringConverter
that allows converters to be created dynamically or easily initialised.Implementations must be immutable and thread-safe.
- Since:
- 1.5
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringConverter<?>
findConverter(Class<?> cls)
Finds a converter by type.
-
-
-
Method Detail
-
findConverter
StringConverter<?> findConverter(Class<?> cls)
Finds a converter by type.- Parameters:
cls
- the type to lookup, not null- Returns:
- the converter, null if not found
- Throws:
RuntimeException
- (or subclass) if source code is invalid
-
-