public abstract class BidirectionalTypeConverter<T,V> extends TypeConverter<T,V>
Constructor and Description |
---|
BidirectionalTypeConverter(Class<T> fromClass,
Class<V> toClass) |
Modifier and Type | Method and Description |
---|---|
abstract T |
convertBack(V value)
Does a conversion from the target type back to the source type.
|
BidirectionalTypeConverter<V,T> |
invert()
Returns the inverse of this converter, where the from and to classes are reversed.
|
convert
public abstract T convertBack(V value)
value
- The Object to convert.value
.public BidirectionalTypeConverter<V,T> invert()
convertBack(Object)
for
TypeConverter.convert(Object)
calls and TypeConverter.convert(Object)
for
convertBack(Object)
calls.