Comparable
Defined in: src/util/Comparator.ts:8
Comparable: objects that define their own natural ordering.
Type Parameters
Section titled “Type Parameters”T
Methods
Section titled “Methods”compareTo()
Section titled “compareTo()”compareTo(
o):number
Defined in: src/util/Comparator.ts:14
Compares this object with o: returns a negative number, zero or a positive number as this object is less than,
equal to or greater than o. Natural ordering (sorting without a comparator, TreeMap, TreeSet,
PriorityQueue) calls this method when the first operand defines it.
Parameters
Section titled “Parameters”T
Returns
Section titled “Returns”number