Skip to content
Buy me a coffee

Comparable

Defined in: src/util/Comparator.ts:8

Comparable: objects that define their own natural ordering.

T

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.

T

number