|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.sf.molae.pipe.binop.ConstantSecondFactorTransformer<S,F,T>
public final class ConstantSecondFactorTransformer<S,F,T>
A transformer based on a binary operation where the second operand is constant.
| Constructor Summary | |
|---|---|
ConstantSecondFactorTransformer(BinaryFunction<S,F,T> operation,
F factor)
Constructs a ConstantSecondFactorTransformer 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 ConstantSecondFactorTransformer(BinaryFunction<S,F,T> operation,
F factor)
operation - the underlying binary functionfactor - the constant value of the second factor| 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)
TwoWayTransformertransform.
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)
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<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 | ||||||||