@FunctionalInterface
public interface TypeConverter<T>
TypeConverterManager
Modifier and Type | Method and Description |
---|---|
T |
convert(java.lang.Object value)
Converts object received as parameter into object of another class.
|
default T |
convert(java.lang.Object value,
T defaultValue)
Converts object and returns default value if conversion fails.
|
T convert(java.lang.Object value)
Integer
converter tries to convert given objects
into target Integer
object. Converters should try all reasonable
ways of conversion into target object, depending on target type.value
- object to convert fromTypeConversionException
- if conversion failsCopyright © 2003-present Jodd Team