|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.sf.molae.pipe.cube.ProjectionTransformer<E>
public class ProjectionTransformer<E>
Removes the object at a given index.
| Constructor Summary | |
|---|---|
ProjectionTransformer(int index,
E pivot)
Constructs a new ProjectionTransformer. |
|
| Method Summary | |
|---|---|
boolean |
isRetrievable(Collection<E> input)
Indicates if the origin of the specified object can be calculated. |
Collection<E> |
retransform(Collection<E> input)
Adds the given object at the given index to the input collection. |
Collection<E> |
transform(Collection<E> input)
Removes the object at the given index from the input collection. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ProjectionTransformer(int index,
E pivot)
index - index to evaluatepivot - fixed value at index for retransformation| Method Detail |
|---|
public Collection<E> transform(Collection<E> input)
transform in interface TwoWayTransformer<Collection<E>,Collection<E>>input - a list
ClassCastException - if the input is not a Collection
IndexOutOfBoundsException - if the size of the input collection
is less or equal to the given indexpublic Collection<E> retransform(Collection<E> input)
retransform in interface TwoWayTransformer<Collection<E>,Collection<E>>input - a list
ClassCastException - if the input is not a Collection
IndexOutOfBoundsException - if the size of the input collection
is less than the given indexpublic boolean isRetrievable(Collection<E> input)
TwoWayTransformerretransform is implemented for this object and does
not throw an exception.x returned by retransform
is unique, or more formally:
transform(o1).equals(transform(o2)) &rArr o1.equals(o2)
retransform(transform(input)).equals(input)for all objects where the retransformation is defined.
isRetrievable in interface TwoWayTransformer<Collection<E>,Collection<E>>input - the object for which the transformation origin is searched.
true if the origin of the specified object can
be calculated.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||