- Alle Superschnittstellen:
ByteCollection,ByteIterable,Collection<Byte>,ISizeProvider,Iterable<Byte>,List<Byte>
- Alle bekannten Implementierungsklassen:
AbstractByteList,ByteArrayList,ByteLinkedList,CopyOnWriteByteArrayList,ImmutableByteList
-
Verschachtelte Klassen - Übersicht
Von Schnittstelle geerbte verschachtelte Klassen/Schnittstellen speiger.src.collections.utils.ISizeProvider
ISizeProvider.CollectionSize -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungbooleanadd(byte e) A Type-Specific add Function to reduce (un)boxingvoidadd(int index, byte e) A Type-Specific add Function to reduce (un)boxingdefault booleanVeraltet.Please use the corresponding type-specific function instead.booleanaddAll(int index, ByteCollection c) A Type-Specific addAll Function to reduce (un)boxingbooleanA Type-Specific and optimized addAll function that allows a faster transfer of elementsbooleanA Type-Specific and optimized addAll function that allows a faster transfer of elementsdefault voidaddElements(byte... a) A function to fast add elements to the listdefault voidaddElements(int from, byte... a) A function to fast add elements to the listvoidaddElements(int from, byte[] a, int offset, int length) A function to fast add elements to the listdefault booleanaddIfAbsent(byte e) A Helper function that will only add elements if it is not present.default booleanaddIfPresent(byte e) A Helper function that will only add elements if it is present.default booleanVeraltet.Please use the corresponding type-specific function instead.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 voidfillBuffer(ByteBuffer buffer) Helper function that allows to fastFill a buffer reducing the duplication requirementdefault voidforEachIndexed(IntByteConsumer action) A Indexed forEach implementation that allows you to keep track of how many elements were already iterated over.default Byteget(int index) Veraltet.Please use the corresponding type-specific function instead.bytegetByte(int index) A Type-Specific get function to reduce (un)boxingdefault byte[]getElements(int from, byte[] a) A function to fast fetch elements from the listbyte[]getElements(int from, byte[] a, int offset, int length) A function to fast fetch elements from the listdefault byteHelper method that returns the first element of a List.default byteHelper method that returns the last element of a List.indexedIterator(int... indecies) Creates a Iterator that follows the indecies provided.
For example if the Lists Contents is:
-1, 0 1
and the indecies are:
0, 1, 2, 2, 1, 0
then the iterator will return the following values:
-1, 0, 1, 1, 0, -1indexedIterator(IntList indecies) Creates a Iterator that follows the indecies provided.
For example if the Lists Contents is:
-1, 0 1
and the indecies are:
0, 1, 2, 2, 1, 0
then the iterator will return the following values:
-1, 0, 1, 1, 0, -1intindexOf(byte e) A Type-Specific indexOf function to reduce (un)boxingdefault intVeraltet.Please use the corresponding type-specific function instead.intlastIndexOf(byte e) A Type-Specific lastIndexOf function to reduce (un)boxingdefault intVeraltet.Please use the corresponding type-specific function instead.A Type-Specific Iterator of listIteratorlistIterator(int index) A Type-Specific Iterator of listIteratordefault Byteremove(int index) Veraltet.Please use the corresponding type-specific function instead.default booleanVeraltet.Please use the corresponding type-specific function instead.byteremoveByte(int index) A Type-Specific remove function to reduce (un)boxingvoidremoveElements(int from, int to) a function to fast remove elements from the list.default byteHelper method that removes and returns the first element of a List.default byteHelper method that removes and returns the last element of a List.default voidVeraltet.Please use the corresponding type-specific function instead.default voidA Type-Specific replace function to reduce (un)boxingreversed()A Type-Specific List Helper that shows all elements in reverse.byteset(int index, byte e) A Type-Specific set function to reduce (un)boxingdefault ByteVeraltet.Please use the corresponding type-specific function instead.voidsize(int size) A function to ensure the elements are within the requested size.default voidsort(Comparator<? super Byte> c) Veraltet.Please use the corresponding type-specific function instead.default voidSorts the elements specified by the Natural order either by using the Comparator or the elementsdefault ByteSplititeratorA Type Specific Type Splititerator to reduce boxing/unboxingsubList(int from, int to) A Type-Specific List of subListbyteswapRemove(int index) A Highly Optimized remove function that removes the desired element.booleanswapRemoveByte(byte e) A Highly Optimized remove function that removes the desired element.default ByteListCreates a Wrapped List that is Synchronizeddefault ByteListsynchronize(Object mutex) Creates a Wrapped List that is Synchronizeddefault ByteListCreates a Wrapped List that is unmodifiabledefault voidunstableSort(Comparator<? super Byte> c) Veraltet.Please use the corresponding type-specific function instead.default voidSorts the elements specified by the Natural order either by using the Comparator or the elements using a unstable sortVon Schnittstelle geerbte Methoden speiger.src.collections.bytes.collections.ByteCollection
addAll, addAll, addAll, addAll, contains, containsAll, containsAny, containsAny, iterator, parallelPrimitiveStream, pour, primitiveStream, remByte, remIf, removeAll, removeAll, removeIf, retainAll, retainAll, toByteArray, toByteArrayVon Schnittstelle geerbte Methoden speiger.src.collections.bytes.collections.ByteIterable
arrayflatMap, asAsync, count, distinct, filter, findFirst, flatMap, forEach, forEach, forEach, limit, map, matchesAll, matchesAny, matchesNone, peek, pourAsList, pourAsSet, reduce, reduce, repeat, sortedVon Schnittstelle geerbte Methoden java.util.Collection
parallelStream, stream, toArrayVon Schnittstelle geerbte Methoden speiger.src.collections.utils.ISizeProvider
size
-
Methodendetails
-
add
boolean add(byte e) A Type-Specific add Function to reduce (un)boxing- Angegeben von:
addin SchnittstelleByteCollection- Parameter:
e- the element to add- Gibt zurück:
- true if the list was modified
- Siehe auch:
-
add
void add(int index, byte e) A Type-Specific add Function to reduce (un)boxing- Parameter:
index- index at which the specified element is to be insertede- the element to add- Siehe auch:
-
addIfAbsent
default boolean addIfAbsent(byte e) A Helper function that will only add elements if it is not present.- Parameter:
e- the element to add- Gibt zurück:
- true if the list was modified
-
addIfPresent
default boolean addIfPresent(byte e) A Helper function that will only add elements if it is present.- Parameter:
e- the element to add- Gibt zurück:
- true if the list was modified
-
addAll
A Type-Specific addAll Function to reduce (un)boxing- Parameter:
index- index at which the specified elements is to be insertedc- the elements that need to be added- Gibt zurück:
- true if the list was modified
- Siehe auch:
-
addAll
A Type-Specific and optimized addAll function that allows a faster transfer of elements- Parameter:
c- the elements that need to be added- Gibt zurück:
- true if the list was modified
-
addAll
A Type-Specific and optimized addAll function that allows a faster transfer of elements- Parameter:
index- index at which the specified elements is to be insertedc- the elements that need to be added- Gibt zurück:
- true if the list was modified
-
getFirstByte
default byte getFirstByte()Helper method that returns the first element of a List. This function was introduced due to how annoying it is to get/remove the last element of a list. This simplifies this process a bit.- Gibt zurück:
- first element of the list
-
getLastByte
default byte getLastByte()Helper method that returns the last element of a List. This function was introduced due to how annoying it is to get/remove the last element of a list. This simplifies this process a bit.- Gibt zurück:
- last element of the list
-
removeFirstByte
default byte removeFirstByte()Helper method that removes and returns the first element of a List. This function was introduced due to how annoying it is to get/remove the last element of a list. This simplifies this process a bit.- Gibt zurück:
- first element of the list and removes it
-
removeLastByte
default byte removeLastByte()Helper method that removes and returns the last element of a List. This function was introduced due to how annoying it is to get/remove the last element of a list. This simplifies this process a bit.- Gibt zurück:
- last element of the list and removes it
-
getByte
byte getByte(int index) A Type-Specific get function to reduce (un)boxing- Parameter:
index- the index of the value that is requested- Gibt zurück:
- the value at the given index
- Löst aus:
IndexOutOfBoundsException- if the index is not within the list range- Siehe auch:
-
set
byte set(int index, byte e) A Type-Specific set function to reduce (un)boxing- Parameter:
index- index of the element to replacee- element to be stored at the specified position- Gibt zurück:
- the element previously at the specified position
- Löst aus:
IndexOutOfBoundsException- if the index is not within the list range- Siehe auch:
-
removeByte
byte removeByte(int index) A Type-Specific remove function to reduce (un)boxing- Parameter:
index- the index of the element to be removed- Gibt zurück:
- the element previously at the specified position
- Siehe auch:
-
indexOf
int indexOf(byte e) A Type-Specific indexOf function to reduce (un)boxing- Parameter:
e- the element that is searched for- Gibt zurück:
- the index of the element if found. (if not found then -1)
- Note:
- does not support null values
-
lastIndexOf
int lastIndexOf(byte e) A Type-Specific lastIndexOf function to reduce (un)boxing- Parameter:
e- the element that is searched for- Gibt zurück:
- the lastIndex of the element if found. (if not found then -1)
- Note:
- does not support null values
-
replaceBytes
A Type-Specific replace function to reduce (un)boxing- Parameter:
o- the action to replace the values- Löst aus:
NullPointerException- if o is null
-
addElements
default void addElements(byte... a) A function to fast add elements to the list- Parameter:
a- the elements that should be added- Löst aus:
IndexOutOfBoundsException- if from is outside of the lists range
-
addElements
default void addElements(int from, byte... a) A function to fast add elements to the list- Parameter:
from- the index where the elements should be added into the lista- the elements that should be added- Löst aus:
IndexOutOfBoundsException- if from is outside of the lists range
-
addElements
void addElements(int from, byte[] a, int offset, int length) A function to fast add elements to the list- Parameter:
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 from- Löst aus:
IndexOutOfBoundsException- if from is outside of the lists range
-
getElements
default byte[] getElements(int from, byte[] a) A function to fast fetch elements from the list- Parameter:
from- index where the list should be fetching elements froma- the array where the values should be inserted to- Gibt zurück:
- the inputArray
- Löst aus:
NullPointerException- if the array is nullIndexOutOfBoundsException- if from is outside of the lists rangeIllegalStateException- if offset or length are smaller then 0 or exceed the array length
-
getElements
byte[] getElements(int from, byte[] a, int offset, int length) A function to fast fetch elements from the list- Parameter:
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 from- Gibt zurück:
- the inputArray
- Löst aus:
NullPointerException- if the array is nullIndexOutOfBoundsException- if from is outside of the lists rangeIllegalStateException- if offset or length are smaller then 0 or exceed the array length
-
removeElements
void removeElements(int from, int to) a function to fast remove elements from the list.- Parameter:
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)
-
swapRemove
byte swapRemove(int index) A Highly Optimized remove function that removes the desired element. But instead of shifting the elements to the left it moves the last element to the removed space.- Parameter:
index- the index of the element to be removed- Gibt zurück:
- the element previously at the specified position
-
swapRemoveByte
boolean swapRemoveByte(byte e) A Highly Optimized remove function that removes the desired element. But instead of shifting the elements to the left it moves the last element to the removed space.- Parameter:
e- the element that should be removed- Gibt zurück:
- true if the element was removed
-
extractElements
byte[] extractElements(int from, int to) A function to fast extract elements out of the list, this removes the elements that were fetched.- Parameter:
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)- Gibt zurück:
- a array of the elements that were fetched
-
fillBuffer
Helper function that allows to fastFill a buffer reducing the duplication requirement- Parameter:
buffer- where the data should be stored in.
-
sort
Veraltet.Please use the corresponding type-specific function instead.This default implementation delegates to the corresponding type-specific function.
-
sort
Sorts the elements specified by the Natural order either by using the Comparator or the elements- Parameter:
c- the sorter of the elements, can be null- Siehe auch:
-
unstableSort
Veraltet.Please use the corresponding type-specific function instead.This default implementation delegates to the corresponding type-specific function.
- Parameter:
c- the sorter of the elements, can be null
-
unstableSort
Sorts the elements specified by the Natural order either by using the Comparator or the elements using a unstable sort- Parameter:
c- the sorter of the elements, can be null- Siehe auch:
-
forEachIndexed
A Indexed forEach implementation that allows you to keep track of how many elements were already iterated over.- Angegeben von:
forEachIndexedin SchnittstelleByteIterable- Parameter:
action- The action to be performed for each element- Löst aus:
NullPointerException- if the specified action is null
-
listIterator
ByteListIterator listIterator()A Type-Specific Iterator of listIterator- Angegeben von:
listIteratorin SchnittstelleList<Byte>- Siehe auch:
-
listIterator
A Type-Specific Iterator of listIterator- Angegeben von:
listIteratorin SchnittstelleList<Byte>- Siehe auch:
-
indexedIterator
Creates a Iterator that follows the indecies provided.
For example if the Lists Contents is:
-1, 0 1
and the indecies are:
0, 1, 2, 2, 1, 0
then the iterator will return the following values:
-1, 0, 1, 1, 0, -1- Parameter:
indecies- that should be used for the iteration.- Gibt zurück:
- a custom indexed iterator
-
indexedIterator
Creates a Iterator that follows the indecies provided.
For example if the Lists Contents is:
-1, 0 1
and the indecies are:
0, 1, 2, 2, 1, 0
then the iterator will return the following values:
-1, 0, 1, 1, 0, -1- Parameter:
indecies- that should be used for the iteration.- Gibt zurück:
- a custom indexed iterator
-
subList
A Type-Specific List of subList -
reversed
ByteList reversed()A Type-Specific List Helper that shows all elements in reverse.- Gibt zurück:
- a list wrapper that has all elements reversed!
-
synchronize
Creates a Wrapped List that is Synchronized- Angegeben von:
synchronizein SchnittstelleByteCollection- Gibt zurück:
- a new List that is synchronized
- Siehe auch:
-
synchronize
Creates a Wrapped List that is Synchronized- Angegeben von:
synchronizein SchnittstelleByteCollection- Parameter:
mutex- is the controller of the synchronization block- Gibt zurück:
- a new List Wrapper that is synchronized
- Siehe auch:
-
unmodifiable
Creates a Wrapped List that is unmodifiable- Angegeben von:
unmodifiablein SchnittstelleByteCollection- Gibt zurück:
- a new List Wrapper that is unmodifiable
- Siehe auch:
-
size
void size(int size) A function to ensure the elements are within the requested size. If smaller then the stored elements they get removed as needed. If bigger it is ensured that enough room is provided depending on the implementation- Parameter:
size- the requested amount of elements/room for elements
-
copy
ByteList copy()Beschreibung aus Schnittstelle kopiert:ByteCollectionA Function that does a shallow clone of the Collection itself. This function is more optimized then a copy constructor since the Collection does not have to be unsorted/resorted. It can be compared to Cloneable but with less exception risk- Angegeben von:
copyin SchnittstelleByteCollection- Gibt zurück:
- a Shallow Copy of the collection
-
add
Veraltet.Please use the corresponding type-specific function instead.This default implementation delegates to the corresponding type-specific function.
This default implementation delegates to the corresponding type-specific function.
- Angegeben von:
addin SchnittstelleByteCollection- Angegeben von:
addin SchnittstelleCollection<Byte>- Angegeben von:
addin SchnittstelleList<Byte>
-
get
Veraltet.Please use the corresponding type-specific function instead.This default implementation delegates to the corresponding type-specific function.
-
set
Veraltet.Please use the corresponding type-specific function instead.This default implementation delegates to the corresponding type-specific function.
-
indexOf
Veraltet.Please use the corresponding type-specific function instead.This default implementation delegates to the corresponding type-specific function.
-
lastIndexOf
Veraltet.Please use the corresponding type-specific function instead.This default implementation delegates to the corresponding type-specific function.
- Angegeben von:
lastIndexOfin SchnittstelleList<Byte>
-
contains
Veraltet.Please use the corresponding type-specific function instead.This default implementation delegates to the corresponding type-specific function.
This default implementation delegates to the corresponding type-specific function.
- Angegeben von:
containsin SchnittstelleByteCollection- Angegeben von:
containsin SchnittstelleCollection<Byte>- Angegeben von:
containsin SchnittstelleList<Byte>
-
remove
Veraltet.Please use the corresponding type-specific function instead.This default implementation delegates to the corresponding type-specific function.
This default implementation delegates to the corresponding type-specific function.
- Angegeben von:
removein SchnittstelleByteCollection- Angegeben von:
removein SchnittstelleCollection<Byte>- Angegeben von:
removein SchnittstelleList<Byte>
-
remove
Veraltet.Please use the corresponding type-specific function instead.This default implementation delegates to the corresponding type-specific function.
-
replaceAll
Veraltet.Please use the corresponding type-specific function instead.This default implementation delegates to the corresponding type-specific function.
- Angegeben von:
replaceAllin SchnittstelleList<Byte>
-
spliterator
A Type Specific Type Splititerator to reduce boxing/unboxing- Angegeben von:
spliteratorin SchnittstelleByteCollection- Angegeben von:
spliteratorin SchnittstelleByteIterable- Angegeben von:
spliteratorin SchnittstelleCollection<Byte>- Angegeben von:
spliteratorin SchnittstelleIterable<Byte>- Angegeben von:
spliteratorin SchnittstelleList<Byte>- Gibt zurück:
- type specific splititerator
-