Module org.joda.convert
Package org.joda.convert.factory
Class NumericObjectArrayStringConverterFactory
- java.lang.Object
-
- org.joda.convert.factory.NumericObjectArrayStringConverterFactory
-
- All Implemented Interfaces:
StringConverterFactory
public final class NumericObjectArrayStringConverterFactory extends java.lang.Object implements StringConverterFactory
Factory forStringConverterproviding support for numeric object arrays as a comma separated list, using '-' for null.To use, simply register the instance with a
StringConvertinstance.This class is immutable and thread-safe.
- Since:
- 1.5
-
-
Field Summary
Fields Modifier and Type Field Description static StringConverterFactoryINSTANCESingleton instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringConverter<?>findConverter(java.lang.Class<?> cls)Finds a converter by type.java.lang.StringtoString()
-
-
-
Field Detail
-
INSTANCE
public static final StringConverterFactory INSTANCE
Singleton instance.
-
-
Method Detail
-
findConverter
public StringConverter<?> findConverter(java.lang.Class<?> cls)
Finds a converter by type.- Specified by:
findConverterin interfaceStringConverterFactory- Parameters:
cls- the type to lookup, not null- Returns:
- the converter, null if not found
- Throws:
java.lang.RuntimeException- (or subclass) if source code is invalid
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-