|
|||||||||
| 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>
net.sf.molae.pipe.sorted.Bound<T>
public class Bound<T>
Wrapper around a comparable that allows for infinities.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class net.sf.molae.pipe.union.Extendable |
|---|
Extendable.ExtendableTransformer<T> |
| Method Summary | ||
|---|---|---|
static
|
comparatorWithInfinity(Comparator<T> base,
Bound<E> negativeInfinity,
Bound<E> positiveInfinity)
Constructs a comparator that compares the values of T
with the specified comparator,
but also handles the specified infinities. |
|
static
|
getNegativeInfinity()
Create a new negative infinity of the desired type. |
|
static
|
getPositiveInfinity()
Create a new positive infinity of the desired type. |
|
static
|
newInstance(T base)
Creates a new bound at the specified value. |
|
static
|
toBoundTransformer()
Returns a transformer that returns a new bound of the specified value. |
|
static
|
toValueTransformer()
Returns a transformer that returns the value of a bound. |
|
| Methods inherited from class net.sf.molae.pipe.union.Extendable |
|---|
getValue, toExtendableTransformer |
| 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 |
| Method Detail |
|---|
public static <T> Bound<T> getNegativeInfinity()
Bound that is
smaller than all elements of T.public static <T> Bound<T> getPositiveInfinity()
Bound that is
greater than all elements of T.public static <T> Bound<T> newInstance(T base)
base - base value used for comparison.
public static <T,E extends T> Comparator<Bound<E>> comparatorWithInfinity(Comparator<T> base,
Bound<E> negativeInfinity,
Bound<E> positiveInfinity)
T
with the specified comparator,
but also handles the specified infinities.
ComparatorWithInfinitypublic static <T> TwoWayTransformer<Bound<T>,T> toValueTransformer()
public static <T> TwoWayTransformer<T,Bound<T>> toBoundTransformer()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||