| Package | Description |
|---|---|
| it.unimi.dsi.fastutil.longs |
Provides type-specific classes for long elements or keys.
|
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractLongComparator
An abstract class facilitating the creation of type-specific comparators.
|
protected static class |
LongComparators.NaturalImplicitComparator
A type-specific comparator mimicking the natural order.
|
protected static class |
LongComparators.OppositeComparator |
protected static class |
LongComparators.OppositeImplicitComparator
A type-specific comparator mimicking the opposite of the natural order.
|
| Modifier and Type | Field and Description |
|---|---|
protected LongComparator |
Long2ObjectSortedMaps.Singleton.comparator |
static LongComparator |
LongComparators.NATURAL_COMPARATOR |
static LongComparator |
LongComparators.OPPOSITE_COMPARATOR |
| Modifier and Type | Method and Description |
|---|---|
LongComparator |
LongSortedSets.EmptySet.comparator() |
LongComparator |
LongSortedSets.Singleton.comparator() |
LongComparator |
LongSortedSets.SynchronizedSortedSet.comparator() |
LongComparator |
LongSortedSets.UnmodifiableSortedSet.comparator() |
LongComparator |
LongSortedSet.comparator()
Returns the comparator associated with this sorted set, or null if it uses its elements' natural ordering.
|
LongComparator |
Long2ObjectSortedMaps.EmptySortedMap.comparator() |
LongComparator |
Long2ObjectSortedMaps.Singleton.comparator() |
LongComparator |
Long2ObjectSortedMaps.SynchronizedSortedMap.comparator() |
LongComparator |
Long2ObjectSortedMaps.UnmodifiableSortedMap.comparator() |
LongComparator |
Long2ObjectSortedMap.comparator()
Returns the comparator associated with this sorted set, or null if it uses its keys' natural ordering.
|
LongComparator |
Long2ObjectLinkedOpenHashMap.comparator() |
LongComparator |
AbstractLong2ObjectSortedMap.KeySet.comparator() |
static LongComparator |
LongComparators.oppositeComparator(LongComparator c)
Returns a comparator representing the opposite order of the given comparator.
|
| Modifier and Type | Method and Description |
|---|---|
static int |
LongArrays.binarySearch(long[] a,
int from,
int to,
long key,
LongComparator c)
Searches a range of the specified array for the specified value using
the binary search algorithm and a specified comparator.
|
static int |
LongArrays.binarySearch(long[] a,
long key,
LongComparator c)
Searches an array for the specified value using
the binary search algorithm and a specified comparator.
|
static int |
LongHeaps.downHeap(long[] heap,
int size,
int i,
LongComparator c)
Moves the given element down into the heap until it reaches the lowest possible position.
|
static Comparator<? super Map.Entry<Long,?>> |
Long2ObjectSortedMaps.entryComparator(LongComparator comparator)
Returns a comparator for entries based on a given comparator on keys.
|
static void |
LongHeaps.makeHeap(long[] heap,
int size,
LongComparator c)
Makes an array into a heap.
|
static void |
LongArrays.mergeSort(long[] a,
int from,
int to,
LongComparator comp)
Sorts the specified range of elements according to the order induced by the specified
comparator using mergesort.
|
static void |
LongArrays.mergeSort(long[] a,
int from,
int to,
LongComparator comp,
long[] 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 void |
LongArrays.mergeSort(long[] a,
LongComparator comp)
Sorts an array according to the order induced by the specified
comparator using mergesort.
|
static LongComparator |
LongComparators.oppositeComparator(LongComparator c)
Returns a comparator representing the opposite order of the given comparator.
|
static void |
LongArrays.parallelQuickSort(long[] x,
int from,
int to,
LongComparator comp)
Sorts the specified range of elements according to the order induced by the specified
comparator using a parallel quicksort.
|
static void |
LongArrays.parallelQuickSort(long[] x,
LongComparator comp)
Sorts an array according to the order induced by the specified
comparator using a parallel quicksort.
|
static void |
LongArrays.quickSort(long[] x,
int from,
int to,
LongComparator comp)
Sorts the specified range of elements according to the order induced by the specified
comparator using quicksort.
|
static void |
LongArrays.quickSort(long[] x,
LongComparator comp)
Sorts an array according to the order induced by the specified
comparator using quicksort.
|
static LongSortedSet |
LongSortedSets.singleton(long element,
LongComparator comparator)
Returns a type-specific immutable sorted set containing only the specified element, and using a specified comparator.
|
static <V> Long2ObjectSortedMap<V> |
Long2ObjectSortedMaps.singleton(long key,
V value,
LongComparator comparator)
Returns a type-specific immutable sorted map containing only the specified pair.
|
static <V> Long2ObjectSortedMap<V> |
Long2ObjectSortedMaps.singleton(Long key,
V value,
LongComparator comparator)
RETURNS a type-specific immutable sorted map containing only the specified pair.
|
static LongSortedSet |
LongSortedSets.singleton(Object element,
LongComparator comparator)
Returns a type-specific immutable sorted set containing only the specified element, and using a specified comparator.
|
static int |
LongHeaps.upHeap(long[] heap,
int size,
int i,
LongComparator c)
Moves the given element up in the heap until it reaches the highest possible position.
|
| Constructor and Description |
|---|
ForkJoinQuickSortComp(long[] x,
int from,
int to,
LongComparator comp) |
OppositeComparator(LongComparator c) |
Singleton(long key,
V value,
LongComparator comparator) |
Copyright © 2016. All rights reserved.