001 package com.hammurapi.convert;
002
003 /**
004 * Closure interface for converters.
005 * @author Pavel
006 */
007 public interface ConverterClosure<S, T> {
008
009 /**
010 * Converts source to target type. Target type is known to the closure
011 * but not to the calling code.
012 * @param source
013 * @return Instance of target type.
014 */
015 T convert(S source);
016 }