| Package | Description |
|---|---|
| it.unimi.dsi.fastutil.shorts |
Provides type-specific classes for short elements or keys.
|
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractShortComparator
Deprecated.
As of fastutil 8 this class is no longer necessary, as its only previous abstract
method is now a default method of the type-specific interface.
|
protected static class |
ShortComparators.NaturalImplicitComparator
A type-specific comparator mimicking the natural order.
|
protected static class |
ShortComparators.OppositeComparator |
protected static class |
ShortComparators.OppositeImplicitComparator
A type-specific comparator mimicking the opposite of the natural order.
|
| Modifier and Type | Field and Description |
|---|---|
protected ShortComparator |
Short2IntAVLTreeMap.actualComparator
This map's actual comparator; it may differ from
Short2IntAVLTreeMap.storedComparator because it is
always a type-specific comparator, so it could be derived from the former by wrapping. |
protected ShortComparator |
Short2ReferenceAVLTreeMap.actualComparator
This map's actual comparator; it may differ from
Short2ReferenceAVLTreeMap.storedComparator because it is
always a type-specific comparator, so it could be derived from the former by wrapping. |
protected ShortComparator |
Short2DoubleAVLTreeMap.actualComparator
This map's actual comparator; it may differ from
Short2DoubleAVLTreeMap.storedComparator because it is
always a type-specific comparator, so it could be derived from the former by wrapping. |
protected ShortComparator |
Short2ObjectAVLTreeMap.actualComparator
This map's actual comparator; it may differ from
Short2ObjectAVLTreeMap.storedComparator because it is
always a type-specific comparator, so it could be derived from the former by wrapping. |
protected ShortComparator |
Short2ShortRBTreeMap.actualComparator
This map's actual comparator; it may differ from
Short2ShortRBTreeMap.storedComparator because it is
always a type-specific comparator, so it could be derived from the former by wrapping. |
protected ShortComparator |
Short2FloatRBTreeMap.actualComparator
This map's actual comparator; it may differ from
Short2FloatRBTreeMap.storedComparator because it is
always a type-specific comparator, so it could be derived from the former by wrapping. |
protected ShortComparator |
Short2ShortAVLTreeMap.actualComparator
This map's actual comparator; it may differ from
Short2ShortAVLTreeMap.storedComparator because it is
always a type-specific comparator, so it could be derived from the former by wrapping. |
protected ShortComparator |
Short2BooleanRBTreeMap.actualComparator
This map's actual comparator; it may differ from
Short2BooleanRBTreeMap.storedComparator because it is
always a type-specific comparator, so it could be derived from the former by wrapping. |
protected ShortComparator |
Short2LongAVLTreeMap.actualComparator
This map's actual comparator; it may differ from
Short2LongAVLTreeMap.storedComparator because it is
always a type-specific comparator, so it could be derived from the former by wrapping. |
protected ShortComparator |
Short2ReferenceRBTreeMap.actualComparator
This map's actual comparator; it may differ from
Short2ReferenceRBTreeMap.storedComparator because it is
always a type-specific comparator, so it could be derived from the former by wrapping. |
protected ShortComparator |
Short2IntRBTreeMap.actualComparator
This map's actual comparator; it may differ from
Short2IntRBTreeMap.storedComparator because it is
always a type-specific comparator, so it could be derived from the former by wrapping. |
protected ShortComparator |
Short2LongRBTreeMap.actualComparator
This map's actual comparator; it may differ from
Short2LongRBTreeMap.storedComparator because it is
always a type-specific comparator, so it could be derived from the former by wrapping. |
protected ShortComparator |
Short2ByteAVLTreeMap.actualComparator
This map's actual comparator; it may differ from
Short2ByteAVLTreeMap.storedComparator because it is
always a type-specific comparator, so it could be derived from the former by wrapping. |
protected ShortComparator |
Short2BooleanAVLTreeMap.actualComparator
This map's actual comparator; it may differ from
Short2BooleanAVLTreeMap.storedComparator because it is
always a type-specific comparator, so it could be derived from the former by wrapping. |
protected ShortComparator |
Short2FloatAVLTreeMap.actualComparator
This map's actual comparator; it may differ from
Short2FloatAVLTreeMap.storedComparator because it is
always a type-specific comparator, so it could be derived from the former by wrapping. |
protected ShortComparator |
Short2ObjectRBTreeMap.actualComparator
This map's actual comparator; it may differ from
Short2ObjectRBTreeMap.storedComparator because it is
always a type-specific comparator, so it could be derived from the former by wrapping. |
protected ShortComparator |
Short2DoubleRBTreeMap.actualComparator
This map's actual comparator; it may differ from
Short2DoubleRBTreeMap.storedComparator because it is
always a type-specific comparator, so it could be derived from the former by wrapping. |
protected ShortComparator |
Short2CharAVLTreeMap.actualComparator
This map's actual comparator; it may differ from
Short2CharAVLTreeMap.storedComparator because it is
always a type-specific comparator, so it could be derived from the former by wrapping. |
protected ShortComparator |
Short2ByteRBTreeMap.actualComparator
This map's actual comparator; it may differ from
Short2ByteRBTreeMap.storedComparator because it is
always a type-specific comparator, so it could be derived from the former by wrapping. |
protected ShortComparator |
Short2CharRBTreeMap.actualComparator
This map's actual comparator; it may differ from
Short2CharRBTreeMap.storedComparator because it is
always a type-specific comparator, so it could be derived from the former by wrapping. |
protected ShortComparator |
ShortRBTreeSet.actualComparator
This set's actual comparator; it may differ from
ShortRBTreeSet.storedComparator because it is
always a type-specific comparator, so it could be derived from the former by wrapping. |
protected ShortComparator |
ShortAVLTreeSet.actualComparator
This set's actual comparator; it may differ from
ShortAVLTreeSet.storedComparator because it is
always a type-specific comparator, so it could be derived from the former by wrapping. |
protected ShortComparator |
ShortArrayPriorityQueue.c
The type-specific comparator used in this queue.
|
protected ShortComparator |
ShortHeapSemiIndirectPriorityQueue.c
The type-specific comparator used in this queue.
|
protected ShortComparator |
ShortHeapPriorityQueue.c
The type-specific comparator used in this queue.
|
protected ShortComparator |
ShortArrayIndirectPriorityQueue.c
The type-specific comparator used in this queue.
|
protected ShortComparator |
Short2ObjectSortedMaps.Singleton.comparator |
protected ShortComparator |
Short2ShortSortedMaps.Singleton.comparator |
protected ShortComparator |
Short2BooleanSortedMaps.Singleton.comparator |
protected ShortComparator |
Short2CharSortedMaps.Singleton.comparator |
protected ShortComparator |
Short2FloatSortedMaps.Singleton.comparator |
protected ShortComparator |
Short2ByteSortedMaps.Singleton.comparator |
protected ShortComparator |
Short2ReferenceSortedMaps.Singleton.comparator |
protected ShortComparator |
Short2LongSortedMaps.Singleton.comparator |
protected ShortComparator |
Short2IntSortedMaps.Singleton.comparator |
protected ShortComparator |
Short2DoubleSortedMaps.Singleton.comparator |
static ShortComparator |
ShortComparators.NATURAL_COMPARATOR |
static ShortComparator |
ShortComparators.OPPOSITE_COMPARATOR |
| Modifier and Type | Method and Description |
|---|---|
static ShortComparator |
ShortComparators.asShortComparator(Comparator<? super Short> c)
Returns a type-specific comparator that is equivalent to the given comparator.
|
ShortComparator |
AbstractShort2FloatSortedMap.KeySet.comparator() |
ShortComparator |
Short2ReferenceLinkedOpenHashMap.comparator()
Returns the comparator associated with this sorted set, or null if it uses its keys' natural ordering.
|
ShortComparator |
Short2DoubleLinkedOpenHashMap.comparator()
Returns the comparator associated with this sorted set, or null if it uses its keys' natural ordering.
|
ShortComparator |
ShortArrayPriorityQueue.comparator() |
ShortComparator |
Short2IntAVLTreeMap.comparator() |
ShortComparator |
Short2ObjectSortedMaps.EmptySortedMap.comparator() |
ShortComparator |
Short2ObjectSortedMaps.Singleton.comparator() |
ShortComparator |
Short2ObjectSortedMaps.SynchronizedSortedMap.comparator() |
ShortComparator |
Short2ObjectSortedMaps.UnmodifiableSortedMap.comparator() |
ShortComparator |
Short2ReferenceAVLTreeMap.comparator() |
ShortComparator |
Short2DoubleAVLTreeMap.comparator() |
ShortComparator |
Short2CharLinkedOpenHashMap.comparator()
Returns the comparator associated with this sorted set, or null if it uses its keys' natural ordering.
|
ShortComparator |
Short2IntLinkedOpenHashMap.comparator()
Returns the comparator associated with this sorted set, or null if it uses its keys' natural ordering.
|
ShortComparator |
Short2FloatLinkedOpenHashMap.comparator()
Returns the comparator associated with this sorted set, or null if it uses its keys' natural ordering.
|
ShortComparator |
AbstractShort2IntSortedMap.KeySet.comparator() |
ShortComparator |
Short2ObjectAVLTreeMap.comparator() |
ShortComparator |
ShortIndirectPriorityQueue.comparator()
Returns the type-specific comparator associated with this queue.
|
ShortComparator |
Short2FloatSortedMap.comparator()
Returns the comparator associated with this sorted set, or null if it uses its keys' natural ordering.
|
ShortComparator |
Short2ByteSortedMap.comparator()
Returns the comparator associated with this sorted set, or null if it uses its keys' natural ordering.
|
ShortComparator |
Short2ReferenceSortedMap.comparator()
Returns the comparator associated with this sorted set, or null if it uses its keys' natural ordering.
|
ShortComparator |
ShortPriorityQueue.comparator()
Returns the comparator associated with this priority queue, or null if it uses its elements' natural ordering.
|
ShortComparator |
Short2ShortSortedMaps.EmptySortedMap.comparator() |
ShortComparator |
Short2ShortSortedMaps.Singleton.comparator() |
ShortComparator |
Short2ShortSortedMaps.SynchronizedSortedMap.comparator() |
ShortComparator |
Short2ShortSortedMaps.UnmodifiableSortedMap.comparator() |
ShortComparator |
Short2BooleanSortedMaps.EmptySortedMap.comparator() |
ShortComparator |
Short2BooleanSortedMaps.Singleton.comparator() |
ShortComparator |
Short2BooleanSortedMaps.SynchronizedSortedMap.comparator() |
ShortComparator |
Short2BooleanSortedMaps.UnmodifiableSortedMap.comparator() |
ShortComparator |
AbstractShort2ShortSortedMap.KeySet.comparator() |
ShortComparator |
Short2CharSortedMaps.EmptySortedMap.comparator() |
ShortComparator |
Short2CharSortedMaps.Singleton.comparator() |
ShortComparator |
Short2CharSortedMaps.SynchronizedSortedMap.comparator() |
ShortComparator |
Short2CharSortedMaps.UnmodifiableSortedMap.comparator() |
ShortComparator |
Short2LongSortedMap.comparator()
Returns the comparator associated with this sorted set, or null if it uses its keys' natural ordering.
|
ShortComparator |
Short2ShortRBTreeMap.comparator() |
ShortComparator |
Short2FloatRBTreeMap.comparator() |
ShortComparator |
Short2ObjectSortedMap.comparator()
Returns the comparator associated with this sorted set, or null if it uses its keys' natural ordering.
|
ShortComparator |
Short2FloatSortedMaps.EmptySortedMap.comparator() |
ShortComparator |
Short2FloatSortedMaps.Singleton.comparator() |
ShortComparator |
Short2FloatSortedMaps.SynchronizedSortedMap.comparator() |
ShortComparator |
Short2FloatSortedMaps.UnmodifiableSortedMap.comparator() |
ShortComparator |
Short2ShortLinkedOpenHashMap.comparator()
Returns the comparator associated with this sorted set, or null if it uses its keys' natural ordering.
|
ShortComparator |
Short2ShortAVLTreeMap.comparator() |
ShortComparator |
Short2BooleanRBTreeMap.comparator() |
ShortComparator |
Short2ByteSortedMaps.EmptySortedMap.comparator() |
ShortComparator |
Short2ByteSortedMaps.Singleton.comparator() |
ShortComparator |
Short2ByteSortedMaps.SynchronizedSortedMap.comparator() |
ShortComparator |
Short2ByteSortedMaps.UnmodifiableSortedMap.comparator() |
ShortComparator |
Short2IntSortedMap.comparator()
Returns the comparator associated with this sorted set, or null if it uses its keys' natural ordering.
|
ShortComparator |
Short2CharSortedMap.comparator()
Returns the comparator associated with this sorted set, or null if it uses its keys' natural ordering.
|
ShortComparator |
Short2LongAVLTreeMap.comparator() |
ShortComparator |
Short2ObjectLinkedOpenHashMap.comparator()
Returns the comparator associated with this sorted set, or null if it uses its keys' natural ordering.
|
ShortComparator |
Short2ShortSortedMap.comparator()
Returns the comparator associated with this sorted set, or null if it uses its keys' natural ordering.
|
ShortComparator |
Short2ReferenceRBTreeMap.comparator() |
ShortComparator |
Short2ByteLinkedOpenHashMap.comparator()
Returns the comparator associated with this sorted set, or null if it uses its keys' natural ordering.
|
ShortComparator |
AbstractShort2ReferenceSortedMap.KeySet.comparator() |
ShortComparator |
Short2BooleanSortedMap.comparator()
Returns the comparator associated with this sorted set, or null if it uses its keys' natural ordering.
|
ShortComparator |
Short2IntRBTreeMap.comparator() |
ShortComparator |
AbstractShort2BooleanSortedMap.KeySet.comparator() |
ShortComparator |
ShortHeapSemiIndirectPriorityQueue.comparator() |
ShortComparator |
Short2LongRBTreeMap.comparator() |
ShortComparator |
AbstractShort2DoubleSortedMap.KeySet.comparator() |
ShortComparator |
AbstractShort2CharSortedMap.KeySet.comparator() |
ShortComparator |
Short2ByteAVLTreeMap.comparator() |
ShortComparator |
Short2BooleanAVLTreeMap.comparator() |
ShortComparator |
Short2ReferenceSortedMaps.EmptySortedMap.comparator() |
ShortComparator |
Short2ReferenceSortedMaps.Singleton.comparator() |
ShortComparator |
Short2ReferenceSortedMaps.SynchronizedSortedMap.comparator() |
ShortComparator |
Short2ReferenceSortedMaps.UnmodifiableSortedMap.comparator() |
ShortComparator |
Short2LongSortedMaps.EmptySortedMap.comparator() |
ShortComparator |
Short2LongSortedMaps.Singleton.comparator() |
ShortComparator |
Short2LongSortedMaps.SynchronizedSortedMap.comparator() |
ShortComparator |
Short2LongSortedMaps.UnmodifiableSortedMap.comparator() |
ShortComparator |
Short2FloatAVLTreeMap.comparator() |
ShortComparator |
Short2ObjectRBTreeMap.comparator() |
ShortComparator |
Short2LongLinkedOpenHashMap.comparator()
Returns the comparator associated with this sorted set, or null if it uses its keys' natural ordering.
|
ShortComparator |
ShortPriorityQueues.SynchronizedPriorityQueue.comparator() |
ShortComparator |
Short2DoubleRBTreeMap.comparator() |
ShortComparator |
Short2CharAVLTreeMap.comparator() |
ShortComparator |
AbstractShort2LongSortedMap.KeySet.comparator() |
ShortComparator |
Short2ByteRBTreeMap.comparator() |
ShortComparator |
AbstractShort2ByteSortedMap.KeySet.comparator() |
ShortComparator |
ShortHeapPriorityQueue.comparator() |
ShortComparator |
AbstractShort2ObjectSortedMap.KeySet.comparator() |
ShortComparator |
Short2IntSortedMaps.EmptySortedMap.comparator() |
ShortComparator |
Short2IntSortedMaps.Singleton.comparator() |
ShortComparator |
Short2IntSortedMaps.SynchronizedSortedMap.comparator() |
ShortComparator |
Short2IntSortedMaps.UnmodifiableSortedMap.comparator() |
ShortComparator |
ShortArrayFIFOQueue.comparator()
Returns the comparator associated with this priority queue, or null if it uses its elements' natural ordering.
|
ShortComparator |
ShortArrayIndirectPriorityQueue.comparator() |
ShortComparator |
Short2CharRBTreeMap.comparator() |
ShortComparator |
Short2DoubleSortedMap.comparator()
Returns the comparator associated with this sorted set, or null if it uses its keys' natural ordering.
|
ShortComparator |
Short2BooleanLinkedOpenHashMap.comparator()
Returns the comparator associated with this sorted set, or null if it uses its keys' natural ordering.
|
ShortComparator |
Short2DoubleSortedMaps.EmptySortedMap.comparator() |
ShortComparator |
Short2DoubleSortedMaps.Singleton.comparator() |
ShortComparator |
Short2DoubleSortedMaps.SynchronizedSortedMap.comparator() |
ShortComparator |
Short2DoubleSortedMaps.UnmodifiableSortedMap.comparator() |
ShortComparator |
ShortSortedSets.EmptySet.comparator() |
ShortComparator |
ShortSortedSets.Singleton.comparator() |
ShortComparator |
ShortSortedSets.SynchronizedSortedSet.comparator() |
ShortComparator |
ShortSortedSets.UnmodifiableSortedSet.comparator() |
ShortComparator |
ShortSortedSet.comparator() |
ShortComparator |
ShortRBTreeSet.comparator() |
ShortComparator |
ShortLinkedOpenHashSet.comparator() |
ShortComparator |
ShortLinkedOpenCustomHashSet.comparator() |
ShortComparator |
ShortAVLTreeSet.comparator() |
static ShortComparator |
ShortComparators.oppositeComparator(ShortComparator c)
Returns a comparator representing the opposite order of the given comparator.
|
ShortComparator |
ShortComparators.NaturalImplicitComparator.reversed() |
ShortComparator |
ShortComparators.OppositeImplicitComparator.reversed() |
ShortComparator |
ShortComparators.OppositeComparator.reversed() |
default ShortComparator |
ShortComparator.reversed() |
default ShortComparator |
ShortComparator.thenComparing(ShortComparator 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 long |
ShortBigArrays.binarySearch(short[][] a,
long from,
long to,
short key,
ShortComparator c)
Searches a range of the specified big array for the specified value using
the binary search algorithm and a specified comparator.
|
static long |
ShortBigArrays.binarySearch(short[][] a,
short key,
ShortComparator c)
Searches a big array for the specified value using
the binary search algorithm and a specified comparator.
|
static int |
ShortArrays.binarySearch(short[] a,
int from,
int to,
short key,
ShortComparator c)
Searches a range of the specified array for the specified value using
the binary search algorithm and a specified comparator.
|
static int |
ShortArrays.binarySearch(short[] a,
short key,
ShortComparator c)
Searches an array for the specified value using
the binary search algorithm and a specified comparator.
|
static int |
ShortIndirectHeaps.downHeap(short[] refArray,
int[] heap,
int[] inv,
int size,
int i,
ShortComparator c)
Moves the given element down into the indirect heap until it reaches the lowest possible position.
|
static int |
ShortSemiIndirectHeaps.downHeap(short[] refArray,
int[] heap,
int size,
int i,
ShortComparator c)
Moves the given element down into the semi-indirect heap until it reaches the lowest possible position.
|
static int |
ShortHeaps.downHeap(short[] heap,
int size,
int i,
ShortComparator c)
Moves the given element down into the heap until it reaches the lowest possible position.
|
static Comparator<? super Map.Entry<Short,?>> |
Short2ObjectSortedMaps.entryComparator(ShortComparator comparator)
Returns a comparator for entries based on a given comparator on keys.
|
static Comparator<? super Map.Entry<Short,?>> |
Short2ShortSortedMaps.entryComparator(ShortComparator comparator)
Returns a comparator for entries based on a given comparator on keys.
|
static Comparator<? super Map.Entry<Short,?>> |
Short2BooleanSortedMaps.entryComparator(ShortComparator comparator)
Returns a comparator for entries based on a given comparator on keys.
|
static Comparator<? super Map.Entry<Short,?>> |
Short2CharSortedMaps.entryComparator(ShortComparator comparator)
Returns a comparator for entries based on a given comparator on keys.
|
static Comparator<? super Map.Entry<Short,?>> |
Short2FloatSortedMaps.entryComparator(ShortComparator comparator)
Returns a comparator for entries based on a given comparator on keys.
|
static Comparator<? super Map.Entry<Short,?>> |
Short2ByteSortedMaps.entryComparator(ShortComparator comparator)
Returns a comparator for entries based on a given comparator on keys.
|
static Comparator<? super Map.Entry<Short,?>> |
Short2ReferenceSortedMaps.entryComparator(ShortComparator comparator)
Returns a comparator for entries based on a given comparator on keys.
|
static Comparator<? super Map.Entry<Short,?>> |
Short2LongSortedMaps.entryComparator(ShortComparator comparator)
Returns a comparator for entries based on a given comparator on keys.
|
static Comparator<? super Map.Entry<Short,?>> |
Short2IntSortedMaps.entryComparator(ShortComparator comparator)
Returns a comparator for entries based on a given comparator on keys.
|
static Comparator<? super Map.Entry<Short,?>> |
Short2DoubleSortedMaps.entryComparator(ShortComparator comparator)
Returns a comparator for entries based on a given comparator on keys.
|
static int |
ShortSemiIndirectHeaps.front(short[] refArray,
int[] heap,
int size,
int[] a,
ShortComparator c)
Retrieves the front of a heap in a given array using a given comparator.
|
static void |
ShortIndirectHeaps.makeHeap(short[] refArray,
int[] heap,
int[] inv,
int size,
ShortComparator c)
Creates an indirect heap from a given index array.
|
static void |
ShortSemiIndirectHeaps.makeHeap(short[] refArray,
int[] heap,
int size,
ShortComparator c)
Creates a semi-indirect heap from a given index array.
|
static void |
ShortIndirectHeaps.makeHeap(short[] refArray,
int offset,
int length,
int[] heap,
int[] inv,
ShortComparator c)
Creates an indirect heap in the given array.
|
static void |
ShortSemiIndirectHeaps.makeHeap(short[] refArray,
int offset,
int length,
int[] heap,
ShortComparator c)
Creates a semi-indirect heap in the given array.
|
static int[] |
ShortSemiIndirectHeaps.makeHeap(short[] refArray,
int offset,
int length,
ShortComparator c)
Creates a semi-indirect heap, allocating its heap array.
|
static void |
ShortHeaps.makeHeap(short[] heap,
int size,
ShortComparator c)
Makes an array into a heap.
|
static void |
ShortArrays.mergeSort(short[] a,
int from,
int to,
ShortComparator comp)
Sorts the specified range of elements according to the order induced by the specified
comparator using mergesort.
|
static void |
ShortArrays.mergeSort(short[] a,
int from,
int to,
ShortComparator comp,
short[] 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 |
ShortArrays.mergeSort(short[] a,
ShortComparator comp)
Sorts an array according to the order induced by the specified
comparator using mergesort.
|
static ShortComparator |
ShortComparators.oppositeComparator(ShortComparator c)
Returns a comparator representing the opposite order of the given comparator.
|
static void |
ShortArrays.parallelQuickSort(short[] x,
int from,
int to,
ShortComparator comp)
Sorts the specified range of elements according to the order induced by the specified
comparator using a parallel quicksort.
|
static void |
ShortArrays.parallelQuickSort(short[] x,
ShortComparator comp)
Sorts an array according to the order induced by the specified
comparator using a parallel quicksort.
|
static void |
ShortBigArrays.quickSort(short[][] x,
long from,
long to,
ShortComparator comp)
Sorts the specified range of elements according to the order induced by the specified
comparator using quicksort.
|
static void |
ShortBigArrays.quickSort(short[][] x,
ShortComparator comp)
Sorts the specified big array according to the order induced by the specified
comparator using quicksort.
|
static void |
ShortArrays.quickSort(short[] x,
int from,
int to,
ShortComparator comp)
Sorts the specified range of elements according to the order induced by the specified
comparator using quicksort.
|
static void |
ShortArrays.quickSort(short[] x,
ShortComparator comp)
Sorts an array according to the order induced by the specified
comparator using quicksort.
|
static ShortSortedSet |
ShortSortedSets.singleton(Object element,
ShortComparator comparator)
Returns a type-specific immutable sorted set containing only the specified element, and using a specified comparator.
|
static Short2BooleanSortedMap |
Short2BooleanSortedMaps.singleton(short key,
boolean value,
ShortComparator comparator)
Returns a type-specific immutable sorted map containing only the specified pair.
|
static Short2BooleanSortedMap |
Short2BooleanSortedMaps.singleton(Short key,
Boolean value,
ShortComparator comparator)
RETURNS a type-specific immutable sorted map containing only the specified pair.
|
static Short2ByteSortedMap |
Short2ByteSortedMaps.singleton(short key,
byte value,
ShortComparator comparator)
Returns a type-specific immutable sorted map containing only the specified pair.
|
static Short2ByteSortedMap |
Short2ByteSortedMaps.singleton(Short key,
Byte value,
ShortComparator comparator)
RETURNS a type-specific immutable sorted map containing only the specified pair.
|
static Short2CharSortedMap |
Short2CharSortedMaps.singleton(Short key,
Character value,
ShortComparator comparator)
RETURNS a type-specific immutable sorted map containing only the specified pair.
|
static Short2CharSortedMap |
Short2CharSortedMaps.singleton(short key,
char value,
ShortComparator comparator)
Returns a type-specific immutable sorted map containing only the specified pair.
|
static Short2DoubleSortedMap |
Short2DoubleSortedMaps.singleton(short key,
double value,
ShortComparator comparator)
Returns a type-specific immutable sorted map containing only the specified pair.
|
static Short2DoubleSortedMap |
Short2DoubleSortedMaps.singleton(Short key,
Double value,
ShortComparator comparator)
RETURNS a type-specific immutable sorted map containing only the specified pair.
|
static Short2FloatSortedMap |
Short2FloatSortedMaps.singleton(short key,
float value,
ShortComparator comparator)
Returns a type-specific immutable sorted map containing only the specified pair.
|
static Short2FloatSortedMap |
Short2FloatSortedMaps.singleton(Short key,
Float value,
ShortComparator comparator)
RETURNS a type-specific immutable sorted map containing only the specified pair.
|
static Short2IntSortedMap |
Short2IntSortedMaps.singleton(Short key,
Integer value,
ShortComparator comparator)
RETURNS a type-specific immutable sorted map containing only the specified pair.
|
static Short2IntSortedMap |
Short2IntSortedMaps.singleton(short key,
int value,
ShortComparator comparator)
Returns a type-specific immutable sorted map containing only the specified pair.
|
static Short2LongSortedMap |
Short2LongSortedMaps.singleton(short key,
long value,
ShortComparator comparator)
Returns a type-specific immutable sorted map containing only the specified pair.
|
static Short2LongSortedMap |
Short2LongSortedMaps.singleton(Short key,
Long value,
ShortComparator comparator)
RETURNS a type-specific immutable sorted map containing only the specified pair.
|
static ShortSortedSet |
ShortSortedSets.singleton(short element,
ShortComparator comparator)
Returns a type-specific immutable sorted set containing only the specified element, and using a specified comparator.
|
static Short2ShortSortedMap |
Short2ShortSortedMaps.singleton(short key,
short value,
ShortComparator comparator)
Returns a type-specific immutable sorted map containing only the specified pair.
|
static Short2ShortSortedMap |
Short2ShortSortedMaps.singleton(Short key,
Short value,
ShortComparator comparator)
RETURNS a type-specific immutable sorted map containing only the specified pair.
|
static <V> Short2ObjectSortedMap<V> |
Short2ObjectSortedMaps.singleton(short key,
V value,
ShortComparator comparator)
Returns a type-specific immutable sorted map containing only the specified pair.
|
static <V> Short2ReferenceSortedMap<V> |
Short2ReferenceSortedMaps.singleton(short key,
V value,
ShortComparator comparator)
Returns a type-specific immutable sorted map containing only the specified pair.
|
static <V> Short2ObjectSortedMap<V> |
Short2ObjectSortedMaps.singleton(Short key,
V value,
ShortComparator comparator)
RETURNS a type-specific immutable sorted map containing only the specified pair.
|
static <V> Short2ReferenceSortedMap<V> |
Short2ReferenceSortedMaps.singleton(Short key,
V value,
ShortComparator comparator)
RETURNS a type-specific immutable sorted map containing only the specified pair.
|
void |
ShortLists.EmptyList.sort(ShortComparator comparator) |
void |
ShortLists.Singleton.sort(ShortComparator comparator) |
void |
ShortLists.SynchronizedList.sort(ShortComparator comparator) |
void |
ShortLists.UnmodifiableList.sort(ShortComparator comparator) |
default void |
ShortList.sort(ShortComparator comparator)
Sort a list using a type-specific comparator.
|
void |
ShortArrayList.sort(ShortComparator comp) |
static void |
ShortArrays.stableSort(short[] a,
int from,
int to,
ShortComparator 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.
|
static void |
ShortArrays.stableSort(short[] a,
ShortComparator 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.
|
default ShortComparator |
ShortComparator.thenComparing(ShortComparator 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 |
ShortArrays.unstableSort(short[] a,
int from,
int to,
ShortComparator 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.
|
static void |
ShortArrays.unstableSort(short[] a,
ShortComparator 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.
|
void |
ShortLists.EmptyList.unstableSort(ShortComparator comparator) |
void |
ShortLists.Singleton.unstableSort(ShortComparator comparator) |
void |
ShortLists.SynchronizedList.unstableSort(ShortComparator comparator) |
void |
ShortLists.UnmodifiableList.unstableSort(ShortComparator comparator) |
default void |
ShortList.unstableSort(ShortComparator comparator)
Sorts this list using a sort not assured to be stable.
|
void |
ShortArrayList.unstableSort(ShortComparator comp) |
static int |
ShortIndirectHeaps.upHeap(short[] refArray,
int[] heap,
int[] inv,
int size,
int i,
ShortComparator c)
Moves the given element up in the indirect heap until it reaches the highest possible position.
|
static int |
ShortSemiIndirectHeaps.upHeap(short[] refArray,
int[] heap,
int size,
int i,
ShortComparator c)
Moves the given element up in the semi-indirect heap until it reaches the highest possible position.
|
static int |
ShortHeaps.upHeap(short[] heap,
int size,
int i,
ShortComparator c)
Moves the given element up in the heap until it reaches the highest possible position.
|
| Constructor and Description |
|---|
ForkJoinQuickSortComp(short[] x,
int from,
int to,
ShortComparator comp) |
OppositeComparator(ShortComparator c) |
ShortArrayIndirectPriorityQueue(short[] refArray,
int[] a,
int size,
ShortComparator c)
Wraps a given array in a queue using a given comparator.
|
ShortArrayIndirectPriorityQueue(short[] refArray,
int[] a,
ShortComparator c)
Wraps a given array in a queue using a given comparator.
|
ShortArrayIndirectPriorityQueue(short[] refArray,
int capacity,
ShortComparator c)
Creates a new empty queue without elements with a given capacity and comparator.
|
ShortArrayIndirectPriorityQueue(short[] refArray,
ShortComparator c)
Creates a new empty queue with capacity equal to the length of the reference array and a given comparator.
|
ShortArrayPriorityQueue(int capacity,
ShortComparator c)
Creates a new empty queue with a given capacity and comparator.
|
ShortArrayPriorityQueue(short[] a,
int size,
ShortComparator c)
Wraps a given array in a queue using a given comparator.
|
ShortArrayPriorityQueue(short[] a,
ShortComparator c)
Wraps a given array in a queue using a given comparator.
|
ShortArrayPriorityQueue(ShortComparator c)
Creates a new empty queue with a given comparator.
|
ShortHeapIndirectPriorityQueue(short[] refArray,
int[] a,
int size,
ShortComparator c)
Wraps a given array in a queue using a given comparator.
|
ShortHeapIndirectPriorityQueue(short[] refArray,
int[] a,
ShortComparator c)
Wraps a given array in a queue using a given comparator.
|
ShortHeapIndirectPriorityQueue(short[] refArray,
int capacity,
ShortComparator c)
Creates a new empty queue with a given capacity and comparator.
|
ShortHeapIndirectPriorityQueue(short[] refArray,
ShortComparator c)
Creates a new empty queue with capacity equal to the length of the reference array and a given comparator.
|
ShortHeapPriorityQueue(Collection<? extends Short> collection,
ShortComparator c)
Creates a queue using the elements in a collection using a given comparator.
|
ShortHeapPriorityQueue(int capacity,
ShortComparator c)
Creates a new empty queue with a given capacity and comparator.
|
ShortHeapPriorityQueue(short[] a,
int size,
ShortComparator c)
Wraps a given array in a queue using a given comparator.
|
ShortHeapPriorityQueue(short[] a,
ShortComparator c)
Wraps a given array in a queue using a given comparator.
|
ShortHeapPriorityQueue(ShortCollection collection,
ShortComparator c)
Creates a queue using the elements in a type-specific collection using a given comparator.
|
ShortHeapPriorityQueue(ShortComparator c)
Creates a new empty queue with a given comparator.
|
ShortHeapSemiIndirectPriorityQueue(short[] refArray,
int[] a,
int size,
ShortComparator c)
Wraps a given array in a queue using a given comparator.
|
ShortHeapSemiIndirectPriorityQueue(short[] refArray,
int[] a,
ShortComparator c)
Wraps a given array in a queue using a given comparator.
|
ShortHeapSemiIndirectPriorityQueue(short[] refArray,
int capacity,
ShortComparator c)
Creates a new empty queue without elements with a given capacity and comparator.
|
ShortHeapSemiIndirectPriorityQueue(short[] refArray,
ShortComparator c)
Creates a new empty queue with capacity equal to the length of the reference array and a given comparator.
|
Singleton(short key,
boolean value,
ShortComparator comparator) |
Singleton(short key,
byte value,
ShortComparator comparator) |
Singleton(short key,
char value,
ShortComparator comparator) |
Singleton(short key,
double value,
ShortComparator comparator) |
Singleton(short key,
float value,
ShortComparator comparator) |
Singleton(short key,
int value,
ShortComparator comparator) |
Singleton(short key,
long value,
ShortComparator comparator) |
Singleton(short element,
ShortComparator comparator) |
Singleton(short key,
short value,
ShortComparator comparator) |
Singleton(short key,
V value,
ShortComparator comparator) |
Singleton(short key,
V value,
ShortComparator comparator) |
Copyright © 2020. All rights reserved.