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