Package | Description |
---|---|
com.devexperts.util |
Provides general utility classes.
|
Modifier and Type | Method and Description |
---|---|
static <K extends Comparable<? super K>> |
IntComparator.comparing(IntFunction<? extends K> keyExtractor)
Accepts a function that extracts a comparable sort, and returns
a comparator that compares by an extracted comparable sort key.
|
static <K> IntComparator |
IntComparator.comparing(IntFunction<? extends K> keyExtractor,
Comparator<? super K> keyComparator)
Accepts a function that extracts a sort key and a sort key comparator, and returns
a comparator that compares by an extracted sort key using the specified sort key comparator.
|
static IntComparator |
IntComparator.comparingDouble(IntToDoubleFunction keyExtractor)
Accepts a function that extracts a double sort key, and returns
a comparator that compares by an extracted double sort key.
|
static IntComparator |
IntComparator.comparingInt(IntUnaryOperator keyExtractor)
Accepts a function that extracts an int sort key, and returns
a comparator that compares by an extracted int sort key.
|
static IntComparator |
IntComparator.comparingLong(IntToLongFunction keyExtractor)
Accepts a function that extracts a long sort key, and returns
a comparator that compares by an extracted long sort key.
|
default IntComparator |
IntComparator.reversed()
Returns a comparator that imposes the reverse ordering of this comparator.
|
default IntComparator |
IntComparator.thenComparing(IntComparator other)
Returns a lexicographic-order comparator with another comparator.
|
default <K extends Comparable<? super K>> |
IntComparator.thenComparing(IntFunction<? extends K> keyExtractor)
Returns a lexicographic-order comparator with a function that extracts a comparable sort key.
|
default <K> IntComparator |
IntComparator.thenComparing(IntFunction<? extends K> keyExtractor,
Comparator<? super K> keyComparator)
Returns a lexicographic-order comparator with a function that extracts
a sort key to be compared with the given sort key comparator.
|
default IntComparator |
IntComparator.thenComparingDouble(IntToDoubleFunction keyExtractor)
Returns a lexicographic-order comparator with a function that extracts a double sort key.
|
default IntComparator |
IntComparator.thenComparingInt(IntUnaryOperator keyExtractor)
Returns a lexicographic-order comparator with a function that extracts an int sort key.
|
default IntComparator |
IntComparator.thenComparingLong(IntToLongFunction keyExtractor)
Returns a lexicographic-order comparator with a function that extracts a long sort key.
|
Modifier and Type | Method and Description |
---|---|
static void |
QuickSort.sort(int[] a,
IntComparator c)
Sorts the specified array of ints according to the order induced by the specified comparator.
|
static void |
QuickSort.sort(int[] a,
int fromIndex,
int toIndex,
IntComparator c)
Sorts the specified range of the specified array of ints according to the order induced by the specified comparator.
|
default IntComparator |
IntComparator.thenComparing(IntComparator other)
Returns a lexicographic-order comparator with another comparator.
|
Copyright © 2002–2025 Devexperts LLC. All rights reserved.