com.infomancers.collections.util
Class ListTransformation<K>

java.lang.Object
  extended by com.infomancers.collections.util.ListTransformation<K>
All Implemented Interfaces:
Transformation<java.lang.Integer,K>

public final class ListTransformation<K>
extends java.lang.Object
implements Transformation<java.lang.Integer,K>

Used for simple transformations based on values located at specific indices of a standard List.

See Also:
java.util.List;

Constructor Summary
ListTransformation(java.util.List<K> list)
           
 
Method Summary
 K transform(java.lang.Integer item)
          Transforms item of type T to item of type K.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ListTransformation

public ListTransformation(java.util.List<K> list)
Method Detail

transform

public K transform(java.lang.Integer item)
Transforms item of type T to item of type K.

Specified by:
transform in interface Transformation<java.lang.Integer,K>
Parameters:
item - The item to transform.
Returns:
The transformed item.