Compartor - nus-cs2030/2021-s2 GitHub Wiki
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. |