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

public final Class CharObjectArrayStringConverterFactory

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

Factory for StringConverter providing support for Character object arrays as a string, using backslash as an escape.

Double backslash is a backslash. One backslash followed by a dash is null.

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
CharObjectArrayStringConverterFactory()

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

CharObjectArrayStringConverterFactoryback to summary
private CharObjectArrayStringConverterFactory()

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 CharObjectArrayStringConverterFactory.CharecterArrayStringConverter

extends Enum<CharObjectArrayStringConverterFactory.CharecterArrayStringConverter>
implements TypedStringConverter<Character[]>
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 Character[]
public static final CharObjectArrayStringConverterFactory.CharecterArrayStringConverter

Constructor Summary

AccessConstructor and Description
private

Method Summary

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

Field Detail

EMPTYback to summary
private static final Character[] EMPTY
INSTANCEback to summary
public static final CharObjectArrayStringConverterFactory.CharecterArrayStringConverter INSTANCE

Constructor Detail

CharecterArrayStringConverterback to summary
private CharecterArrayStringConverter()

Method Detail

valueOfback to summary
public static CharObjectArrayStringConverterFactory.CharecterArrayStringConverter valueOf(String name)
valuesback to summary
public static CharObjectArrayStringConverterFactory.CharecterArrayStringConverter[] values()