T - the Kernel type managed by this Converter.public interface Converter<T>
A Converter is able to give a representation of an object owned by a Feature to another Feature. A
Converter is able to convert instances of one and only one Kernel type.
A Converter is free to decide the kind of conversion to apply, depending on the managed type. For example, a
Converter for immutables instances of types such as String will most likely return a copy (clone),
whereas a Converter for instances of types such as InputStream will most likely return a wrapper on
the original object.
| Modifier and Type | Method and Description |
|---|---|
T |
convert(T source,
Feature targetOwner)
Converts an object owned by a Feature to another Feature.
|
Class<T> |
getType()
Gets the Kernel type managed by this
Converter. |