hunt.util.Comparator

Undocumented in source.

Members

Functions

compare
int compare(T x, T y)
Undocumented in source. Be warned that the author may not have intended to support it.
greaterthan
bool greaterthan(T a, T b)
Undocumented in source. Be warned that the author may not have intended to support it.
lessThan
bool lessThan(T a, T b)
Undocumented in source. Be warned that the author may not have intended to support it.

Interfaces

Comparator
interface Comparator(T)

A comparison function, which imposes a <i>total ordering</i> on some collection of objects. Comparators can be passed to a sort method (such as {@link Collections#sort(List,Comparator) Collections.sort} or {@link Arrays#sort(Object[],Comparator) Arrays.sort}) to allow precise control over the sort order. Comparators can also be used to control the order of certain data structures (such as {@link SortedSet sorted sets} or {@link SortedMap sorted maps}), or to provide an ordering for collections of objects that don't have a {@link Comparable natural ordering}.<p>

Meta