org.pfsw.bif.conversion
Interface IObjectConverter<TSource,TTarget>

All Known Subinterfaces:
IStringConverter<T>

public interface IObjectConverter<TSource,TTarget>

Defines a generic functional interface for the conversion of a given source object into a target object.


Method Summary
 TTarget convert(TSource source)
          Converts the given source object into the target representation.
 

Method Detail

convert

TTarget convert(TSource source)
Converts the given source object into the target representation.

Parameters:
source - The object to be converted (may be null).
Returns:
null or the target object representation of the given object.
Throws:
ConversionRuntimeException - For any problem that prevented successful object conversion.