|
|||||||||
| Home >> All >> java >> [ util overview ] | PREV NEXT | ||||||||
Uses of Interface
java.util.Comparator
| Uses of Comparator in java.util |
| Classes in java.util that implement Comparator | |
private static class |
Collections.ReverseComparator
The implementation of Collections.reverseOrder() 55 . |
| Fields in java.util declared as Comparator | |
(package private) Comparator |
TreeMap.comparator
This TreeMap's comparator, or null for natural ordering. |
| Methods in java.util that return Comparator | |
static Comparator |
Collections.reverseOrder()
Get a comparator that implements the reverse of natural ordering. |
Comparator |
Collections.SynchronizedSortedMap.comparator()
Returns the comparator used in sorting the underlying map, or null if it is the keys' natural ordering. |
Comparator |
Collections.SynchronizedSortedSet.comparator()
Returns the comparator used in sorting the underlying set, or null if it is the elements' natural ordering. |
Comparator |
Collections.UnmodifiableSortedMap.comparator()
Returns the comparator used in sorting the underlying map, or null if it is the keys' natural ordering. |
Comparator |
Collections.UnmodifiableSortedSet.comparator()
Returns the comparator used in sorting the underlying set, or null if it is the elements' natural ordering. |
Comparator |
SortedMap.comparator()
Returns the comparator used in sorting this map, or null if it is the keys' natural ordering. |
Comparator |
TreeMap.comparator()
Return the comparator used to sort this map, or null if it is by natural order. |
Comparator |
TreeMap.SubMap.comparator()
|
Comparator |
SortedSet.comparator()
Returns the comparator used in sorting this set, or null if it is the elements' natural ordering. |
Comparator |
TreeSet.comparator()
Returns this Set's comparator. |
| Methods in java.util with parameters of type Comparator | |
(package private) static int |
Collections.compare(java.lang.Object o1,
java.lang.Object o2,
Comparator c)
Compare two objects with or without a Comparator. |
static int |
Collections.binarySearch(List l,
java.lang.Object key,
Comparator c)
Perform a binary search of a List for a key, using a supplied Comparator. |
static java.lang.Object |
Collections.max(Collection c,
Comparator order)
Find the maximum element in a Collection, according to a specified Comparator. |
static java.lang.Object |
Collections.min(Collection c,
Comparator order)
Find the minimum element in a Collection, according to a specified Comparator. |
static void |
Collections.sort(List l,
Comparator c)
Sort a list according to a specified Comparator. |
static int |
Arrays.binarySearch(java.lang.Object[] a,
java.lang.Object key,
Comparator c)
Perform a binary search of an Object array for a key, using a supplied Comparator. |
static void |
Arrays.sort(java.lang.Object[] a,
Comparator c)
Sort an array of Objects according to a Comparator. |
static void |
Arrays.sort(java.lang.Object[] a,
int fromIndex,
int toIndex,
Comparator c)
Sort an array of Objects according to a Comparator. |
| Constructors in java.util with parameters of type Comparator | |
TreeMap(Comparator c)
Instantiate a new TreeMap with no elements, using the provided comparator to sort. |
|
TreeSet(Comparator comparator)
Construct a new TreeSet whose backing TreeMap uses the supplied Comparator. |
|
|
|||||||||
| Home >> All >> java >> [ util overview ] | PREV NEXT | ||||||||