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:
compareToin interfaceComparable<T>
-
of
Make the givenvaluecomparable, by using the givencomparator.- Type Parameters:
T- the type of the wrapped object- Parameters:
value- the wrapped object, may benullcomparator- the comparator used for comparing two value objects- Returns:
- a new ordered object
- Throws:
NullPointerException- if the givencomparatorisnull
-