|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.molae.pipe.basic.ObjectProxy<B>
net.sf.molae.pipe.union.ObjectUnion<Object,T,Object>
net.sf.molae.pipe.union.Extendable<T>
public class Extendable<T>
An extendable can either be of its base type (T
)
or of another instance.
It is useful if there is a requirement for
values with special behavior that must not be null
.
Nested Class Summary | |
---|---|
protected static class |
Extendable.ExtendableTransformer<T>
A transformer that returns a new extendable of the input value. |
Constructor Summary | |
---|---|
Extendable()
Creates a new instance with an undefined base value. |
|
Extendable(T base)
Creates a new extendable with the specified base value. |
Method Summary | ||
---|---|---|
T |
getValue()
Returns the base value of this extendable. |
|
static
|
toExtendableTransformer()
Returns a transformer that returns a new extendable of the input value. |
Methods inherited from class net.sf.molae.pipe.union.ObjectUnion |
---|
getBase1, getBase2, isOfType1, newInstance1, newInstance2 |
Methods inherited from class net.sf.molae.pipe.basic.ObjectProxy |
---|
assertNotNull, equals, getBase, hashCode, toString, toVerboseString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Extendable(T base)
base
- the base value of the new extendablepublic Extendable()
Method Detail |
---|
public T getValue()
public static <T> TwoWayTransformer<T,Extendable<T>> toExtendableTransformer()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |