Package ej.kf
Interface Converter<T>
-
- Type Parameters:
T- the Kernel type managed by thisConverter.
- All Known Implementing Classes:
BooleanConverter,ByteConverter,CharacterConverter,DateConverter,DoubleConverter,FloatConverter,InputStreamConverter,IntegerConverter,IProgressMonitorConverter,ListConverter,LongConverter,MapConverter,ShortConverter,StringConverter
public interface Converter<T>A
Converteris able to give a representation of an object owned by a Feature to another Feature. AConverteris able to convert instances of one and only one Kernel type.A
Converteris free to decide the kind of conversion to apply, depending on the managed type. For example, aConverterfor immutables instances of types such asStringwill most likely return a copy (clone), whereas aConverterfor instances of types such asInputStreamwill most likely return a wrapper on the original object.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Tconvert(T source, Feature targetOwner)Converts an object owned by a Feature to another Feature.Class<T>getType()Gets the Kernel type managed by thisConverter.
-