|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.molae.pipe.trafo.TransformedTransformer<S,I,T>
public final class TransformedTransformer<S,I,T>
The concatenation of two transformers.
Constructor Summary | |
---|---|
TransformedTransformer(TwoWayTransformer<S,I> t1,
TwoWayTransformer<I,T> t2)
Constructs a TransformedTransformer object. |
Method Summary | |
---|---|
boolean |
isRetrievable(T input)
Indicates if the origin of the specified object can be calculated. |
S |
retransform(T input)
Calculates the transformation origin of the specified object (optional operation). |
T |
transform(S input)
Transforms the input object (leaving it unchanged) into some output object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TransformedTransformer(TwoWayTransformer<S,I> t1, TwoWayTransformer<I,T> t2)
t1
- first transformert2
- second transformer
NullPointerException
- if any of the specified objects is
null
.Method Detail |
---|
public T transform(S input)
TwoWayTransformer
transform
in interface TwoWayTransformer<S,T>
input
- the object to be transformed, should be left unchanged
public S retransform(T input)
TwoWayTransformer
transform
.
If implemented, it must at least be ensured thattransform(retransform(input)).equals(input)for all objects, for that the retransformation is defined (that is retransform(input) does not throw an exception).
retransform
in interface TwoWayTransformer<S,T>
input
- the object for which the transformation origin is searched.
public boolean isRetrievable(T input)
TwoWayTransformer
retransform
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<S,T>
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 |