org.joda.convert
Interface StringConverterFactory

All Known Implementing Classes:
BooleanArrayStringConverterFactory, BooleanObjectArrayStringConverterFactory, ByteObjectArrayStringConverterFactory, CharObjectArrayStringConverterFactory, NumericArrayStringConverterFactory, NumericObjectArrayStringConverterFactory

public interface StringConverterFactory

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
 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


Copyright © 2010–2014 Joda.org. All rights reserved.