Skip to content
luthertan98 edited this page Apr 22, 2021 · 1 revision
Method name Description
compare(T o1, T o2) Compares its two arguments for order. Usually used to sort.
equals(Object obj) Indicates whether some other object is "equal to" this comparator. Usually do not need to implement this as the Object class have the equals method defined.