public abstract class TypeConverter<T>
Type converter from String to a type T
T
- type to convert toType Params | Return Type | Name and description |
---|---|---|
|
public java.lang.String |
asString(T value) Convert the value from type T to String. |
|
public abstract T |
convert(java.lang.String value) Convert the value from String to type T |
|
public T |
defaultValue() Provide the default value for the type associated with this TypeConverter. |
Methods inherited from class | Name |
---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Convert the value from type T to String. By default, calls value.toString()
.
value
- the value as TConvert the value from String to type T
value
- the value as a StringProvide the default value for the type associated with this TypeConverter. Returns null by default.