StringConverterFactory
public final class NumericArrayStringConverterFactory extends java.lang.Object implements StringConverterFactory
StringConverter
providing support for primitive arrays
as a comma separated list.
To use, simply register the instance with a StringConvert
instance.
This class is immutable and thread-safe.
Modifier and Type | Field | Description |
---|---|---|
static StringConverterFactory |
INSTANCE |
Singleton instance.
|
Modifier and Type | Method | Description |
---|---|---|
StringConverter<?> |
findConverter(java.lang.Class<?> cls) |
Finds a converter by type.
|
java.lang.String |
toString() |
public static final StringConverterFactory INSTANCE
public StringConverter<?> findConverter(java.lang.Class<?> cls)
findConverter
in interface StringConverterFactory
cls
- the type to lookup, not nulljava.lang.RuntimeException
- (or subclass) if source code is invalidpublic java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2010–2018 Joda.org. All rights reserved.