Top Description Inners Fields Constructors Methods
org.joda.convert.factory

public final Class BooleanArrayStringConverterFactory

extends Object
implements StringConverterFactory
Class Inheritance
All Implemented Interfaces
org.joda.convert.StringConverterFactory
Imports
org.joda.convert.StringConverter, .StringConverterFactory, .TypedStringConverter

Factory for StringConverter 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

Nested and Inner Type Summary

Modifier and TypeClass and Description
pack-priv static enum

Field Summary

Modifier and TypeField and Description
public static final StringConverterFactory
INSTANCE

Singleton instance.

Constructor Summary

AccessConstructor and Description
private
BooleanArrayStringConverterFactory()

Restricted constructor.

Method Summary

Modifier and TypeMethod and Description
public StringConverter<?>

Returns:

the converter, null if not found
findConverter
(Class<?>
the type to lookup, not null
cls
)

Implements org.joda.convert.StringConverterFactory.findConverter.

Finds a converter by type.
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

INSTANCEback to summary
public static final StringConverterFactory INSTANCE

Singleton instance.

Constructor Detail

BooleanArrayStringConverterFactoryback to summary
private BooleanArrayStringConverterFactory()

Restricted constructor.

Method Detail

findConverterback to summary
public StringConverter<?> findConverter(Class<?> cls)

Implements org.joda.convert.StringConverterFactory.findConverter.

Finds a converter by type.

Parameters
cls:Class<?>

the type to lookup, not null

Returns:StringConverter<?>

the converter, null if not found

Annotations
@Override
Exceptions
RuntimeException:
(or subclass) if source code is invalid
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

a string representation of the object.

Annotations
@Override
org.joda.convert.factory back to summary

pack-priv sealed Enum BooleanArrayStringConverterFactory.BooleanArrayStringConverter

extends Enum<BooleanArrayStringConverterFactory.BooleanArrayStringConverter>
implements TypedStringConverter<boolean[]>
Class Inheritance
All Implemented Interfaces
org.joda.convert.TypedStringConverter, org.joda.convert.TypedFromStringConverter, org.joda.convert.FromStringConverter, org.joda.convert.StringConverter, org.joda.convert.ToStringConverter

Field Summary

Modifier and TypeField and Description
private static final boolean[]
public static final BooleanArrayStringConverterFactory.BooleanArrayStringConverter

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static BooleanArrayStringConverterFactory.BooleanArrayStringConverter
public static BooleanArrayStringConverterFactory.BooleanArrayStringConverter[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

EMPTYback to summary
private static final boolean[] EMPTY
INSTANCEback to summary
public static final BooleanArrayStringConverterFactory.BooleanArrayStringConverter INSTANCE

Constructor Detail

BooleanArrayStringConverterback to summary
private BooleanArrayStringConverter()

Method Detail

valueOfback to summary
public static BooleanArrayStringConverterFactory.BooleanArrayStringConverter valueOf(String name)
valuesback to summary
public static BooleanArrayStringConverterFactory.BooleanArrayStringConverter[] values()