| Package | Description |
|---|---|
| java.lang | |
| java.util |
| Modifier and Type | Field and Description |
|---|---|
static Comparator<String> |
String.CASE_INSENSITIVE_ORDER |
| Modifier and Type | Method and Description |
|---|---|
Comparator<? super E> |
TreeSet.comparator() |
Comparator<? super K> |
TreeMap.comparator() |
Comparator<? super E> |
SortedSet.comparator() |
Comparator<? super K> |
SortedMap.comparator() |
Comparator<? super E> |
PriorityQueue.comparator() |
static <T> Comparator<T> |
Collections.reverseOrder() |
static <T> Comparator<T> |
Collections.reverseOrder(Comparator<T> c) |
| Modifier and Type | Method and Description |
|---|---|
static <T> int |
Collections.binarySearch(List<? extends T> list,
T object,
Comparator<? super T> comparator) |
static <T> int |
Arrays.binarySearch(T[] array,
int startIndex,
int endIndex,
T object,
Comparator<? super T> comparator) |
static <T> int |
Arrays.binarySearch(T[] array,
T object,
Comparator<? super T> comparator) |
static <T> int |
Objects.compare(T a,
T b,
Comparator<? super T> c) |
static <T> T |
Collections.max(Collection<? extends T> collection,
Comparator<? super T> comparator) |
static <T> T |
Collections.min(Collection<? extends T> collection,
Comparator<? super T> comparator) |
static <T> Comparator<T> |
Collections.reverseOrder(Comparator<T> c) |
default void |
List.sort(Comparator<? super E> c) |
static <T> void |
Collections.sort(List<T> list,
Comparator<? super T> comparator) |
static <T> void |
Arrays.sort(T[] array,
Comparator<? super T> comparator) |
static <T> void |
Arrays.sort(T[] array,
int start,
int end,
Comparator<? super T> comparator) |
| Constructor and Description |
|---|
PriorityQueue(int initialCapacity,
Comparator<? super E> comparator) |
TreeMap(Comparator<? super K> comparator) |
TreeSet(Comparator<? super E> comparator) |
Copyright © 2026. All rights reserved.