com.infomancers.collections.util
Interface Transformation<T,K>

All Known Subinterfaces:
SimpleTransformation<T>
All Known Implementing Classes:
ListTransformation, MapTransformation, SimpleTransformationCollection

public interface Transformation<T,K>

Transforms an item of type T to an item of type K.

This can be done by calculation, retrieval of inner members, etc.


Method Summary
 K transform(T item)
          Transforms item of type T to item of type K.
 

Method Detail

transform

K transform(T item)
Transforms item of type T to item of type K.

Parameters:
item - The item to transform.
Returns:
The transformed item.