com.hammurapi.convert
Interface ConverterClosure<S,T>


public interface ConverterClosure<S,T>

Closure interface for converters.

Author:
Pavel

Method Summary
 T convert(S source)
          Converts source to target type.
 

Method Detail

convert

T convert(S source)
Converts source to target type. Target type is known to the closure but not to the calling code.

Parameters:
source -
Returns:
Instance of target type.