Uses of Interface java.util.Comparator

Uses in package java.text

Classes implementing java.util.Comparator

class
This class is the abstract superclass of classes which perform locale dependent String comparisons.
class
This class is a concrete subclass of Collator suitable for string collation in a wide variety of languages.

Uses in package java.util

Constructors with parameter type java.util.Comparator

Instantiate a new TreeMap with no elements, using the provided comparator to sort.
Construct a new TreeSet whose backing TreeMap uses the supplied Comparator.

Methods with parameter type java.util.Comparator

int
Perform a binary search of an Object array for a key, using a supplied Comparator.
int
Perform a binary search of a List for a key, using a supplied Comparator.
Object
Find the maximum element in a Collection, according to a specified Comparator.
Object
Find the minimum element in a Collection, according to a specified Comparator.
void
Arrays.sort(Object[] a, int fromIndex, int toIndex, Comparator c)
Sort an array of Objects according to a Comparator.
void
Sort an array of Objects according to a Comparator.
void
Sort a list according to a specified Comparator.

Methods with return type java.util.Comparator

Comparator
Returns the comparator used in sorting this map, or null if it is the keys' natural ordering.
Comparator
Returns the comparator used in sorting this set, or null if it is the elements' natural ordering.
Comparator
Return the comparator used to sort this map, or null if it is by natural order.
Comparator
Returns this Set's comparator.
Comparator
Get a comparator that implements the reverse of natural ordering.

Uses in package java.lang

Fields of type java.util.Comparator

Comparator
A Comparator that uses String.compareToIgnoreCase(String).

Uses in package javax.swing

Constructors with parameter type java.util.Comparator

Creates a new SortingFocusTraversalPolicy with the given comparator set.

Methods with parameter type java.util.Comparator

void
Set the current value of the comparator property.

Methods with return type java.util.Comparator

Comparator
Get the current value of the comparator property.