com.infomancers.collections.util
Class SimpleTransformationCollection<T>
java.lang.Object
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.
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SimpleTransformationCollection
public SimpleTransformationCollection()
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.