public interface ByteList extends ByteCollection, java.util.List<java.lang.Byte>
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(byte e)
A Type-Specific add Function to reduce (un)boxing
|
default boolean |
add(java.lang.Byte e)
Deprecated.
Please use the corresponding type-specific function instead.
|
void |
add(int index,
byte e)
A Type-Specific add Function to reduce (un)boxing
|
boolean |
addAll(ByteList c)
A Type-Specific and optimized addAll function that allows a faster transfer of elements
|
boolean |
addAll(int index,
ByteCollection c)
A Type-Specific addAll Function to reduce (un)boxing
|
boolean |
addAll(int index,
ByteList c)
A Type-Specific and optimized addAll function that allows a faster transfer of elements
|
default void |
addElements(byte... a)
A function to fast add elements to the list
|
default void |
addElements(int from,
byte... a)
A function to fast add elements to the list
|
void |
addElements(int from,
byte[] a,
int offset,
int length)
A function to fast add elements to the list
|
default boolean |
addIfAbsent(byte e)
A Helper function that will only add elements if it is not present.
|
default boolean |
addIfPresent(byte e)
A Helper function that will only add elements if it is present.
|
default boolean |
contains(java.lang.Object o)
Deprecated.
Please use the corresponding type-specific function instead.
|
ByteList |
copy()
A Function that does a shallow clone of the Collection itself.
|
byte[] |
extractElements(int from,
int to)
A function to fast extract elements out of the list, this removes the elements that were fetched.
|
default void |
fillBuffer(java.nio.ByteBuffer buffer)
Helper function that allows to fastFill a buffer reducing the duplication requirement
|
default java.lang.Byte |
get(int index)
Deprecated.
Please use the corresponding type-specific function instead.
|
byte |
getByte(int index)
A Type-Specific get function to reduce (un)boxing
|
default byte[] |
getElements(int from,
byte[] a)
A function to fast fetch elements from the list
|
byte[] |
getElements(int from,
byte[] a,
int offset,
int length)
A function to fast fetch elements from the list
|
int |
indexOf(byte e)
A Type-Specific indexOf function to reduce (un)boxing
|
default int |
indexOf(java.lang.Object o)
Deprecated.
Please use the corresponding type-specific function instead.
|
int |
lastIndexOf(byte e)
A Type-Specific lastIndexOf function to reduce (un)boxing
|
default int |
lastIndexOf(java.lang.Object o)
Deprecated.
Please use the corresponding type-specific function instead.
|
ByteListIterator |
listIterator()
A Type-Specific Iterator of listIterator
|
ByteListIterator |
listIterator(int index)
A Type-Specific Iterator of listIterator
|
default java.lang.Byte |
remove(int index)
Deprecated.
Please use the corresponding type-specific function instead.
|
default boolean |
remove(java.lang.Object o)
Deprecated.
Please use the corresponding type-specific function instead.
|
byte |
removeByte(int index)
A Type-Specific remove function to reduce (un)boxing
|
void |
removeElements(int from,
int to)
a function to fast remove elements from the list.
|
default void |
replaceAll(java.util.function.UnaryOperator<java.lang.Byte> o)
Deprecated.
Please use the corresponding type-specific function instead.
|
default void |
replaceBytes(java.util.function.IntUnaryOperator o)
A Type-Specific replace function to reduce (un)boxing
|
byte |
set(int index,
byte e)
A Type-Specific set function to reduce (un)boxing
|
default java.lang.Byte |
set(int index,
java.lang.Byte e)
Deprecated.
Please use the corresponding type-specific function instead.
|
void |
size(int size)
A function to ensure the elements are within the requested size.
|
default void |
sort(ByteComparator c)
Sorts the elements specified by the Natural order either by using the Comparator or the elements
|
default void |
sort(java.util.Comparator<? super java.lang.Byte> c)
Deprecated.
Please use the corresponding type-specific function instead.
|
default ByteSplititerator |
spliterator()
A Type Specific Type Splititerator to reduce boxing/unboxing
|
ByteList |
subList(int from,
int to)
A Type-Specific List of subList
|
byte |
swapRemove(int index)
A Highly Optimized remove function that removes the desired element.
|
boolean |
swapRemoveByte(byte e)
A Highly Optimized remove function that removes the desired element.
|
default ByteList |
synchronize()
Creates a Wrapped List that is Synchronized
|
default ByteList |
synchronize(java.lang.Object mutex)
Creates a Wrapped List that is Synchronized
|
default ByteList |
unmodifiable()
Creates a Wrapped List that is unmodifiable
|
default void |
unstableSort(ByteComparator c)
Sorts the elements specified by the Natural order either by using the Comparator or the elements using a unstable sort
|
default void |
unstableSort(java.util.Comparator<? super java.lang.Byte> c)
Deprecated.
Please use the corresponding type-specific function instead.
|
addAll, addAll, addAll, addAll, contains, containsAll, containsAny, containsAny, iterator, parallelPrimitiveStream, pour, primitiveStream, remByte, remIf, removeAll, removeAll, removeIf, retainAll, retainAll, toByteArray, toByteArrayarrayflatMap, asAsync, count, distinct, filter, findFirst, flatMap, forEach, forEach, forEach, limit, map, matchesAll, matchesAny, matchesNone, peek, pourAsList, pourAsSet, reduce, reduce, sortedboolean add(byte e)
add in interface ByteCollectione - the element to addList.add(Object)void add(int index,
byte e)
e - the element to addindex - index at which the specified element is to be insertedList.add(int, Object)default boolean addIfAbsent(byte e)
e - the element to adddefault boolean addIfPresent(byte e)
e - the element to addboolean addAll(int index,
ByteCollection c)
c - the elements that need to be addedindex - index at which the specified elements is to be insertedList.addAll(int, java.util.Collection)boolean addAll(ByteList c)
c - the elements that need to be addedboolean addAll(int index,
ByteList c)
c - the elements that need to be addedindex - index at which the specified elements is to be insertedbyte getByte(int index)
index - the index of the value that is requestedjava.lang.IndexOutOfBoundsException - if the index is not within the list rangeList.get(int)byte set(int index,
byte e)
index - index of the element to replacee - element to be stored at the specified positionjava.lang.IndexOutOfBoundsException - if the index is not within the list rangeList.set(int, Object)byte removeByte(int index)
index - the index of the element to be removedList.remove(int)int indexOf(byte e)
e - the element that is searched forint lastIndexOf(byte e)
e - the element that is searched fordefault void replaceBytes(java.util.function.IntUnaryOperator o)
o - the action to replace the valuesjava.lang.NullPointerException - if o is nulldefault void addElements(byte... a)
a - the elements that should be addedjava.lang.IndexOutOfBoundsException - if from is outside of the lists rangedefault void addElements(int from,
byte... a)
from - the index where the elements should be added into the lista - the elements that should be addedjava.lang.IndexOutOfBoundsException - if from is outside of the lists rangevoid addElements(int from,
byte[] a,
int offset,
int length)
from - the index where the elements should be added into the lista - the elements that should be addedoffset - the start index of the array should be read fromlength - how many elements should be read fromjava.lang.IndexOutOfBoundsException - if from is outside of the lists rangedefault byte[] getElements(int from,
byte[] a)
from - index where the list should be fetching elements froma - the array where the values should be inserted tojava.lang.NullPointerException - if the array is nulljava.lang.IndexOutOfBoundsException - if from is outside of the lists rangejava.lang.IllegalStateException - if offset or length are smaller then 0 or exceed the array lengthbyte[] getElements(int from,
byte[] a,
int offset,
int length)
from - index where the list should be fetching elements froma - the array where the values should be inserted tooffset - the startIndex of where the array should be written tolength - the number of elements the values should be fetched fromjava.lang.NullPointerException - if the array is nulljava.lang.IndexOutOfBoundsException - if from is outside of the lists rangejava.lang.IllegalStateException - if offset or length are smaller then 0 or exceed the array lengthvoid removeElements(int from,
int to)
from - the start index of where the elements should be removed from (inclusive)to - the end index of where the elements should be removed to (exclusive)byte swapRemove(int index)
index - the index of the element to be removedboolean swapRemoveByte(byte e)
e - the element that should be removedbyte[] extractElements(int from,
int to)
from - the start index of where the elements should be fetched from (inclusive)to - the end index of where the elements should be fetched to (exclusive)default void fillBuffer(java.nio.ByteBuffer buffer)
buffer - where the data should be stored in.@Deprecated default void sort(java.util.Comparator<? super java.lang.Byte> c)
This default implementation delegates to the corresponding type-specific function.
sort in interface java.util.List<java.lang.Byte>default void sort(ByteComparator c)
c - the sorter of the elements, can be nullList.sort(Comparator),
ByteArrays.stableSort(byte[], ByteComparator)@Deprecated default void unstableSort(java.util.Comparator<? super java.lang.Byte> c)
This default implementation delegates to the corresponding type-specific function.
c - the sorter of the elements, can be nulldefault void unstableSort(ByteComparator c)
c - the sorter of the elements, can be nullList.sort(Comparator),
ByteArrays.unstableSort(byte[], ByteComparator)ByteListIterator listIterator()
listIterator in interface java.util.List<java.lang.Byte>List.listIterator()ByteListIterator listIterator(int index)
listIterator in interface java.util.List<java.lang.Byte>List.listIterator(int)ByteList subList(int from, int to)
subList in interface java.util.List<java.lang.Byte>List.subList(int, int)default ByteList synchronize()
synchronize in interface ByteCollectionByteLists.synchronize(speiger.src.collections.bytes.lists.ByteList)default ByteList synchronize(java.lang.Object mutex)
synchronize in interface ByteCollectionmutex - is the controller of the synchronization blockByteLists.synchronize(speiger.src.collections.bytes.lists.ByteList)default ByteList unmodifiable()
unmodifiable in interface ByteCollectionByteLists.unmodifiable(speiger.src.collections.bytes.lists.ByteList)void size(int size)
size - the requested amount of elements/room for elementsByteList copy()
ByteCollectioncopy in interface ByteCollection@Deprecated default boolean add(java.lang.Byte e)
This default implementation delegates to the corresponding type-specific function.
This default implementation delegates to the corresponding type-specific function.
add in interface ByteCollectionadd in interface java.util.Collection<java.lang.Byte>add in interface java.util.List<java.lang.Byte>@Deprecated default java.lang.Byte get(int index)
This default implementation delegates to the corresponding type-specific function.
get in interface java.util.List<java.lang.Byte>@Deprecated
default java.lang.Byte set(int index,
java.lang.Byte e)
This default implementation delegates to the corresponding type-specific function.
set in interface java.util.List<java.lang.Byte>@Deprecated default int indexOf(java.lang.Object o)
This default implementation delegates to the corresponding type-specific function.
indexOf in interface java.util.List<java.lang.Byte>@Deprecated default int lastIndexOf(java.lang.Object o)
This default implementation delegates to the corresponding type-specific function.
lastIndexOf in interface java.util.List<java.lang.Byte>@Deprecated default boolean contains(java.lang.Object o)
This default implementation delegates to the corresponding type-specific function.
This default implementation delegates to the corresponding type-specific function.
contains in interface ByteCollectioncontains in interface java.util.Collection<java.lang.Byte>contains in interface java.util.List<java.lang.Byte>@Deprecated default boolean remove(java.lang.Object o)
This default implementation delegates to the corresponding type-specific function.
This default implementation delegates to the corresponding type-specific function.
remove in interface ByteCollectionremove in interface java.util.Collection<java.lang.Byte>remove in interface java.util.List<java.lang.Byte>@Deprecated default java.lang.Byte remove(int index)
This default implementation delegates to the corresponding type-specific function.
remove in interface java.util.List<java.lang.Byte>@Deprecated default void replaceAll(java.util.function.UnaryOperator<java.lang.Byte> o)
This default implementation delegates to the corresponding type-specific function.
replaceAll in interface java.util.List<java.lang.Byte>default ByteSplititerator spliterator()
spliterator in interface ByteCollectionspliterator in interface ByteIterablespliterator in interface java.util.Collection<java.lang.Byte>spliterator in interface java.lang.Iterable<java.lang.Byte>spliterator in interface java.util.List<java.lang.Byte>