public class SimpleListConverter extends Object implements SimpleTypeConverter
List objects.String representing the delimiter for the list items.
It is thread-safe.
| Modifier | Constructor and Description |
|---|---|
protected |
SimpleListConverter(SimpleTypeConverterConfiguration configuration)
Constructs a new
SimpleListConverter.If no format is given, the default format (see getDefaultFormat()) is used. |
| Modifier and Type | Method and Description |
|---|---|
static SimpleListConverter |
create(SimpleTypeConverterConfiguration configuration)
Creates a
SimpleListConverter.If no format is given, the default format (see getDefaultFormat()) is used. |
Object |
fromString(String value)
Converts the given
String object into an object with the simple data type this converter is
intended for. |
protected String[] |
getDefaultFormat()
Returns the default format which is used when no format is given.
|
protected Class<? extends Collection> |
getImplementor(Class<?> aCollectionInterface)
Returns a class implementing the given interface.
|
String |
toString(Object value)
Converts the given value to a
String object. |
protected SimpleListConverter(SimpleTypeConverterConfiguration configuration)
SimpleListConverter.getDefaultFormat()) is used.configuration - the configurationConversionException - if the given format is not valid.public static SimpleListConverter create(SimpleTypeConverterConfiguration configuration)
SimpleListConverter.getDefaultFormat()) is used.configuration - the configurationConversionException - if the given format is not valid.public final Object fromString(String value)
String object into an object with the simple data type this converter is
intended for.fromString in interface SimpleTypeConvertervalue - the String object to convertpublic final String toString(Object value)
String object.toString in interface SimpleTypeConvertervalue - the value to convertprotected String[] getDefaultFormat()
protected Class<? extends Collection> getImplementor(Class<?> aCollectionInterface)
aCollectionInterface - a Collection.Copyright © 2014. All rights reserved.