public final class SimpleTypeConverterConfiguration extends Object
Modifier and Type | Field and Description |
---|---|
static SimpleTypeConverterConfiguration |
EMPTY
The empty configuration.
|
Modifier and Type | Method and Description |
---|---|
static SimpleTypeConverterConfiguration |
create(Class<?> objectType,
String[] format)
Constructs a new
SimpleTypeConverterConfiguration . |
static SimpleTypeConverterConfiguration |
create(Class<?> objectType,
String[] format,
SimpleTypeConverter itemTypeConverter)
Constructs a new
SimpleTypeConverterConfiguration . |
String[] |
getFormat()
Returns the format the converter shall be initialized with.
|
SimpleTypeConverter |
getItemTypeConverter()
Returns the item type converter.
|
<T> Class<T> |
getObjectType()
/** Returns the object type the converter is intended for.
|
public static final SimpleTypeConverterConfiguration EMPTY
public static SimpleTypeConverterConfiguration create(Class<?> objectType, String[] format)
SimpleTypeConverterConfiguration
.objectType
- the object type the converter is intended forformat
- the format the converter shall be initialized withpublic static SimpleTypeConverterConfiguration create(Class<?> objectType, String[] format, SimpleTypeConverter itemTypeConverter)
SimpleTypeConverterConfiguration
.objectType
- the object type the converter is intended forformat
- the format the converter shall be initialized withitemTypeConverter
- the item type converterpublic <T> Class<T> getObjectType()
T
- the expected typepublic String[] getFormat()
public SimpleTypeConverter getItemTypeConverter()
Copyright © 2014. All rights reserved.