com.infomancers.collections.util
Class SimpleTransformationCollection<T>

java.lang.Object
  extended by com.infomancers.collections.util.SimpleTransformationCollection<T>
All Implemented Interfaces:
SimpleTransformation<T>, Transformation<T,T>

public final class SimpleTransformationCollection<T>
extends java.lang.Object
implements SimpleTransformation<T>

Used to chain together simple transformations so that they are done sequentially.


Constructor Summary
SimpleTransformationCollection()
           
 
Method Summary
 void add(SimpleTransformation<T> transformation)
           
 void remove(SimpleTransformation<T> transformation)
           
 T transform(T item)
          Transforms item of type T to another type T element using a chain of simple transformations.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleTransformationCollection

public SimpleTransformationCollection()
Method Detail

add

public void add(SimpleTransformation<T> transformation)

remove

public void remove(SimpleTransformation<T> transformation)

transform

public T transform(T item)
Transforms item of type T to another type T element using a chain of simple transformations.

Specified by:
transform in interface Transformation<T,T>
Parameters:
item - The item to transform.
Returns:
The transformed item.