From charlesreid1

In Java, Comparators are objects that are used to perform comparisons. They define a single compare method that takes two arguments a and b, and the comparator object uses its custom defined comparison routine to compare these objects.

See Java/Comparators

Javadocs link: http://docs.oracle.com/javase/8/docs/api/java/lang/Comparator.html

Also see Comparators vs Comparable

Pages in category "Comparators"

The following 3 pages are in this category, out of 3 total.