T
- type to convert topublic abstract class TypeConverter<T> extends Object
Constructor and Description |
---|
TypeConverter() |
Modifier and Type | Method and Description |
---|---|
String |
asString(T value)
Convert the value from type T to String.
|
abstract T |
convert(String value)
Convert the value from String to type T
|
T |
defaultValue()
Provide the default value for the type associated with this TypeConverter.
|
public abstract T convert(String value)
value
- the value as a Stringpublic String asString(T value)
value.toString()
.value
- the value as Tpublic T defaultValue()
Copyright © 2019. All rights reserved.