| Package | Description |
|---|---|
| it.unimi.dsi.fastutil.booleans |
Provides type-specific classes for boolean elements or keys.
|
| Modifier and Type | Class and Description |
|---|---|
protected static class |
BooleanComparators.NaturalImplicitComparator
A type-specific comparator mimicking the natural order.
|
protected static class |
BooleanComparators.OppositeComparator |
protected static class |
BooleanComparators.OppositeImplicitComparator
A type-specific comparator mimicking the opposite of the natural order.
|
| Modifier and Type | Field and Description |
|---|---|
static BooleanComparator |
BooleanComparators.NATURAL_COMPARATOR |
static BooleanComparator |
BooleanComparators.OPPOSITE_COMPARATOR |
| Modifier and Type | Method and Description |
|---|---|
static BooleanComparator |
BooleanComparators.asBooleanComparator(Comparator<? super Boolean> c)
Returns a type-specific comparator that is equivalent to the given comparator.
|
static BooleanComparator |
BooleanComparators.oppositeComparator(BooleanComparator c)
Returns a comparator representing the opposite order of the given comparator.
|
BooleanComparator |
BooleanComparators.NaturalImplicitComparator.reversed() |
BooleanComparator |
BooleanComparators.OppositeImplicitComparator.reversed() |
BooleanComparator |
BooleanComparators.OppositeComparator.reversed() |
default BooleanComparator |
BooleanComparator.reversed() |
default BooleanComparator |
BooleanComparator.thenComparing(BooleanComparator second)
Return a new comparator that first uses this comparator, then uses the second comparator
if this comparator compared the two elements as equal.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
BooleanArrays.mergeSort(boolean[] a,
BooleanComparator comp)
Sorts an array according to the order induced by the specified
comparator using mergesort.
|
static void |
BooleanArrays.mergeSort(boolean[] a,
int from,
int to,
BooleanComparator comp)
Sorts the specified range of elements according to the order induced by the specified
comparator using mergesort.
|
static void |
BooleanArrays.mergeSort(boolean[] a,
int from,
int to,
BooleanComparator comp,
boolean[] supp)
Sorts the specified range of elements according to the order induced by the specified
comparator using mergesort, using a given pre-filled support array.
|
static BooleanComparator |
BooleanComparators.oppositeComparator(BooleanComparator c)
Returns a comparator representing the opposite order of the given comparator.
|
static void |
BooleanArrays.parallelQuickSort(boolean[] x,
BooleanComparator comp)
Sorts an array according to the order induced by the specified
comparator using a parallel quicksort.
|
static void |
BooleanArrays.parallelQuickSort(boolean[] x,
int from,
int to,
BooleanComparator comp)
Sorts the specified range of elements according to the order induced by the specified
comparator using a parallel quicksort.
|
static void |
BooleanBigArrays.quickSort(boolean[][] x,
BooleanComparator comp)
Sorts the specified big array according to the order induced by the specified
comparator using quicksort.
|
static void |
BooleanBigArrays.quickSort(boolean[][] x,
long from,
long to,
BooleanComparator comp)
Sorts the specified range of elements according to the order induced by the specified
comparator using quicksort.
|
static void |
BooleanArrays.quickSort(boolean[] x,
BooleanComparator comp)
Sorts an array according to the order induced by the specified
comparator using quicksort.
|
static void |
BooleanArrays.quickSort(boolean[] x,
int from,
int to,
BooleanComparator comp)
Sorts the specified range of elements according to the order induced by the specified
comparator using quicksort.
|
void |
BooleanLists.EmptyList.sort(BooleanComparator comparator) |
void |
BooleanLists.Singleton.sort(BooleanComparator comparator) |
void |
BooleanLists.SynchronizedList.sort(BooleanComparator comparator) |
void |
BooleanLists.UnmodifiableList.sort(BooleanComparator comparator) |
default void |
BooleanList.sort(BooleanComparator comparator)
Sort a list using a type-specific comparator.
|
void |
BooleanArrayList.sort(BooleanComparator comp) |
static void |
BooleanArrays.stableSort(boolean[] a,
BooleanComparator comp)
Sorts an array according to the order induced by the specified comparator,
potentially dynamically choosing an appropriate algorithm given the type and size of the array.
|
static void |
BooleanArrays.stableSort(boolean[] a,
int from,
int to,
BooleanComparator comp)
Sorts the specified range of elements according to the order induced by the specified comparator,
potentially dynamically choosing an appropriate algorithm given the type and size of the array.
|
default BooleanComparator |
BooleanComparator.thenComparing(BooleanComparator second)
Return a new comparator that first uses this comparator, then uses the second comparator
if this comparator compared the two elements as equal.
|
static void |
BooleanArrays.unstableSort(boolean[] a,
BooleanComparator comp)
Sorts an array according to the order induced by the specified comparator,
potentially dynamically choosing an appropriate algorithm given the type and size of the array.
|
static void |
BooleanArrays.unstableSort(boolean[] a,
int from,
int to,
BooleanComparator comp)
Sorts the specified range of elements according to the order induced by the specified comparator,
potentially dynamically choosing an appropriate algorithm given the type and size of the array.
|
void |
BooleanLists.EmptyList.unstableSort(BooleanComparator comparator) |
void |
BooleanLists.Singleton.unstableSort(BooleanComparator comparator) |
void |
BooleanLists.SynchronizedList.unstableSort(BooleanComparator comparator) |
void |
BooleanLists.UnmodifiableList.unstableSort(BooleanComparator comparator) |
default void |
BooleanList.unstableSort(BooleanComparator comparator)
Sorts this list using a sort not assured to be stable.
|
void |
BooleanArrayList.unstableSort(BooleanComparator comp) |
| Constructor and Description |
|---|
ForkJoinQuickSortComp(boolean[] x,
int from,
int to,
BooleanComparator comp) |
OppositeComparator(BooleanComparator c) |
Copyright © 2020. All rights reserved.