compare >>-compare(first,second)-------------------------------->< This method returns "-1" if the [second] is larger than [first] object, "0" if the two objects are equal, and "1" [second] is smaller than [first] . The default Comparator compare() method assumes that [first] is an object that implements the Comparable compareTo method (. Subclasses may override this to implement more specific comparisons.
|