| Package | Description |
|---|---|
| it.unimi.dsi.fastutil.bytes |
Provides type-specific classes for byte elements or keys.
|
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractByteComparator
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 |
ByteComparators.NaturalImplicitComparator
A type-specific comparator mimicking the natural order.
|
protected static class |
ByteComparators.OppositeComparator |
protected static class |
ByteComparators.OppositeImplicitComparator
A type-specific comparator mimicking the opposite of the natural order.
|
| Modifier and Type | Field and Description |
|---|---|
protected ByteComparator |
Byte2DoubleAVLTreeMap.actualComparator
This map's actual comparator; it may differ from
Byte2DoubleAVLTreeMap.storedComparator because it is
always a type-specific comparator, so it could be derived from the former by wrapping. |
protected ByteComparator |
Byte2ShortAVLTreeMap.actualComparator
This map's actual comparator; it may differ from
Byte2ShortAVLTreeMap.storedComparator because it is
always a type-specific comparator, so it could be derived from the former by wrapping. |
protected ByteComparator |
Byte2FloatRBTreeMap.actualComparator
This map's actual comparator; it may differ from
Byte2FloatRBTreeMap.storedComparator because it is
always a type-specific comparator, so it could be derived from the former by wrapping. |
protected ByteComparator |
Byte2LongAVLTreeMap.actualComparator
This map's actual comparator; it may differ from
Byte2LongAVLTreeMap.storedComparator because it is
always a type-specific comparator, so it could be derived from the former by wrapping. |
protected ByteComparator |
ByteAVLTreeSet.actualComparator
This set's actual comparator; it may differ from
ByteAVLTreeSet.storedComparator because it is
always a type-specific comparator, so it could be derived from the former by wrapping. |
protected ByteComparator |
Byte2ReferenceRBTreeMap.actualComparator
This map's actual comparator; it may differ from
Byte2ReferenceRBTreeMap.storedComparator because it is
always a type-specific comparator, so it could be derived from the former by wrapping. |
protected ByteComparator |
Byte2ByteAVLTreeMap.actualComparator
This map's actual comparator; it may differ from
Byte2ByteAVLTreeMap.storedComparator because it is
always a type-specific comparator, so it could be derived from the former by wrapping. |
protected ByteComparator |
Byte2ShortRBTreeMap.actualComparator
This map's actual comparator; it may differ from
Byte2ShortRBTreeMap.storedComparator because it is
always a type-specific comparator, so it could be derived from the former by wrapping. |
protected ByteComparator |
Byte2ReferenceAVLTreeMap.actualComparator
This map's actual comparator; it may differ from
Byte2ReferenceAVLTreeMap.storedComparator because it is
always a type-specific comparator, so it could be derived from the former by wrapping. |
protected ByteComparator |
Byte2CharAVLTreeMap.actualComparator
This map's actual comparator; it may differ from
Byte2CharAVLTreeMap.storedComparator because it is
always a type-specific comparator, so it could be derived from the former by wrapping. |
protected ByteComparator |
Byte2ObjectRBTreeMap.actualComparator
This map's actual comparator; it may differ from
Byte2ObjectRBTreeMap.storedComparator because it is
always a type-specific comparator, so it could be derived from the former by wrapping. |
protected ByteComparator |
Byte2IntAVLTreeMap.actualComparator
This map's actual comparator; it may differ from
Byte2IntAVLTreeMap.storedComparator because it is
always a type-specific comparator, so it could be derived from the former by wrapping. |
protected ByteComparator |
ByteRBTreeSet.actualComparator
This set's actual comparator; it may differ from
ByteRBTreeSet.storedComparator because it is
always a type-specific comparator, so it could be derived from the former by wrapping. |
protected ByteComparator |
Byte2ByteRBTreeMap.actualComparator
This map's actual comparator; it may differ from
Byte2ByteRBTreeMap.storedComparator because it is
always a type-specific comparator, so it could be derived from the former by wrapping. |
protected ByteComparator |
Byte2ObjectAVLTreeMap.actualComparator
This map's actual comparator; it may differ from
Byte2ObjectAVLTreeMap.storedComparator because it is
always a type-specific comparator, so it could be derived from the former by wrapping. |
protected ByteComparator |
Byte2FloatAVLTreeMap.actualComparator
This map's actual comparator; it may differ from
Byte2FloatAVLTreeMap.storedComparator because it is
always a type-specific comparator, so it could be derived from the former by wrapping. |
protected ByteComparator |
Byte2LongRBTreeMap.actualComparator
This map's actual comparator; it may differ from
Byte2LongRBTreeMap.storedComparator because it is
always a type-specific comparator, so it could be derived from the former by wrapping. |
protected ByteComparator |
Byte2DoubleRBTreeMap.actualComparator
This map's actual comparator; it may differ from
Byte2DoubleRBTreeMap.storedComparator because it is
always a type-specific comparator, so it could be derived from the former by wrapping. |
protected ByteComparator |
Byte2IntRBTreeMap.actualComparator
This map's actual comparator; it may differ from
Byte2IntRBTreeMap.storedComparator because it is
always a type-specific comparator, so it could be derived from the former by wrapping. |
protected ByteComparator |
Byte2CharRBTreeMap.actualComparator
This map's actual comparator; it may differ from
Byte2CharRBTreeMap.storedComparator because it is
always a type-specific comparator, so it could be derived from the former by wrapping. |
protected ByteComparator |
Byte2BooleanAVLTreeMap.actualComparator
This map's actual comparator; it may differ from
Byte2BooleanAVLTreeMap.storedComparator because it is
always a type-specific comparator, so it could be derived from the former by wrapping. |
protected ByteComparator |
Byte2BooleanRBTreeMap.actualComparator
This map's actual comparator; it may differ from
Byte2BooleanRBTreeMap.storedComparator because it is
always a type-specific comparator, so it could be derived from the former by wrapping. |
protected ByteComparator |
ByteHeapSemiIndirectPriorityQueue.c
The type-specific comparator used in this queue.
|
protected ByteComparator |
ByteArrayIndirectPriorityQueue.c
The type-specific comparator used in this queue.
|
protected ByteComparator |
ByteHeapPriorityQueue.c
The type-specific comparator used in this queue.
|
protected ByteComparator |
ByteArrayPriorityQueue.c
The type-specific comparator used in this queue.
|
protected ByteComparator |
Byte2DoubleSortedMaps.Singleton.comparator |
protected ByteComparator |
Byte2IntSortedMaps.Singleton.comparator |
protected ByteComparator |
Byte2FloatSortedMaps.Singleton.comparator |
protected ByteComparator |
Byte2LongSortedMaps.Singleton.comparator |
protected ByteComparator |
Byte2ReferenceSortedMaps.Singleton.comparator |
protected ByteComparator |
Byte2ShortSortedMaps.Singleton.comparator |
protected ByteComparator |
Byte2CharSortedMaps.Singleton.comparator |
protected ByteComparator |
Byte2ObjectSortedMaps.Singleton.comparator |
protected ByteComparator |
Byte2ByteSortedMaps.Singleton.comparator |
protected ByteComparator |
Byte2BooleanSortedMaps.Singleton.comparator |
static ByteComparator |
ByteComparators.NATURAL_COMPARATOR |
static ByteComparator |
ByteComparators.OPPOSITE_COMPARATOR |
| Modifier and Type | Method and Description |
|---|---|
static ByteComparator |
ByteComparators.asByteComparator(Comparator<? super Byte> c)
Returns a type-specific comparator that is equivalent to the given comparator.
|
ByteComparator |
Byte2BooleanLinkedOpenHashMap.comparator()
Returns the comparator associated with this sorted set, or null if it uses its keys' natural ordering.
|
ByteComparator |
ByteSortedSets.EmptySet.comparator() |
ByteComparator |
ByteSortedSets.Singleton.comparator() |
ByteComparator |
ByteSortedSets.SynchronizedSortedSet.comparator() |
ByteComparator |
ByteSortedSets.UnmodifiableSortedSet.comparator() |
ByteComparator |
AbstractByte2LongSortedMap.KeySet.comparator() |
ByteComparator |
Byte2DoubleAVLTreeMap.comparator() |
ByteComparator |
Byte2ReferenceSortedMap.comparator()
Returns the comparator associated with this sorted set, or null if it uses its keys' natural ordering.
|
ByteComparator |
Byte2ShortAVLTreeMap.comparator() |
ByteComparator |
AbstractByte2DoubleSortedMap.KeySet.comparator() |
ByteComparator |
Byte2FloatRBTreeMap.comparator() |
ByteComparator |
Byte2ShortLinkedOpenHashMap.comparator()
Returns the comparator associated with this sorted set, or null if it uses its keys' natural ordering.
|
ByteComparator |
ByteHeapSemiIndirectPriorityQueue.comparator() |
ByteComparator |
Byte2LongAVLTreeMap.comparator() |
ByteComparator |
Byte2DoubleSortedMaps.EmptySortedMap.comparator() |
ByteComparator |
Byte2DoubleSortedMaps.Singleton.comparator() |
ByteComparator |
Byte2DoubleSortedMaps.SynchronizedSortedMap.comparator() |
ByteComparator |
Byte2DoubleSortedMaps.UnmodifiableSortedMap.comparator() |
ByteComparator |
Byte2FloatSortedMap.comparator()
Returns the comparator associated with this sorted set, or null if it uses its keys' natural ordering.
|
ByteComparator |
Byte2DoubleLinkedOpenHashMap.comparator()
Returns the comparator associated with this sorted set, or null if it uses its keys' natural ordering.
|
ByteComparator |
AbstractByte2IntSortedMap.KeySet.comparator() |
ByteComparator |
AbstractByte2ReferenceSortedMap.KeySet.comparator() |
ByteComparator |
ByteAVLTreeSet.comparator() |
ByteComparator |
AbstractByte2ShortSortedMap.KeySet.comparator() |
ByteComparator |
Byte2IntSortedMaps.EmptySortedMap.comparator() |
ByteComparator |
Byte2IntSortedMaps.Singleton.comparator() |
ByteComparator |
Byte2IntSortedMaps.SynchronizedSortedMap.comparator() |
ByteComparator |
Byte2IntSortedMaps.UnmodifiableSortedMap.comparator() |
ByteComparator |
Byte2DoubleSortedMap.comparator()
Returns the comparator associated with this sorted set, or null if it uses its keys' natural ordering.
|
ByteComparator |
Byte2ByteLinkedOpenHashMap.comparator()
Returns the comparator associated with this sorted set, or null if it uses its keys' natural ordering.
|
ByteComparator |
BytePriorityQueues.SynchronizedPriorityQueue.comparator() |
ByteComparator |
Byte2LongSortedMap.comparator()
Returns the comparator associated with this sorted set, or null if it uses its keys' natural ordering.
|
ByteComparator |
Byte2FloatSortedMaps.EmptySortedMap.comparator() |
ByteComparator |
Byte2FloatSortedMaps.Singleton.comparator() |
ByteComparator |
Byte2FloatSortedMaps.SynchronizedSortedMap.comparator() |
ByteComparator |
Byte2FloatSortedMaps.UnmodifiableSortedMap.comparator() |
ByteComparator |
ByteArrayFIFOQueue.comparator()
Returns the comparator associated with this priority queue, or null if it uses its elements' natural ordering.
|
ByteComparator |
Byte2ReferenceRBTreeMap.comparator() |
ByteComparator |
Byte2ByteAVLTreeMap.comparator() |
ByteComparator |
Byte2BooleanSortedMap.comparator()
Returns the comparator associated with this sorted set, or null if it uses its keys' natural ordering.
|
ByteComparator |
Byte2ShortRBTreeMap.comparator() |
ByteComparator |
Byte2ReferenceAVLTreeMap.comparator() |
ByteComparator |
Byte2CharAVLTreeMap.comparator() |
ByteComparator |
Byte2IntSortedMap.comparator()
Returns the comparator associated with this sorted set, or null if it uses its keys' natural ordering.
|
ByteComparator |
Byte2LongSortedMaps.EmptySortedMap.comparator() |
ByteComparator |
Byte2LongSortedMaps.Singleton.comparator() |
ByteComparator |
Byte2LongSortedMaps.SynchronizedSortedMap.comparator() |
ByteComparator |
Byte2LongSortedMaps.UnmodifiableSortedMap.comparator() |
ByteComparator |
Byte2CharSortedMap.comparator()
Returns the comparator associated with this sorted set, or null if it uses its keys' natural ordering.
|
ByteComparator |
ByteSortedSet.comparator() |
ByteComparator |
Byte2ShortSortedMap.comparator()
Returns the comparator associated with this sorted set, or null if it uses its keys' natural ordering.
|
ByteComparator |
ByteArrayIndirectPriorityQueue.comparator() |
ByteComparator |
Byte2ReferenceLinkedOpenHashMap.comparator()
Returns the comparator associated with this sorted set, or null if it uses its keys' natural ordering.
|
ByteComparator |
ByteLinkedOpenHashSet.comparator() |
ByteComparator |
Byte2ReferenceSortedMaps.EmptySortedMap.comparator() |
ByteComparator |
Byte2ReferenceSortedMaps.Singleton.comparator() |
ByteComparator |
Byte2ReferenceSortedMaps.SynchronizedSortedMap.comparator() |
ByteComparator |
Byte2ReferenceSortedMaps.UnmodifiableSortedMap.comparator() |
ByteComparator |
BytePriorityQueue.comparator()
Returns the comparator associated with this priority queue, or null if it uses its elements' natural ordering.
|
ByteComparator |
Byte2ByteSortedMap.comparator()
Returns the comparator associated with this sorted set, or null if it uses its keys' natural ordering.
|
ByteComparator |
AbstractByte2ObjectSortedMap.KeySet.comparator() |
ByteComparator |
Byte2IntLinkedOpenHashMap.comparator()
Returns the comparator associated with this sorted set, or null if it uses its keys' natural ordering.
|
ByteComparator |
ByteHeapPriorityQueue.comparator() |
ByteComparator |
Byte2ShortSortedMaps.EmptySortedMap.comparator() |
ByteComparator |
Byte2ShortSortedMaps.Singleton.comparator() |
ByteComparator |
Byte2ShortSortedMaps.SynchronizedSortedMap.comparator() |
ByteComparator |
Byte2ShortSortedMaps.UnmodifiableSortedMap.comparator() |
ByteComparator |
Byte2ObjectRBTreeMap.comparator() |
ByteComparator |
ByteIndirectPriorityQueue.comparator()
Returns the type-specific comparator associated with this queue.
|
ByteComparator |
AbstractByte2FloatSortedMap.KeySet.comparator() |
ByteComparator |
Byte2CharSortedMaps.EmptySortedMap.comparator() |
ByteComparator |
Byte2CharSortedMaps.Singleton.comparator() |
ByteComparator |
Byte2CharSortedMaps.SynchronizedSortedMap.comparator() |
ByteComparator |
Byte2CharSortedMaps.UnmodifiableSortedMap.comparator() |
ByteComparator |
Byte2IntAVLTreeMap.comparator() |
ByteComparator |
ByteRBTreeSet.comparator() |
ByteComparator |
Byte2FloatLinkedOpenHashMap.comparator()
Returns the comparator associated with this sorted set, or null if it uses its keys' natural ordering.
|
ByteComparator |
AbstractByte2ByteSortedMap.KeySet.comparator() |
ByteComparator |
ByteArrayPriorityQueue.comparator() |
ByteComparator |
Byte2ByteRBTreeMap.comparator() |
ByteComparator |
Byte2ObjectAVLTreeMap.comparator() |
ByteComparator |
Byte2FloatAVLTreeMap.comparator() |
ByteComparator |
AbstractByte2CharSortedMap.KeySet.comparator() |
ByteComparator |
Byte2ObjectSortedMaps.EmptySortedMap.comparator() |
ByteComparator |
Byte2ObjectSortedMaps.Singleton.comparator() |
ByteComparator |
Byte2ObjectSortedMaps.SynchronizedSortedMap.comparator() |
ByteComparator |
Byte2ObjectSortedMaps.UnmodifiableSortedMap.comparator() |
ByteComparator |
Byte2ByteSortedMaps.EmptySortedMap.comparator() |
ByteComparator |
Byte2ByteSortedMaps.Singleton.comparator() |
ByteComparator |
Byte2ByteSortedMaps.SynchronizedSortedMap.comparator() |
ByteComparator |
Byte2ByteSortedMaps.UnmodifiableSortedMap.comparator() |
ByteComparator |
Byte2LongRBTreeMap.comparator() |
ByteComparator |
AbstractByte2BooleanSortedMap.KeySet.comparator() |
ByteComparator |
Byte2DoubleRBTreeMap.comparator() |
ByteComparator |
Byte2IntRBTreeMap.comparator() |
ByteComparator |
Byte2CharRBTreeMap.comparator() |
ByteComparator |
Byte2CharLinkedOpenHashMap.comparator()
Returns the comparator associated with this sorted set, or null if it uses its keys' natural ordering.
|
ByteComparator |
Byte2LongLinkedOpenHashMap.comparator()
Returns the comparator associated with this sorted set, or null if it uses its keys' natural ordering.
|
ByteComparator |
Byte2BooleanAVLTreeMap.comparator() |
ByteComparator |
Byte2BooleanSortedMaps.EmptySortedMap.comparator() |
ByteComparator |
Byte2BooleanSortedMaps.Singleton.comparator() |
ByteComparator |
Byte2BooleanSortedMaps.SynchronizedSortedMap.comparator() |
ByteComparator |
Byte2BooleanSortedMaps.UnmodifiableSortedMap.comparator() |
ByteComparator |
Byte2BooleanRBTreeMap.comparator() |
ByteComparator |
Byte2ObjectSortedMap.comparator()
Returns the comparator associated with this sorted set, or null if it uses its keys' natural ordering.
|
ByteComparator |
Byte2ObjectLinkedOpenHashMap.comparator()
Returns the comparator associated with this sorted set, or null if it uses its keys' natural ordering.
|
ByteComparator |
ByteLinkedOpenCustomHashSet.comparator() |
static ByteComparator |
ByteComparators.oppositeComparator(ByteComparator c)
Returns a comparator representing the opposite order of the given comparator.
|
ByteComparator |
ByteComparators.NaturalImplicitComparator.reversed() |
ByteComparator |
ByteComparators.OppositeImplicitComparator.reversed() |
ByteComparator |
ByteComparators.OppositeComparator.reversed() |
default ByteComparator |
ByteComparator.reversed() |
default ByteComparator |
ByteComparator.thenComparing(ByteComparator 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 |
ByteBigArrays.binarySearch(byte[][] a,
byte key,
ByteComparator c)
Searches a big array for the specified value using
the binary search algorithm and a specified comparator.
|
static long |
ByteBigArrays.binarySearch(byte[][] a,
long from,
long to,
byte key,
ByteComparator c)
Searches a range of the specified big array for the specified value using
the binary search algorithm and a specified comparator.
|
static int |
ByteArrays.binarySearch(byte[] a,
byte key,
ByteComparator c)
Searches an array for the specified value using
the binary search algorithm and a specified comparator.
|
static int |
ByteArrays.binarySearch(byte[] a,
int from,
int to,
byte key,
ByteComparator c)
Searches a range of the specified array for the specified value using
the binary search algorithm and a specified comparator.
|
static int |
ByteIndirectHeaps.downHeap(byte[] refArray,
int[] heap,
int[] inv,
int size,
int i,
ByteComparator c)
Moves the given element down into the indirect heap until it reaches the lowest possible position.
|
static int |
ByteSemiIndirectHeaps.downHeap(byte[] refArray,
int[] heap,
int size,
int i,
ByteComparator c)
Moves the given element down into the semi-indirect heap until it reaches the lowest possible position.
|
static int |
ByteHeaps.downHeap(byte[] heap,
int size,
int i,
ByteComparator c)
Moves the given element down into the heap until it reaches the lowest possible position.
|
static Comparator<? super Map.Entry<Byte,?>> |
Byte2DoubleSortedMaps.entryComparator(ByteComparator comparator)
Returns a comparator for entries based on a given comparator on keys.
|
static Comparator<? super Map.Entry<Byte,?>> |
Byte2IntSortedMaps.entryComparator(ByteComparator comparator)
Returns a comparator for entries based on a given comparator on keys.
|
static Comparator<? super Map.Entry<Byte,?>> |
Byte2FloatSortedMaps.entryComparator(ByteComparator comparator)
Returns a comparator for entries based on a given comparator on keys.
|
static Comparator<? super Map.Entry<Byte,?>> |
Byte2LongSortedMaps.entryComparator(ByteComparator comparator)
Returns a comparator for entries based on a given comparator on keys.
|
static Comparator<? super Map.Entry<Byte,?>> |
Byte2ReferenceSortedMaps.entryComparator(ByteComparator comparator)
Returns a comparator for entries based on a given comparator on keys.
|
static Comparator<? super Map.Entry<Byte,?>> |
Byte2ShortSortedMaps.entryComparator(ByteComparator comparator)
Returns a comparator for entries based on a given comparator on keys.
|
static Comparator<? super Map.Entry<Byte,?>> |
Byte2CharSortedMaps.entryComparator(ByteComparator comparator)
Returns a comparator for entries based on a given comparator on keys.
|
static Comparator<? super Map.Entry<Byte,?>> |
Byte2ObjectSortedMaps.entryComparator(ByteComparator comparator)
Returns a comparator for entries based on a given comparator on keys.
|
static Comparator<? super Map.Entry<Byte,?>> |
Byte2ByteSortedMaps.entryComparator(ByteComparator comparator)
Returns a comparator for entries based on a given comparator on keys.
|
static Comparator<? super Map.Entry<Byte,?>> |
Byte2BooleanSortedMaps.entryComparator(ByteComparator comparator)
Returns a comparator for entries based on a given comparator on keys.
|
static int |
ByteSemiIndirectHeaps.front(byte[] refArray,
int[] heap,
int size,
int[] a,
ByteComparator c)
Retrieves the front of a heap in a given array using a given comparator.
|
static void |
ByteIndirectHeaps.makeHeap(byte[] refArray,
int[] heap,
int[] inv,
int size,
ByteComparator c)
Creates an indirect heap from a given index array.
|
static void |
ByteSemiIndirectHeaps.makeHeap(byte[] refArray,
int[] heap,
int size,
ByteComparator c)
Creates a semi-indirect heap from a given index array.
|
static void |
ByteHeaps.makeHeap(byte[] heap,
int size,
ByteComparator c)
Makes an array into a heap.
|
static int[] |
ByteSemiIndirectHeaps.makeHeap(byte[] refArray,
int offset,
int length,
ByteComparator c)
Creates a semi-indirect heap, allocating its heap array.
|
static void |
ByteSemiIndirectHeaps.makeHeap(byte[] refArray,
int offset,
int length,
int[] heap,
ByteComparator c)
Creates a semi-indirect heap in the given array.
|
static void |
ByteIndirectHeaps.makeHeap(byte[] refArray,
int offset,
int length,
int[] heap,
int[] inv,
ByteComparator c)
Creates an indirect heap in the given array.
|
static void |
ByteArrays.mergeSort(byte[] a,
ByteComparator comp)
Sorts an array according to the order induced by the specified
comparator using mergesort.
|
static void |
ByteArrays.mergeSort(byte[] a,
int from,
int to,
ByteComparator comp)
Sorts the specified range of elements according to the order induced by the specified
comparator using mergesort.
|
static void |
ByteArrays.mergeSort(byte[] a,
int from,
int to,
ByteComparator comp,
byte[] 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 ByteComparator |
ByteComparators.oppositeComparator(ByteComparator c)
Returns a comparator representing the opposite order of the given comparator.
|
static void |
ByteArrays.parallelQuickSort(byte[] x,
ByteComparator comp)
Sorts an array according to the order induced by the specified
comparator using a parallel quicksort.
|
static void |
ByteArrays.parallelQuickSort(byte[] x,
int from,
int to,
ByteComparator comp)
Sorts the specified range of elements according to the order induced by the specified
comparator using a parallel quicksort.
|
static void |
ByteBigArrays.quickSort(byte[][] x,
ByteComparator comp)
Sorts the specified big array according to the order induced by the specified
comparator using quicksort.
|
static void |
ByteBigArrays.quickSort(byte[][] x,
long from,
long to,
ByteComparator comp)
Sorts the specified range of elements according to the order induced by the specified
comparator using quicksort.
|
static void |
ByteArrays.quickSort(byte[] x,
ByteComparator comp)
Sorts an array according to the order induced by the specified
comparator using quicksort.
|
static void |
ByteArrays.quickSort(byte[] x,
int from,
int to,
ByteComparator comp)
Sorts the specified range of elements according to the order induced by the specified
comparator using quicksort.
|
static Byte2BooleanSortedMap |
Byte2BooleanSortedMaps.singleton(byte key,
boolean value,
ByteComparator comparator)
Returns a type-specific immutable sorted map containing only the specified pair.
|
static Byte2BooleanSortedMap |
Byte2BooleanSortedMaps.singleton(Byte key,
Boolean value,
ByteComparator comparator)
RETURNS a type-specific immutable sorted map containing only the specified pair.
|
static Byte2ByteSortedMap |
Byte2ByteSortedMaps.singleton(byte key,
byte value,
ByteComparator comparator)
Returns a type-specific immutable sorted map containing only the specified pair.
|
static Byte2ByteSortedMap |
Byte2ByteSortedMaps.singleton(Byte key,
Byte value,
ByteComparator comparator)
RETURNS a type-specific immutable sorted map containing only the specified pair.
|
static ByteSortedSet |
ByteSortedSets.singleton(byte element,
ByteComparator comparator)
Returns a type-specific immutable sorted set containing only the specified element, and using a specified comparator.
|
static Byte2CharSortedMap |
Byte2CharSortedMaps.singleton(Byte key,
Character value,
ByteComparator comparator)
RETURNS a type-specific immutable sorted map containing only the specified pair.
|
static Byte2CharSortedMap |
Byte2CharSortedMaps.singleton(byte key,
char value,
ByteComparator comparator)
Returns a type-specific immutable sorted map containing only the specified pair.
|
static Byte2DoubleSortedMap |
Byte2DoubleSortedMaps.singleton(byte key,
double value,
ByteComparator comparator)
Returns a type-specific immutable sorted map containing only the specified pair.
|
static Byte2DoubleSortedMap |
Byte2DoubleSortedMaps.singleton(Byte key,
Double value,
ByteComparator comparator)
RETURNS a type-specific immutable sorted map containing only the specified pair.
|
static Byte2FloatSortedMap |
Byte2FloatSortedMaps.singleton(byte key,
float value,
ByteComparator comparator)
Returns a type-specific immutable sorted map containing only the specified pair.
|
static Byte2FloatSortedMap |
Byte2FloatSortedMaps.singleton(Byte key,
Float value,
ByteComparator comparator)
RETURNS a type-specific immutable sorted map containing only the specified pair.
|
static Byte2IntSortedMap |
Byte2IntSortedMaps.singleton(byte key,
int value,
ByteComparator comparator)
Returns a type-specific immutable sorted map containing only the specified pair.
|
static Byte2IntSortedMap |
Byte2IntSortedMaps.singleton(Byte key,
Integer value,
ByteComparator comparator)
RETURNS a type-specific immutable sorted map containing only the specified pair.
|
static Byte2LongSortedMap |
Byte2LongSortedMaps.singleton(byte key,
long value,
ByteComparator comparator)
Returns a type-specific immutable sorted map containing only the specified pair.
|
static Byte2LongSortedMap |
Byte2LongSortedMaps.singleton(Byte key,
Long value,
ByteComparator comparator)
RETURNS a type-specific immutable sorted map containing only the specified pair.
|
static Byte2ShortSortedMap |
Byte2ShortSortedMaps.singleton(byte key,
short value,
ByteComparator comparator)
Returns a type-specific immutable sorted map containing only the specified pair.
|
static Byte2ShortSortedMap |
Byte2ShortSortedMaps.singleton(Byte key,
Short value,
ByteComparator comparator)
RETURNS a type-specific immutable sorted map containing only the specified pair.
|
static <V> Byte2ReferenceSortedMap<V> |
Byte2ReferenceSortedMaps.singleton(byte key,
V value,
ByteComparator comparator)
Returns a type-specific immutable sorted map containing only the specified pair.
|
static <V> Byte2ObjectSortedMap<V> |
Byte2ObjectSortedMaps.singleton(byte key,
V value,
ByteComparator comparator)
Returns a type-specific immutable sorted map containing only the specified pair.
|
static <V> Byte2ReferenceSortedMap<V> |
Byte2ReferenceSortedMaps.singleton(Byte key,
V value,
ByteComparator comparator)
RETURNS a type-specific immutable sorted map containing only the specified pair.
|
static <V> Byte2ObjectSortedMap<V> |
Byte2ObjectSortedMaps.singleton(Byte key,
V value,
ByteComparator comparator)
RETURNS a type-specific immutable sorted map containing only the specified pair.
|
static ByteSortedSet |
ByteSortedSets.singleton(Object element,
ByteComparator comparator)
Returns a type-specific immutable sorted set containing only the specified element, and using a specified comparator.
|
default void |
ByteList.sort(ByteComparator comparator)
Sort a list using a type-specific comparator.
|
void |
ByteLists.EmptyList.sort(ByteComparator comparator) |
void |
ByteLists.Singleton.sort(ByteComparator comparator) |
void |
ByteLists.SynchronizedList.sort(ByteComparator comparator) |
void |
ByteLists.UnmodifiableList.sort(ByteComparator comparator) |
void |
ByteArrayList.sort(ByteComparator comp) |
static void |
ByteArrays.stableSort(byte[] a,
ByteComparator 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 |
ByteArrays.stableSort(byte[] a,
int from,
int to,
ByteComparator 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 ByteComparator |
ByteComparator.thenComparing(ByteComparator 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 |
ByteArrays.unstableSort(byte[] a,
ByteComparator 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 |
ByteArrays.unstableSort(byte[] a,
int from,
int to,
ByteComparator 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 void |
ByteList.unstableSort(ByteComparator comparator)
Sorts this list using a sort not assured to be stable.
|
void |
ByteLists.EmptyList.unstableSort(ByteComparator comparator) |
void |
ByteLists.Singleton.unstableSort(ByteComparator comparator) |
void |
ByteLists.SynchronizedList.unstableSort(ByteComparator comparator) |
void |
ByteLists.UnmodifiableList.unstableSort(ByteComparator comparator) |
void |
ByteArrayList.unstableSort(ByteComparator comp) |
static int |
ByteIndirectHeaps.upHeap(byte[] refArray,
int[] heap,
int[] inv,
int size,
int i,
ByteComparator c)
Moves the given element up in the indirect heap until it reaches the highest possible position.
|
static int |
ByteSemiIndirectHeaps.upHeap(byte[] refArray,
int[] heap,
int size,
int i,
ByteComparator c)
Moves the given element up in the semi-indirect heap until it reaches the highest possible position.
|
static int |
ByteHeaps.upHeap(byte[] heap,
int size,
int i,
ByteComparator c)
Moves the given element up in the heap until it reaches the highest possible position.
|
| Constructor and Description |
|---|
ByteArrayIndirectPriorityQueue(byte[] refArray,
ByteComparator c)
Creates a new empty queue with capacity equal to the length of the reference array and a given comparator.
|
ByteArrayIndirectPriorityQueue(byte[] refArray,
int[] a,
ByteComparator c)
Wraps a given array in a queue using a given comparator.
|
ByteArrayIndirectPriorityQueue(byte[] refArray,
int[] a,
int size,
ByteComparator c)
Wraps a given array in a queue using a given comparator.
|
ByteArrayIndirectPriorityQueue(byte[] refArray,
int capacity,
ByteComparator c)
Creates a new empty queue without elements with a given capacity and comparator.
|
ByteArrayPriorityQueue(byte[] a,
ByteComparator c)
Wraps a given array in a queue using a given comparator.
|
ByteArrayPriorityQueue(byte[] a,
int size,
ByteComparator c)
Wraps a given array in a queue using a given comparator.
|
ByteArrayPriorityQueue(ByteComparator c)
Creates a new empty queue with a given comparator.
|
ByteArrayPriorityQueue(int capacity,
ByteComparator c)
Creates a new empty queue with a given capacity and comparator.
|
ByteHeapIndirectPriorityQueue(byte[] refArray,
ByteComparator c)
Creates a new empty queue with capacity equal to the length of the reference array and a given comparator.
|
ByteHeapIndirectPriorityQueue(byte[] refArray,
int[] a,
ByteComparator c)
Wraps a given array in a queue using a given comparator.
|
ByteHeapIndirectPriorityQueue(byte[] refArray,
int[] a,
int size,
ByteComparator c)
Wraps a given array in a queue using a given comparator.
|
ByteHeapIndirectPriorityQueue(byte[] refArray,
int capacity,
ByteComparator c)
Creates a new empty queue with a given capacity and comparator.
|
ByteHeapPriorityQueue(byte[] a,
ByteComparator c)
Wraps a given array in a queue using a given comparator.
|
ByteHeapPriorityQueue(byte[] a,
int size,
ByteComparator c)
Wraps a given array in a queue using a given comparator.
|
ByteHeapPriorityQueue(ByteCollection collection,
ByteComparator c)
Creates a queue using the elements in a type-specific collection using a given comparator.
|
ByteHeapPriorityQueue(ByteComparator c)
Creates a new empty queue with a given comparator.
|
ByteHeapPriorityQueue(Collection<? extends Byte> collection,
ByteComparator c)
Creates a queue using the elements in a collection using a given comparator.
|
ByteHeapPriorityQueue(int capacity,
ByteComparator c)
Creates a new empty queue with a given capacity and comparator.
|
ByteHeapSemiIndirectPriorityQueue(byte[] refArray,
ByteComparator c)
Creates a new empty queue with capacity equal to the length of the reference array and a given comparator.
|
ByteHeapSemiIndirectPriorityQueue(byte[] refArray,
int[] a,
ByteComparator c)
Wraps a given array in a queue using a given comparator.
|
ByteHeapSemiIndirectPriorityQueue(byte[] refArray,
int[] a,
int size,
ByteComparator c)
Wraps a given array in a queue using a given comparator.
|
ByteHeapSemiIndirectPriorityQueue(byte[] refArray,
int capacity,
ByteComparator c)
Creates a new empty queue without elements with a given capacity and comparator.
|
ForkJoinQuickSortComp(byte[] x,
int from,
int to,
ByteComparator comp) |
OppositeComparator(ByteComparator c) |
Singleton(byte key,
boolean value,
ByteComparator comparator) |
Singleton(byte key,
byte value,
ByteComparator comparator) |
Singleton(byte element,
ByteComparator comparator) |
Singleton(byte key,
char value,
ByteComparator comparator) |
Singleton(byte key,
double value,
ByteComparator comparator) |
Singleton(byte key,
float value,
ByteComparator comparator) |
Singleton(byte key,
int value,
ByteComparator comparator) |
Singleton(byte key,
long value,
ByteComparator comparator) |
Singleton(byte key,
short value,
ByteComparator comparator) |
Singleton(byte key,
V value,
ByteComparator comparator) |
Singleton(byte key,
V value,
ByteComparator comparator) |
Copyright © 2020. All rights reserved.