- java.lang.Object
-
- org.joda.convert.factory.BooleanArrayStringConverterFactory
-
- All Implemented Interfaces:
StringConverterFactory
public final class BooleanArrayStringConverterFactory extends java.lang.Object implements StringConverterFactory
Factory forStringConverter
providing support for primitive boolean array as a sequence of 'T' and 'F'.This is intended as a human readable format, not a compact format.
To use, simply register the instance with a
StringConvert
instance.This class is immutable and thread-safe.
- Since:
- 1.5
-
-
Field Summary
Fields Modifier and Type Field Description static StringConverterFactory
INSTANCE
Singleton 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.String
toString()
-
-
-
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:
findConverter
in 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:
toString
in classjava.lang.Object
-
-