Package | Description |
---|---|
java.lang | |
java.text | |
java.util |
Modifier and Type | Field and Description |
---|---|
static Comparator |
String.CASE_INSENSITIVE_ORDER |
Modifier and Type | Class and Description |
---|---|
class |
Collator |
class |
RuleBasedCollator |
Modifier and Type | Method and Description |
---|---|
Comparator |
SortedMap.comparator() |
Comparator |
SortedSet.comparator() |
Comparator |
TreeMap.comparator() |
Comparator |
TreeSet.comparator() |
static Comparator |
Collections.reverseOrder()
A comparator which reverses the natural order of the elements.
|
static Comparator |
Collections.reverseOrder(Comparator c)
Returns a
Comparator that reverses the order of the
Comparator passed. |
Modifier and Type | Method and Description |
---|---|
static int |
Collections.binarySearch(List list,
Object object,
Comparator comparator)
Performs a binary search for the specified element in the specified
sorted list using the specified comparator.
|
static int |
Arrays.binarySearch(Object[] array,
Object object,
Comparator comparator)
Performs a binary search for the specified element in the specified
ascending sorted array using the
Comparator to compare elements. |
static Object |
Collections.max(Collection collection,
Comparator comparator)
Searches the specified collection for the maximum element using the
specified comparator.
|
static Object |
Collections.min(Collection collection,
Comparator comparator)
Searches the specified collection for the minimum element using the
specified comparator.
|
static Comparator |
Collections.reverseOrder(Comparator c)
Returns a
Comparator that reverses the order of the
Comparator passed. |
static void |
Collections.sort(List list,
Comparator comparator)
Sorts the specified list using the specified comparator.
|
static void |
Arrays.sort(Object[] array,
Comparator comparator)
Sorts the specified array using the specified
Comparator . |
static void |
Arrays.sort(Object[] array,
int start,
int end,
Comparator comparator)
Sorts the specified range in the array using the specified
Comparator . |
Constructor and Description |
---|
TreeMap(Comparator comp) |
TreeSet(Comparator comp) |