java.lang.Object
io.jenetics.util.Ordered<T>
- Type Parameters:
T
- the type of the wrapped object
- All Implemented Interfaces:
Comparable<Ordered<T>>
,Supplier<T>
Object wrapper, which makes the wrapped value
Comparable
, by defining
a separate Comparator
.- Since:
- 6.3
- Version:
- 6.3
-
Method Summary
-
Method Details
-
get
Return the wrapped value. -
compareTo
- Specified by:
compareTo
in interfaceComparable<T>
-
of
Make the givenvalue
comparable, by using the givencomparator
.- Type Parameters:
T
- the type of the wrapped object- Parameters:
value
- the wrapped object, may benull
comparator
- the comparator used for comparing two value objects- Returns:
- a new ordered object
- Throws:
NullPointerException
- if the givencomparator
isnull
-