public interface IBidirectionalConverter<TInternal,TExternal>
Modifier and Type | Method and Description |
---|---|
TExternal |
toExternal(TInternal object)
Converts the given internal object representation to its
corresponding external representation.
|
TInternal |
toInternal(TExternal object)
Converts the given external object representation to its
corresponding internal representation.
|
TInternal toInternal(TExternal object) throws ConversionRuntimeException
object
- The external representation of the object to convert (may be null).ConversionRuntimeException
- For any problem that prevented successful object conversion.TExternal toExternal(TInternal object) throws ConversionRuntimeException
object
- The internal representation of the object to convert (may be null).ConversionRuntimeException
- For any problem that prevented successful object conversion.