|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.molae.pipe.union.Extendable.ExtendableTransformer<T>
protected static class Extendable.ExtendableTransformer<T>
A transformer that returns a new extendable of the input value.
Constructor Summary | |
---|---|
protected |
Extendable.ExtendableTransformer()
|
Method Summary | |
---|---|
boolean |
isRetrievable(Extendable<T> input)
Indicates if the origin of the specified object can be calculated. |
T |
retransform(Extendable<T> input)
Retrieves the base value of the given extendable |
Extendable<T> |
transform(T base)
Creates a new extendable of the input value. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected Extendable.ExtendableTransformer()
Method Detail |
---|
public Extendable<T> transform(T base)
transform
in interface TwoWayTransformer<T,Extendable<T>>
base
- the base value of the new extendable
public T retransform(Extendable<T> input)
retransform
in interface TwoWayTransformer<T,Extendable<T>>
input
- an extendable object
public boolean isRetrievable(Extendable<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<T,Extendable<T>>
input
- an extendable object
true
if the extendable is of the base type
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |