Product SiteDocumentation Site

5.4.12.2. 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, resulting in a descending sort sequence. The InvertingComparator will invert the ordering returned by the provided Comparator.