package com.hammurapi.convert;

/**
 * Closure interface for converters.
 * @author Pavel
 */
public interface ConverterClosure<S, T> {

	/**
	 * Converts source to target type. Target type is known to the closure
	 * but not to the calling code.
	 * @param source
	 * @return Instance of target type.
	 */
	T convert(S source);
}
