java.lang.Object
java.util.AbstractCollection<Byte>
speiger.src.collections.bytes.collections.AbstractByteCollection
speiger.src.collections.bytes.lists.AbstractByteList
speiger.src.collections.bytes.lists.ByteLinkedList
- Alle implementierten Schnittstellen:
Iterable<Byte>,Collection<Byte>,List<Byte>,ByteCollection,ByteIterable,ByteStack,ByteList,BytePriorityDequeue,BytePriorityQueue,ISizeProvider
A Type-Specific LinkedList implementation of list that is written to reduce (un)boxing
This implementation is optimized to improve how data is processed with interfaces like ByteStack
and with optimized functions that use type-specific implementations for primitives and optimized logic for bulk actions.
-
Verschachtelte Klassen - Übersicht
Von Schnittstelle geerbte verschachtelte Klassen/Schnittstellen speiger.src.collections.utils.ISizeProvider
ISizeProvider.CollectionSize -
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungCreates a new LinkedList.ByteLinkedList(byte... a) Creates a new LinkedList with a Copy of the arrayByteLinkedList(byte[] a, int length) Creates a new LinkedList with a Copy of the array with a custom lengthByteLinkedList(byte[] a, int offset, int length) Creates a new LinkedList with a Copy of the array with in the custom range.ByteLinkedList(Collection<? extends Byte> c) Veraltet.Creates a new LinkedList a copy with the contents of the Collection.Creates a new LinkedList a copy with the contents of the List. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungbooleanadd(byte e) A Type-Specific implementation of add function that delegates toList.add(int, Object)voidadd(int index, byte e) A Type-Specific add Function to reduce (un)boxingbooleanaddAll(byte[] e, int offset, int length) A Type-Specific Array based addAll method to reduce the amount of WrappingbooleanaddAll(int index, Collection<? extends Byte> c) Veraltet.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 elementsvoidaddElements(int from, byte[] a, int offset, int length) A function to fast add elements to the listvoidclear()clears all elements within the PriorityQueue, this does not resize the backing arraysbooleancontains(byte e) A Type-Specific implementation of contains.booleanVeraltet.copy()A Function that does a shallow clone of the Collection itself.intcount(BytePredicate filter) Helper function to reduce stream usage that allows to count the valid elements.bytedequeue()Method to extract a element from the PriorityQueuebyteA Method to remove a element from the last place instead of the firstvoidenqueue(byte e) Method to insert a element into the PriorityQueuevoidenqueueFirst(byte e) Method to insert a element into the first Index instead of the last.byte[]extractElements(int from, int to) A function to fast extract elements out of the list, this removes the elements that were fetched.voidfillBuffer(ByteBuffer buffer) Helper function that allows to fastFill a buffer reducing the duplication requirementbytefindFirst(BytePredicate filter) Helper function to reduce stream usage that allows to filter for the first match.bytefirst()Shows the element that is to be returned next<E> voidforEach(E input, ObjectByteConsumer<E> action) Helper function to reduce Lambda usage and allow for more method references, since these are faster/cleaner.voidforEach(ByteConsumer action) A Type Specific foreach function that reduces (un)boxingvoidforEachIndexed(IntByteConsumer action) A Indexed forEach implementation that allows you to keep track of how many elements were already iterated over.bytegetByte(int index) A Type-Specific get function to reduce (un)boxingbyte[]getElements(int from, byte[] a, int offset, int length) A function to fast fetch elements from the listbyteHelper method that returns the first element of a List.byteHelper method that returns the last element of a List.intindexOf(byte e) The indexOf implementation iterates over all elements and compares them to the search value.intVeraltet.bytelast()Peeking function for the last elementintlastIndexOf(byte e) The lastIndexOf implementation iterates over all elements and compares them to the search value.intVeraltet.listIterator(int index) A Type-Specific Iterator of listIteratorbooleanmatchesAll(BytePredicate filter) Helper function to reduce stream usage that allows to filter for all matches.booleanmatchesAny(BytePredicate filter) Helper function to reduce stream usage that allows to filter for any matches.booleanmatchesNone(BytePredicate filter) Helper function to reduce stream usage that allows to filter for no matches.voidAllows to notify the Queue to be revalidate its dataReturns a Java-Type-Specific Parallel Stream to reduce boxing/unboxing.bytepeek(int index) Peeking function to see whats inside the queue.bytepop()Removes the Object on top of the stack.Returns a Java-Type-Specific Stream to reduce boxing/unboxing.voidpush(byte e) Inserts a given Object on top of the stackbytereduce(byte identity, ByteByteUnaryOperator operator) Performs a reduction on the elements of this Iterablebytereduce(ByteByteUnaryOperator operator) Performs a reduction on the elements of this IterablebooleanremByte(byte e) A Type-Specific implementation of remove.booleanremIf(IntPredicate filter) A Type-Specific removeIf function to reduce (un)boxing.booleanremoveAll(Collection<?> c) Veraltet.booleanA Type-Specific implementation of removeAll.booleanA Type-Specific removeAll function that reduces (un)boxing.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.booleanremoveFirst(byte e) Removes the first found element in the queuebyteHelper method that removes and returns the first element of a List.booleanVeraltet.booleanremoveLast(byte e) Removes the last found element in the queuebyteHelper method that removes and returns the last element of a List.voidVeraltet.voidA Type-Specific replace function to reduce (un)boxingbooleanretainAll(Collection<?> c) Veraltet.booleanA Type-Specific implementation of retainAll.booleanA Type-Specific retainAll function that reduces (un)boxing.byteset(int index, byte e) A Type-Specific set function to reduce (un)boxingintsize()Provides the amount of elements currently in the stackA Type Specific Type Splititerator to reduce boxing/unboxingbyteswapRemove(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.Object[]toArray()<E> E[]toArray(E[] a) byte[]toByteArray(byte[] a) A Type-Specific implementation of toArray.Von Klasse geerbte Methoden speiger.src.collections.bytes.lists.AbstractByteList
add, addAll, addAll, addAll, equals, hashCode, indexedIterator, indexedIterator, iterator, listIterator, reversed, size, subListVon Klasse geerbte Methoden speiger.src.collections.bytes.collections.AbstractByteCollection
add, containsAll, containsAll, containsAny, containsAny, remove, toByteArrayVon Klasse geerbte Methoden java.util.AbstractCollection
isEmpty, toStringVon Schnittstelle geerbte Methoden speiger.src.collections.bytes.collections.ByteCollection
addAll, addAll, containsAll, containsAny, containsAny, pour, toByteArrayVon Schnittstelle geerbte Methoden speiger.src.collections.bytes.collections.ByteIterable
arrayflatMap, asAsync, distinct, filter, flatMap, forEach, iterator, limit, map, peek, pourAsList, pourAsSet, repeat, sortedVon Schnittstelle geerbte Methoden speiger.src.collections.bytes.lists.ByteList
add, addElements, addElements, addIfAbsent, addIfPresent, get, getElements, remove, remove, set, sort, sort, synchronize, synchronize, unmodifiable, unstableSort, unstableSortVon Schnittstelle geerbte Methoden speiger.src.collections.bytes.queues.BytePriorityDequeue
enqueueAllFirst, enqueueAllFirst, enqueueAllFirst, enqueueAllFirst, synchronizeQueue, synchronizeQueueVon Schnittstelle geerbte Methoden speiger.src.collections.bytes.queues.BytePriorityQueue
enqueueAll, enqueueAll, enqueueAll, enqueueAll, isEmpty, toByteArrayVon Schnittstelle geerbte Methoden speiger.src.collections.bytes.collections.ByteStack
isEmpty, pushTop, toByteArray, topVon Schnittstelle geerbte Methoden java.util.Collection
parallelStream, stream, toArrayVon Schnittstelle geerbte Methoden java.util.List
containsAll, isEmpty
-
Konstruktordetails
-
ByteLinkedList
public ByteLinkedList()Creates a new LinkedList. -
ByteLinkedList
Veraltet.Creates a new LinkedList a copy with the contents of the Collection.- Parameter:
c- the elements that should be added into the list
-
ByteLinkedList
Creates a new LinkedList a copy with the contents of the Collection.- Parameter:
c- the elements that should be added into the list
-
ByteLinkedList
Creates a new LinkedList a copy with the contents of the List.- Parameter:
l- the elements that should be added into the list
-
ByteLinkedList
public ByteLinkedList(byte... a) Creates a new LinkedList with a Copy of the array- Parameter:
a- the array that should be copied
-
ByteLinkedList
public ByteLinkedList(byte[] a, int length) Creates a new LinkedList with a Copy of the array with a custom length- Parameter:
a- the array that should be copiedlength- the desired length that should be copied
-
ByteLinkedList
public ByteLinkedList(byte[] a, int offset, int length) Creates a new LinkedList with a Copy of the array with in the custom range.- Parameter:
a- the array that should be copiedoffset- the starting offset of where the array should be copied fromlength- the desired length that should be copied- Löst aus:
IllegalStateException- if offset is smaller then 0IllegalStateException- if the offset + length exceeds the array length
-
-
Methodendetails
-
add
public boolean add(byte e) Beschreibung aus Klasse kopiert:AbstractByteListA Type-Specific implementation of add function that delegates toList.add(int, Object)- Angegeben von:
addin SchnittstelleByteCollection- Angegeben von:
addin SchnittstelleByteList- Setzt außer Kraft:
addin KlasseAbstractByteList- Parameter:
e- the element to add- Gibt zurück:
- true if the list was modified
- Siehe auch:
-
add
public void add(int index, byte e) Beschreibung aus Schnittstelle kopiert:ByteListA Type-Specific add Function to reduce (un)boxing -
addAll
Beschreibung aus Schnittstelle kopiert:ByteListA Type-Specific addAll Function to reduce (un)boxing -
addAll
Beschreibung aus Schnittstelle kopiert:ByteListA Type-Specific and optimized addAll function that allows a faster transfer of elements -
addAll
Veraltet. -
enqueue
public void enqueue(byte e) Beschreibung aus Schnittstelle kopiert:BytePriorityQueueMethod to insert a element into the PriorityQueue- Angegeben von:
enqueuein SchnittstelleBytePriorityQueue- Parameter:
e- the element that should be inserted
-
enqueueFirst
public void enqueueFirst(byte e) Beschreibung aus Schnittstelle kopiert:BytePriorityDequeueMethod to insert a element into the first Index instead of the last.- Angegeben von:
enqueueFirstin SchnittstelleBytePriorityDequeue- Parameter:
e- the element that should be inserted into the first place
-
push
public void push(byte e) Beschreibung aus Schnittstelle kopiert:ByteStackInserts a given Object on top of the stack -
addAll
public boolean addAll(byte[] e, int offset, int length) Beschreibung aus Schnittstelle kopiert:ByteCollectionA Type-Specific Array based addAll method to reduce the amount of Wrapping- Angegeben von:
addAllin SchnittstelleByteCollection- Parameter:
e- the elements that should be addedoffset- where to start within the arraylength- how many elements of the array should be added- Gibt zurück:
- if the collection was modified
-
addElements
public void addElements(int from, byte[] a, int offset, int length) Beschreibung aus Schnittstelle kopiert:ByteListA function to fast add elements to the list- Angegeben von:
addElementsin SchnittstelleByteList- 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
-
getElements
public byte[] getElements(int from, byte[] a, int offset, int length) Beschreibung aus Schnittstelle kopiert:ByteListA function to fast fetch elements from the list- Angegeben von:
getElementsin SchnittstelleByteList- 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
-
first
public byte first()Beschreibung aus Schnittstelle kopiert:BytePriorityQueueShows the element that is to be returned next- Angegeben von:
firstin SchnittstelleBytePriorityQueue- Gibt zurück:
- the first element in the Queue
-
last
public byte last()Beschreibung aus Schnittstelle kopiert:BytePriorityDequeuePeeking function for the last element- Angegeben von:
lastin SchnittstelleBytePriorityDequeue- Gibt zurück:
- the Last Element within the dequeue without deleting it
-
getFirstByte
public byte getFirstByte()Beschreibung aus Schnittstelle kopiert:ByteListHelper 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.- Angegeben von:
getFirstBytein SchnittstelleByteList- Gibt zurück:
- first element of the list
-
getLastByte
public byte getLastByte()Beschreibung aus Schnittstelle kopiert:ByteListHelper 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.- Angegeben von:
getLastBytein SchnittstelleByteList- Gibt zurück:
- last element of the list
-
removeFirstByte
public byte removeFirstByte()Beschreibung aus Schnittstelle kopiert:ByteListHelper 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.- Angegeben von:
removeFirstBytein SchnittstelleByteList- Gibt zurück:
- first element of the list and removes it
-
removeLastByte
public byte removeLastByte()Beschreibung aus Schnittstelle kopiert:ByteListHelper 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.- Angegeben von:
removeLastBytein SchnittstelleByteList- Gibt zurück:
- last element of the list and removes it
-
peek
public byte peek(int index) Beschreibung aus Schnittstelle kopiert:BytePriorityQueuePeeking function to see whats inside the queue.- Angegeben von:
peekin SchnittstelleBytePriorityQueue- Angegeben von:
peekin SchnittstelleByteStack- Parameter:
index- of the element that is requested to be viewed.- Gibt zurück:
- the element that is requested
- Siehe auch:
-
getByte
public byte getByte(int index) Beschreibung aus Schnittstelle kopiert:ByteListA Type-Specific get function to reduce (un)boxing -
contains
Veraltet.Beschreibung aus Klasse kopiert:AbstractByteCollectionThis 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 SchnittstelleByteList- Angegeben von:
containsin SchnittstelleCollection<Byte>- Angegeben von:
containsin SchnittstelleList<Byte>- Setzt außer Kraft:
containsin KlasseAbstractByteCollection
-
indexOf
Veraltet.Beschreibung aus Klasse kopiert:AbstractByteListThe IndexOf implementation iterates over all elements and compares them to the search value. -
lastIndexOf
Veraltet.Beschreibung aus Klasse kopiert:AbstractByteListThe lastIndexOf implementation iterates over all elements and compares them to the search value.- Angegeben von:
lastIndexOfin SchnittstelleByteList- Angegeben von:
lastIndexOfin SchnittstelleList<Byte>- Setzt außer Kraft:
lastIndexOfin KlasseAbstractByteList- Parameter:
o- the value that the index is searched for.- Gibt zurück:
- the last index of the value that was searched for. -1 if not found
-
contains
public boolean contains(byte e) Beschreibung aus Klasse kopiert:AbstractByteCollectionA Type-Specific implementation of contains. This implementation iterates over the elements and returns true if the value match.- Angegeben von:
containsin SchnittstelleByteCollection- Angegeben von:
containsin SchnittstelleBytePriorityQueue- Setzt außer Kraft:
containsin KlasseAbstractByteCollection- Parameter:
e- the element that should be searched for.- Gibt zurück:
- true if the value was found.
-
indexOf
public int indexOf(byte e) Beschreibung aus Klasse kopiert:AbstractByteListThe indexOf implementation iterates over all elements and compares them to the search value.- Angegeben von:
indexOfin SchnittstelleByteList- Setzt außer Kraft:
indexOfin KlasseAbstractByteList- Parameter:
e- the value that the index is searched for.- Gibt zurück:
- index of the value that was searched for. -1 if not found
-
lastIndexOf
public int lastIndexOf(byte e) Beschreibung aus Klasse kopiert:AbstractByteListThe lastIndexOf implementation iterates over all elements and compares them to the search value.- Angegeben von:
lastIndexOfin SchnittstelleByteList- Setzt außer Kraft:
lastIndexOfin KlasseAbstractByteList- Parameter:
e- the value that the index is searched for.- Gibt zurück:
- the last index of the value that was searched for. -1 if not found
-
listIterator
Beschreibung aus Schnittstelle kopiert:ByteListA Type-Specific Iterator of listIterator- Angegeben von:
listIteratorin SchnittstelleByteList- Angegeben von:
listIteratorin SchnittstelleList<Byte>- Setzt außer Kraft:
listIteratorin KlasseAbstractByteList- Siehe auch:
-
primitiveStream
Returns a Java-Type-Specific Stream to reduce boxing/unboxing.- Angegeben von:
primitiveStreamin SchnittstelleByteCollection- Gibt zurück:
- a Stream of the closest java type
-
parallelPrimitiveStream
Returns a Java-Type-Specific Parallel Stream to reduce boxing/unboxing.- Angegeben von:
parallelPrimitiveStreamin SchnittstelleByteCollection- Gibt zurück:
- a Stream of the closest java type
-
spliterator
A Type Specific Type Splititerator to reduce boxing/unboxing- Angegeben von:
spliteratorin SchnittstelleByteCollection- Angegeben von:
spliteratorin SchnittstelleByteIterable- Angegeben von:
spliteratorin SchnittstelleByteList- Angegeben von:
spliteratorin SchnittstelleCollection<Byte>- Angegeben von:
spliteratorin SchnittstelleIterable<Byte>- Angegeben von:
spliteratorin SchnittstelleList<Byte>- Gibt zurück:
- type specific splititerator
-
forEach
Beschreibung aus Schnittstelle kopiert:ByteIterableA Type Specific foreach function that reduces (un)boxing- Angegeben von:
forEachin SchnittstelleByteIterable- Parameter:
action- The action to be performed for each element- Siehe auch:
-
forEachIndexed
Beschreibung aus Schnittstelle kopiert:ByteIterableA Indexed forEach implementation that allows you to keep track of how many elements were already iterated over.- Angegeben von:
forEachIndexedin SchnittstelleByteIterable- Angegeben von:
forEachIndexedin SchnittstelleByteList- Parameter:
action- The action to be performed for each element
-
forEach
Beschreibung aus Schnittstelle kopiert:ByteIterableHelper function to reduce Lambda usage and allow for more method references, since these are faster/cleaner.- Angegeben von:
forEachin SchnittstelleByteIterable- Typparameter:
E- the generic type of the Object- Parameter:
input- the object that should be includedaction- The action to be performed for each element
-
matchesAny
Beschreibung aus Schnittstelle kopiert:ByteIterableHelper function to reduce stream usage that allows to filter for any matches.- Angegeben von:
matchesAnyin SchnittstelleByteIterable- Parameter:
filter- that should be applied- Gibt zurück:
- true if any matches were found
-
matchesNone
Beschreibung aus Schnittstelle kopiert:ByteIterableHelper function to reduce stream usage that allows to filter for no matches.- Angegeben von:
matchesNonein SchnittstelleByteIterable- Parameter:
filter- that should be applied- Gibt zurück:
- true if no matches were found
-
matchesAll
Beschreibung aus Schnittstelle kopiert:ByteIterableHelper function to reduce stream usage that allows to filter for all matches.- Angegeben von:
matchesAllin SchnittstelleByteIterable- Parameter:
filter- that should be applied- Gibt zurück:
- true if all matches.
-
findFirst
Beschreibung aus Schnittstelle kopiert:ByteIterableHelper function to reduce stream usage that allows to filter for the first match.- Angegeben von:
findFirstin SchnittstelleByteIterable- Parameter:
filter- that should be applied- Gibt zurück:
- the found value or the null equivalent variant.
-
reduce
Beschreibung aus Schnittstelle kopiert:ByteIterablePerforms a reduction on the elements of this Iterable- Angegeben von:
reducein SchnittstelleByteIterable- Parameter:
identity- the start valueoperator- the operation that should be applied- Gibt zurück:
- the reduction result, returns identity if nothing was found
-
reduce
Beschreibung aus Schnittstelle kopiert:ByteIterablePerforms a reduction on the elements of this Iterable- Angegeben von:
reducein SchnittstelleByteIterable- Parameter:
operator- the operation that should be applied- Gibt zurück:
- the reduction result, returns null value if nothing was found
-
count
Beschreibung aus Schnittstelle kopiert:ByteIterableHelper function to reduce stream usage that allows to count the valid elements.- Angegeben von:
countin SchnittstelleByteIterable- Parameter:
filter- that should be applied- Gibt zurück:
- the amount of Valid Elements
-
set
public byte set(int index, byte e) Beschreibung aus Schnittstelle kopiert:ByteListA Type-Specific set function to reduce (un)boxing -
replaceAll
Veraltet.Beschreibung aus Schnittstelle kopiert:ByteListThis default implementation delegates to the corresponding type-specific function.
- Angegeben von:
replaceAllin SchnittstelleByteList- Angegeben von:
replaceAllin SchnittstelleList<Byte>
-
replaceBytes
Beschreibung aus Schnittstelle kopiert:ByteListA Type-Specific replace function to reduce (un)boxing- Angegeben von:
replaceBytesin SchnittstelleByteList- Parameter:
o- the action to replace the values
-
onChanged
public void onChanged()Beschreibung aus Schnittstelle kopiert:BytePriorityQueueAllows to notify the Queue to be revalidate its data- Angegeben von:
onChangedin SchnittstelleBytePriorityQueue
-
comparator
- Angegeben von:
comparatorin SchnittstelleBytePriorityQueue- Gibt zurück:
- the sorter of the Queue, can be null
-
dequeue
public byte dequeue()Beschreibung aus Schnittstelle kopiert:BytePriorityQueueMethod to extract a element from the PriorityQueue- Angegeben von:
dequeuein SchnittstelleBytePriorityQueue- Gibt zurück:
- a element from the Queue
-
dequeueLast
public byte dequeueLast()Beschreibung aus Schnittstelle kopiert:BytePriorityDequeueA Method to remove a element from the last place instead of the first- Angegeben von:
dequeueLastin SchnittstelleBytePriorityDequeue- Gibt zurück:
- the last element inserted
-
pop
public byte pop()Beschreibung aus Schnittstelle kopiert:ByteStackRemoves the Object on top of the stack. -
removeFirst
public boolean removeFirst(byte e) Beschreibung aus Schnittstelle kopiert:BytePriorityQueueRemoves the first found element in the queue- Angegeben von:
removeFirstin SchnittstelleBytePriorityQueue- Parameter:
e- the element that should be removed- Gibt zurück:
- if a searched element was removed
-
removeLast
public boolean removeLast(byte e) Beschreibung aus Schnittstelle kopiert:BytePriorityQueueRemoves the last found element in the queue- Angegeben von:
removeLastin SchnittstelleBytePriorityQueue- Parameter:
e- the element that should be removed- Gibt zurück:
- if a searched element was removed
-
swapRemove
public byte swapRemove(int index) Beschreibung aus Schnittstelle kopiert:ByteListA 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.- Angegeben von:
swapRemovein SchnittstelleByteList- Parameter:
index- the index of the element to be removed- Gibt zurück:
- the element previously at the specified position
-
swapRemoveByte
public boolean swapRemoveByte(byte e) Beschreibung aus Schnittstelle kopiert:ByteListA 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.- Angegeben von:
swapRemoveBytein SchnittstelleByteList- Setzt außer Kraft:
swapRemoveBytein KlasseAbstractByteList- Parameter:
e- the element that should be removed- Gibt zurück:
- true if the element was removed
-
remByte
public boolean remByte(byte e) Beschreibung aus Klasse kopiert:AbstractByteCollectionA Type-Specific implementation of remove. This implementation iterates over the elements until it finds the element that is searched for or it runs out of elements. It stops after finding the first element- Angegeben von:
remBytein SchnittstelleByteCollection- Setzt außer Kraft:
remBytein KlasseAbstractByteCollection- Parameter:
e- the element that is searched for- Gibt zurück:
- true if the element was found and removed.
- Siehe auch:
-
removeByte
public byte removeByte(int index) Beschreibung aus Schnittstelle kopiert:ByteListA Type-Specific remove function to reduce (un)boxing- Angegeben von:
removeBytein SchnittstelleByteList- Parameter:
index- the index of the element to be removed- Gibt zurück:
- the element previously at the specified position
- Siehe auch:
-
removeElements
public void removeElements(int from, int to) Beschreibung aus Schnittstelle kopiert:ByteLista function to fast remove elements from the list.- Angegeben von:
removeElementsin SchnittstelleByteList- 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)
-
extractElements
public byte[] extractElements(int from, int to) Beschreibung aus Schnittstelle kopiert:ByteListA function to fast extract elements out of the list, this removes the elements that were fetched.- Angegeben von:
extractElementsin SchnittstelleByteList- 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
Beschreibung aus Schnittstelle kopiert:ByteListHelper function that allows to fastFill a buffer reducing the duplication requirement- Angegeben von:
fillBufferin SchnittstelleByteList- Parameter:
buffer- where the data should be stored in.
-
removeAll
Veraltet.- Angegeben von:
removeAllin SchnittstelleCollection<Byte>- Angegeben von:
removeAllin SchnittstelleList<Byte>- Setzt außer Kraft:
removeAllin KlasseAbstractCollection<Byte>
-
retainAll
Veraltet.- Angegeben von:
retainAllin SchnittstelleCollection<Byte>- Angegeben von:
retainAllin SchnittstelleList<Byte>- Setzt außer Kraft:
retainAllin KlasseAbstractCollection<Byte>
-
removeAll
Beschreibung aus Klasse kopiert:AbstractByteCollectionA Type-Specific implementation of removeAll. This Implementation iterates over all elements and removes them as they were found in the other collection.- Angegeben von:
removeAllin SchnittstelleByteCollection- Setzt außer Kraft:
removeAllin KlasseAbstractByteCollection- Parameter:
c- the elements that should be deleted- Gibt zurück:
- true if the collection was modified.
- Siehe auch:
-
removeAll
Beschreibung aus Schnittstelle kopiert:ByteCollectionA Type-Specific removeAll function that reduces (un)boxing. It also notifies the remover of which exact element is going to be removed.- Angegeben von:
removeAllin SchnittstelleByteCollection- Setzt außer Kraft:
removeAllin KlasseAbstractByteCollection- Parameter:
c- the collection of elements that should be removedr- elements that got removed- Gibt zurück:
- true if any element was removed
- Siehe auch:
-
retainAll
Beschreibung aus Klasse kopiert:AbstractByteCollectionA Type-Specific implementation of retainAll. This Implementation iterates over all elements and removes them as they were not found in the other collection.- Angegeben von:
retainAllin SchnittstelleByteCollection- Setzt außer Kraft:
retainAllin KlasseAbstractByteCollection- Parameter:
c- the elements that should be kept- Gibt zurück:
- true if the collection was modified.
- Siehe auch:
-
retainAll
Beschreibung aus Schnittstelle kopiert:ByteCollectionA Type-Specific retainAll function that reduces (un)boxing. It also notifies the remover of which exact element is going to be removed.- Angegeben von:
retainAllin SchnittstelleByteCollection- Setzt außer Kraft:
retainAllin KlasseAbstractByteCollection- Parameter:
c- the collection of elements that should be keptr- elements that got removed- Gibt zurück:
- true if any element was removed
- Siehe auch:
-
removeIf
Veraltet.Beschreibung aus Schnittstelle kopiert:ByteCollectionThis default implementation delegates to the corresponding type-specific function.
- Angegeben von:
removeIfin SchnittstelleByteCollection- Angegeben von:
removeIfin SchnittstelleCollection<Byte>
-
remIf
Beschreibung aus Schnittstelle kopiert:ByteCollectionA Type-Specific removeIf function to reduce (un)boxing.Removes elements that were selected by the filter
- Angegeben von:
remIfin SchnittstelleByteCollection- Parameter:
filter- Filters the elements that should be removed- Gibt zurück:
- true if the collection was modified
- Siehe auch:
-
toArray
- Angegeben von:
toArrayin SchnittstelleCollection<Byte>- Angegeben von:
toArrayin SchnittstelleList<Byte>- Setzt außer Kraft:
toArrayin KlasseAbstractCollection<Byte>
-
toArray
public <E> E[] toArray(E[] a) - Angegeben von:
toArrayin SchnittstelleCollection<Byte>- Angegeben von:
toArrayin SchnittstelleList<Byte>- Setzt außer Kraft:
toArrayin KlasseAbstractCollection<Byte>
-
toByteArray
public byte[] toByteArray(byte[] a) Beschreibung aus Klasse kopiert:AbstractByteCollectionA Type-Specific implementation of toArray. This implementation iterates over all elements and unwraps them into primitive type.- Angegeben von:
toByteArrayin SchnittstelleByteCollection- Angegeben von:
toByteArrayin SchnittstelleBytePriorityQueue- Angegeben von:
toByteArrayin SchnittstelleByteStack- Setzt außer Kraft:
toByteArrayin KlasseAbstractByteCollection- Parameter:
a- array that the elements should be injected to. If null or to small a new array with the right size is created- Gibt zurück:
- an array containing all of the elements in this collection
- Siehe auch:
-
size
public int size()Beschreibung aus Schnittstelle kopiert:ByteStackProvides the amount of elements currently in the stack- Angegeben von:
sizein SchnittstelleBytePriorityQueue- Angegeben von:
sizein SchnittstelleByteStack- Angegeben von:
sizein SchnittstelleCollection<Byte>- Angegeben von:
sizein SchnittstelleISizeProvider- Angegeben von:
sizein SchnittstelleList<Byte>- Angegeben von:
sizein KlasseAbstractCollection<Byte>- Gibt zurück:
- the amount of elements that are stored in the PriorityQueue
-
clear
public void clear()Beschreibung aus Schnittstelle kopiert:BytePriorityQueueclears all elements within the PriorityQueue, this does not resize the backing arrays- Angegeben von:
clearin SchnittstelleBytePriorityQueue- Angegeben von:
clearin SchnittstelleByteStack- Angegeben von:
clearin SchnittstelleCollection<Byte>- Angegeben von:
clearin SchnittstelleList<Byte>- Setzt außer Kraft:
clearin KlasseAbstractCollection<Byte>
-
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- Angegeben von:
copyin SchnittstelleByteList- Angegeben von:
copyin SchnittstelleBytePriorityDequeue- Angegeben von:
copyin SchnittstelleBytePriorityQueue- Setzt außer Kraft:
copyin KlasseAbstractByteList- Gibt zurück:
- a Shallow Copy of the collection
-