| java.lang.Object org.cougaar.core.adaptivity.ComparableHelper
ComparableHelper | public class ComparableHelper (Code) | | Helper methods for dealing with Comparable values.
|
decrement | public static Comparable decrement(Comparable v)(Code) | | Get a value of the same type as the supplied value having the
next smaller value for that type. Not implemented for all
Comparables.
|
getMax | public static Comparable getMax(Comparable v)(Code) | | Get a value of the same type as the supplied value having the
maximum value for that type. This is not possible, in general,
but we approximate the values where necessary.
|
getMin | public static Comparable getMin(Comparable v)(Code) | | Get a value of the same type as the supplied value having the
minimum value for that type. This is not possible, in general,
but we approximate the values where necessary.
|
increment | public static Comparable increment(Comparable v)(Code) | | Get a value of the same type as the supplied value having the
next greater value for that type. Not implemented for all
Comparables.
|
main | public static void main(String[] args)(Code) | | Tests (should be moved to regress)
|
|
|