java.lang.Object
java.util.AbstractCollection<Long>
speiger.src.collections.longs.collections.AbstractLongCollection
speiger.src.collections.longs.lists.AbstractLongList
speiger.src.collections.longs.lists.LongLinkedList
- Alle implementierten Schnittstellen:
Iterable<Long>,Collection<Long>,List<Long>,LongCollection,LongIterable,LongStack,LongList,LongPriorityDequeue,LongPriorityQueue,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 LongStack
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.LongLinkedList(long... a) Creates a new LinkedList with a Copy of the arrayLongLinkedList(long[] a, int length) Creates a new LinkedList with a Copy of the array with a custom lengthLongLinkedList(long[] a, int offset, int length) Creates a new LinkedList with a Copy of the array with in the custom range.LongLinkedList(Collection<? extends Long> 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 TypMethodeBeschreibungvoidadd(int index, long e) A Type-Specific add Function to reduce (un)boxingbooleanadd(long e) A Type-Specific implementation of add function that delegates toList.add(int, Object)booleanaddAll(int index, Collection<? extends Long> c) Veraltet.booleanaddAll(int index, LongCollection c) A Type-Specific addAll Function to reduce (un)boxingbooleanA Type-Specific and optimized addAll function that allows a faster transfer of elementsbooleanaddAll(long[] e, int offset, int length) A Type-Specific Array based addAll method to reduce the amount of WrappingvoidaddElements(int from, long[] 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(long e) A Type-Specific implementation of contains.booleanVeraltet.copy()A Function that does a shallow clone of the Collection itself.intcount(LongPredicate filter) Helper function to reduce stream usage that allows to count the valid elements.longdequeue()Method to extract a element from the PriorityQueuelongA Method to remove a element from the last place instead of the firstvoidenqueue(long e) Method to insert a element into the PriorityQueuevoidenqueueFirst(long e) Method to insert a element into the first Index instead of the last.long[]extractElements(int from, int to) A function to fast extract elements out of the list, this removes the elements that were fetched.voidfillBuffer(LongBuffer buffer) Helper function that allows to fastFill a buffer reducing the duplication requirementlongfindFirst(LongPredicate filter) Helper function to reduce stream usage that allows to filter for the first match.longfirst()Shows the element that is to be returned next<E> voidforEach(E input, ObjectLongConsumer<E> action) Helper function to reduce Lambda usage and allow for more method references, since these are faster/cleaner.voidforEach(LongConsumer action) A Type Specific foreach function that reduces (un)boxingvoidforEachIndexed(IntLongConsumer action) A Indexed forEach implementation that allows you to keep track of how many elements were already iterated over.long[]getElements(int from, long[] a, int offset, int length) A function to fast fetch elements from the listlongHelper method that returns the first element of a List.longHelper method that returns the last element of a List.longgetLong(int index) A Type-Specific get function to reduce (un)boxingintindexOf(long e) The indexOf implementation iterates over all elements and compares them to the search value.intVeraltet.longlast()Peeking function for the last elementintlastIndexOf(long 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(LongPredicate filter) Helper function to reduce stream usage that allows to filter for all matches.booleanmatchesAny(LongPredicate filter) Helper function to reduce stream usage that allows to filter for any matches.booleanmatchesNone(LongPredicate 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.longpeek(int index) Peeking function to see whats inside the queue.longpop()Removes the Object on top of the stack.Returns a Java-Type-Specific Stream to reduce boxing/unboxing.voidpush(long e) Inserts a given Object on top of the stacklongreduce(long identity, LongLongUnaryOperator operator) Performs a reduction on the elements of this Iterablelongreduce(LongLongUnaryOperator operator) Performs a reduction on the elements of this IterablebooleanremIf(LongPredicate filter) A Type-Specific removeIf function to reduce (un)boxing.booleanremLong(long e) A Type-Specific implementation of remove.booleanremoveAll(Collection<?> c) Veraltet.booleanA Type-Specific implementation of removeAll.booleanA Type-Specific removeAll function that reduces (un)boxing.voidremoveElements(int from, int to) a function to fast remove elements from the list.booleanremoveFirst(long e) Removes the first found element in the queuelongHelper method that removes and returns the first element of a List.booleanVeraltet.booleanremoveLast(long e) Removes the last found element in the queuelongHelper method that removes and returns the last element of a List.longremoveLong(int index) A Type-Specific remove function to reduce (un)boxingvoidVeraltet.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.longset(int index, long 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/unboxinglongswapRemove(int index) A Highly Optimized remove function that removes the desired element.booleanswapRemoveLong(long e) A Highly Optimized remove function that removes the desired element.Object[]toArray()<E> E[]toArray(E[] a) long[]toLongArray(long[] a) A Type-Specific implementation of toArray.Von Klasse geerbte Methoden speiger.src.collections.longs.lists.AbstractLongList
add, addAll, addAll, addAll, equals, hashCode, indexedIterator, indexedIterator, iterator, listIterator, reversed, size, subListVon Klasse geerbte Methoden speiger.src.collections.longs.collections.AbstractLongCollection
add, containsAll, containsAll, containsAny, containsAny, remove, toLongArrayVon Klasse geerbte Methoden java.util.AbstractCollection
isEmpty, toStringVon Schnittstelle geerbte Methoden java.util.Collection
parallelStream, stream, toArrayVon Schnittstelle geerbte Methoden java.util.List
containsAll, isEmptyVon Schnittstelle geerbte Methoden speiger.src.collections.longs.collections.LongCollection
addAll, addAll, containsAll, containsAny, containsAny, pour, toLongArrayVon Schnittstelle geerbte Methoden speiger.src.collections.longs.collections.LongIterable
arrayflatMap, asAsync, distinct, filter, flatMap, forEach, iterator, limit, map, peek, pourAsList, pourAsSet, repeat, sortedVon Schnittstelle geerbte Methoden speiger.src.collections.longs.lists.LongList
add, addElements, addElements, addIfAbsent, addIfPresent, get, getElements, remove, remove, set, sort, sort, synchronize, synchronize, unmodifiable, unstableSort, unstableSortVon Schnittstelle geerbte Methoden speiger.src.collections.longs.queues.LongPriorityDequeue
enqueueAllFirst, enqueueAllFirst, enqueueAllFirst, enqueueAllFirst, synchronizeQueue, synchronizeQueueVon Schnittstelle geerbte Methoden speiger.src.collections.longs.queues.LongPriorityQueue
enqueueAll, enqueueAll, enqueueAll, enqueueAll, isEmpty, toLongArrayVon Schnittstelle geerbte Methoden speiger.src.collections.longs.collections.LongStack
isEmpty, pushTop, toLongArray, top
-
Konstruktordetails
-
LongLinkedList
public LongLinkedList()Creates a new LinkedList. -
LongLinkedList
Veraltet.Creates a new LinkedList a copy with the contents of the Collection.- Parameter:
c- the elements that should be added into the list
-
LongLinkedList
Creates a new LinkedList a copy with the contents of the Collection.- Parameter:
c- the elements that should be added into the list
-
LongLinkedList
Creates a new LinkedList a copy with the contents of the List.- Parameter:
l- the elements that should be added into the list
-
LongLinkedList
public LongLinkedList(long... a) Creates a new LinkedList with a Copy of the array- Parameter:
a- the array that should be copied
-
LongLinkedList
public LongLinkedList(long[] 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
-
LongLinkedList
public LongLinkedList(long[] 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(long e) Beschreibung aus Klasse kopiert:AbstractLongListA Type-Specific implementation of add function that delegates toList.add(int, Object)- Angegeben von:
addin SchnittstelleLongCollection- Angegeben von:
addin SchnittstelleLongList- Setzt außer Kraft:
addin KlasseAbstractLongList- Parameter:
e- the element to add- Gibt zurück:
- true if the list was modified
- Siehe auch:
-
add
public void add(int index, long e) Beschreibung aus Schnittstelle kopiert:LongListA Type-Specific add Function to reduce (un)boxing -
addAll
Beschreibung aus Schnittstelle kopiert:LongListA Type-Specific addAll Function to reduce (un)boxing -
addAll
Beschreibung aus Schnittstelle kopiert:LongListA Type-Specific and optimized addAll function that allows a faster transfer of elements -
addAll
Veraltet. -
enqueue
public void enqueue(long e) Beschreibung aus Schnittstelle kopiert:LongPriorityQueueMethod to insert a element into the PriorityQueue- Angegeben von:
enqueuein SchnittstelleLongPriorityQueue- Parameter:
e- the element that should be inserted
-
enqueueFirst
public void enqueueFirst(long e) Beschreibung aus Schnittstelle kopiert:LongPriorityDequeueMethod to insert a element into the first Index instead of the last.- Angegeben von:
enqueueFirstin SchnittstelleLongPriorityDequeue- Parameter:
e- the element that should be inserted into the first place
-
push
public void push(long e) Beschreibung aus Schnittstelle kopiert:LongStackInserts a given Object on top of the stack -
addAll
public boolean addAll(long[] e, int offset, int length) Beschreibung aus Schnittstelle kopiert:LongCollectionA Type-Specific Array based addAll method to reduce the amount of Wrapping- Angegeben von:
addAllin SchnittstelleLongCollection- 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, long[] a, int offset, int length) Beschreibung aus Schnittstelle kopiert:LongListA function to fast add elements to the list- Angegeben von:
addElementsin SchnittstelleLongList- 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 long[] getElements(int from, long[] a, int offset, int length) Beschreibung aus Schnittstelle kopiert:LongListA function to fast fetch elements from the list- Angegeben von:
getElementsin SchnittstelleLongList- 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 long first()Beschreibung aus Schnittstelle kopiert:LongPriorityQueueShows the element that is to be returned next- Angegeben von:
firstin SchnittstelleLongPriorityQueue- Gibt zurück:
- the first element in the Queue
-
last
public long last()Beschreibung aus Schnittstelle kopiert:LongPriorityDequeuePeeking function for the last element- Angegeben von:
lastin SchnittstelleLongPriorityDequeue- Gibt zurück:
- the Last Element within the dequeue without deleting it
-
getFirstLong
public long getFirstLong()Beschreibung aus Schnittstelle kopiert:LongListHelper 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:
getFirstLongin SchnittstelleLongList- Gibt zurück:
- first element of the list
-
getLastLong
public long getLastLong()Beschreibung aus Schnittstelle kopiert:LongListHelper 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:
getLastLongin SchnittstelleLongList- Gibt zurück:
- last element of the list
-
removeFirstLong
public long removeFirstLong()Beschreibung aus Schnittstelle kopiert:LongListHelper 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:
removeFirstLongin SchnittstelleLongList- Gibt zurück:
- first element of the list and removes it
-
removeLastLong
public long removeLastLong()Beschreibung aus Schnittstelle kopiert:LongListHelper 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:
removeLastLongin SchnittstelleLongList- Gibt zurück:
- last element of the list and removes it
-
peek
public long peek(int index) Beschreibung aus Schnittstelle kopiert:LongPriorityQueuePeeking function to see whats inside the queue.- Angegeben von:
peekin SchnittstelleLongPriorityQueue- Angegeben von:
peekin SchnittstelleLongStack- Parameter:
index- of the element that is requested to be viewed.- Gibt zurück:
- the element that is requested
- Siehe auch:
-
getLong
public long getLong(int index) Beschreibung aus Schnittstelle kopiert:LongListA Type-Specific get function to reduce (un)boxing -
contains
Veraltet.Beschreibung aus Klasse kopiert:AbstractLongCollectionThis default implementation delegates to the corresponding type-specific function.
This default implementation delegates to the corresponding type-specific function.
- Angegeben von:
containsin SchnittstelleCollection<Long>- Angegeben von:
containsin SchnittstelleList<Long>- Angegeben von:
containsin SchnittstelleLongCollection- Angegeben von:
containsin SchnittstelleLongList- Setzt außer Kraft:
containsin KlasseAbstractLongCollection
-
indexOf
Veraltet.Beschreibung aus Klasse kopiert:AbstractLongListThe IndexOf implementation iterates over all elements and compares them to the search value. -
lastIndexOf
Veraltet.Beschreibung aus Klasse kopiert:AbstractLongListThe lastIndexOf implementation iterates over all elements and compares them to the search value.- Angegeben von:
lastIndexOfin SchnittstelleList<Long>- Angegeben von:
lastIndexOfin SchnittstelleLongList- Setzt außer Kraft:
lastIndexOfin KlasseAbstractLongList- 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(long e) Beschreibung aus Klasse kopiert:AbstractLongCollectionA Type-Specific implementation of contains. This implementation iterates over the elements and returns true if the value match.- Angegeben von:
containsin SchnittstelleLongCollection- Angegeben von:
containsin SchnittstelleLongPriorityQueue- Setzt außer Kraft:
containsin KlasseAbstractLongCollection- Parameter:
e- the element that should be searched for.- Gibt zurück:
- true if the value was found.
-
indexOf
public int indexOf(long e) Beschreibung aus Klasse kopiert:AbstractLongListThe indexOf implementation iterates over all elements and compares them to the search value.- Angegeben von:
indexOfin SchnittstelleLongList- Setzt außer Kraft:
indexOfin KlasseAbstractLongList- 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(long e) Beschreibung aus Klasse kopiert:AbstractLongListThe lastIndexOf implementation iterates over all elements and compares them to the search value.- Angegeben von:
lastIndexOfin SchnittstelleLongList- Setzt außer Kraft:
lastIndexOfin KlasseAbstractLongList- 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:LongListA Type-Specific Iterator of listIterator- Angegeben von:
listIteratorin SchnittstelleList<Long>- Angegeben von:
listIteratorin SchnittstelleLongList- Setzt außer Kraft:
listIteratorin KlasseAbstractLongList- Siehe auch:
-
primitiveStream
Returns a Java-Type-Specific Stream to reduce boxing/unboxing.- Angegeben von:
primitiveStreamin SchnittstelleLongCollection- 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 SchnittstelleLongCollection- Gibt zurück:
- a Stream of the closest java type
-
spliterator
A Type Specific Type Splititerator to reduce boxing/unboxing- Angegeben von:
spliteratorin SchnittstelleCollection<Long>- Angegeben von:
spliteratorin SchnittstelleIterable<Long>- Angegeben von:
spliteratorin SchnittstelleList<Long>- Angegeben von:
spliteratorin SchnittstelleLongCollection- Angegeben von:
spliteratorin SchnittstelleLongIterable- Angegeben von:
spliteratorin SchnittstelleLongList- Gibt zurück:
- type specific splititerator
-
forEach
Beschreibung aus Schnittstelle kopiert:LongIterableA Type Specific foreach function that reduces (un)boxing- Angegeben von:
forEachin SchnittstelleLongIterable- Parameter:
action- The action to be performed for each element- Siehe auch:
-
forEachIndexed
Beschreibung aus Schnittstelle kopiert:LongIterableA Indexed forEach implementation that allows you to keep track of how many elements were already iterated over.- Angegeben von:
forEachIndexedin SchnittstelleLongIterable- Angegeben von:
forEachIndexedin SchnittstelleLongList- Parameter:
action- The action to be performed for each element
-
forEach
Beschreibung aus Schnittstelle kopiert:LongIterableHelper function to reduce Lambda usage and allow for more method references, since these are faster/cleaner.- Angegeben von:
forEachin SchnittstelleLongIterable- 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:LongIterableHelper function to reduce stream usage that allows to filter for any matches.- Angegeben von:
matchesAnyin SchnittstelleLongIterable- Parameter:
filter- that should be applied- Gibt zurück:
- true if any matches were found
-
matchesNone
Beschreibung aus Schnittstelle kopiert:LongIterableHelper function to reduce stream usage that allows to filter for no matches.- Angegeben von:
matchesNonein SchnittstelleLongIterable- Parameter:
filter- that should be applied- Gibt zurück:
- true if no matches were found
-
matchesAll
Beschreibung aus Schnittstelle kopiert:LongIterableHelper function to reduce stream usage that allows to filter for all matches.- Angegeben von:
matchesAllin SchnittstelleLongIterable- Parameter:
filter- that should be applied- Gibt zurück:
- true if all matches.
-
findFirst
Beschreibung aus Schnittstelle kopiert:LongIterableHelper function to reduce stream usage that allows to filter for the first match.- Angegeben von:
findFirstin SchnittstelleLongIterable- Parameter:
filter- that should be applied- Gibt zurück:
- the found value or the null equivalent variant.
-
reduce
Beschreibung aus Schnittstelle kopiert:LongIterablePerforms a reduction on the elements of this Iterable- Angegeben von:
reducein SchnittstelleLongIterable- 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:LongIterablePerforms a reduction on the elements of this Iterable- Angegeben von:
reducein SchnittstelleLongIterable- 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:LongIterableHelper function to reduce stream usage that allows to count the valid elements.- Angegeben von:
countin SchnittstelleLongIterable- Parameter:
filter- that should be applied- Gibt zurück:
- the amount of Valid Elements
-
set
public long set(int index, long e) Beschreibung aus Schnittstelle kopiert:LongListA Type-Specific set function to reduce (un)boxing -
replaceAll
Veraltet.Beschreibung aus Schnittstelle kopiert:LongListThis default implementation delegates to the corresponding type-specific function.
- Angegeben von:
replaceAllin SchnittstelleList<Long>- Angegeben von:
replaceAllin SchnittstelleLongList
-
replaceLongs
Beschreibung aus Schnittstelle kopiert:LongListA Type-Specific replace function to reduce (un)boxing- Angegeben von:
replaceLongsin SchnittstelleLongList- Parameter:
o- the action to replace the values
-
onChanged
public void onChanged()Beschreibung aus Schnittstelle kopiert:LongPriorityQueueAllows to notify the Queue to be revalidate its data- Angegeben von:
onChangedin SchnittstelleLongPriorityQueue
-
comparator
- Angegeben von:
comparatorin SchnittstelleLongPriorityQueue- Gibt zurück:
- the sorter of the Queue, can be null
-
dequeue
public long dequeue()Beschreibung aus Schnittstelle kopiert:LongPriorityQueueMethod to extract a element from the PriorityQueue- Angegeben von:
dequeuein SchnittstelleLongPriorityQueue- Gibt zurück:
- a element from the Queue
-
dequeueLast
public long dequeueLast()Beschreibung aus Schnittstelle kopiert:LongPriorityDequeueA Method to remove a element from the last place instead of the first- Angegeben von:
dequeueLastin SchnittstelleLongPriorityDequeue- Gibt zurück:
- the last element inserted
-
pop
public long pop()Beschreibung aus Schnittstelle kopiert:LongStackRemoves the Object on top of the stack. -
removeFirst
public boolean removeFirst(long e) Beschreibung aus Schnittstelle kopiert:LongPriorityQueueRemoves the first found element in the queue- Angegeben von:
removeFirstin SchnittstelleLongPriorityQueue- Parameter:
e- the element that should be removed- Gibt zurück:
- if a searched element was removed
-
removeLast
public boolean removeLast(long e) Beschreibung aus Schnittstelle kopiert:LongPriorityQueueRemoves the last found element in the queue- Angegeben von:
removeLastin SchnittstelleLongPriorityQueue- Parameter:
e- the element that should be removed- Gibt zurück:
- if a searched element was removed
-
swapRemove
public long swapRemove(int index) Beschreibung aus Schnittstelle kopiert:LongListA 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 SchnittstelleLongList- Parameter:
index- the index of the element to be removed- Gibt zurück:
- the element previously at the specified position
-
swapRemoveLong
public boolean swapRemoveLong(long e) Beschreibung aus Schnittstelle kopiert:LongListA 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:
swapRemoveLongin SchnittstelleLongList- Setzt außer Kraft:
swapRemoveLongin KlasseAbstractLongList- Parameter:
e- the element that should be removed- Gibt zurück:
- true if the element was removed
-
remLong
public boolean remLong(long e) Beschreibung aus Klasse kopiert:AbstractLongCollectionA 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:
remLongin SchnittstelleLongCollection- Setzt außer Kraft:
remLongin KlasseAbstractLongCollection- Parameter:
e- the element that is searched for- Gibt zurück:
- true if the element was found and removed.
- Siehe auch:
-
removeLong
public long removeLong(int index) Beschreibung aus Schnittstelle kopiert:LongListA Type-Specific remove function to reduce (un)boxing- Angegeben von:
removeLongin SchnittstelleLongList- 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:LongLista function to fast remove elements from the list.- Angegeben von:
removeElementsin SchnittstelleLongList- 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 long[] extractElements(int from, int to) Beschreibung aus Schnittstelle kopiert:LongListA function to fast extract elements out of the list, this removes the elements that were fetched.- Angegeben von:
extractElementsin SchnittstelleLongList- 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:LongListHelper function that allows to fastFill a buffer reducing the duplication requirement- Angegeben von:
fillBufferin SchnittstelleLongList- Parameter:
buffer- where the data should be stored in.
-
removeAll
Veraltet.- Angegeben von:
removeAllin SchnittstelleCollection<Long>- Angegeben von:
removeAllin SchnittstelleList<Long>- Setzt außer Kraft:
removeAllin KlasseAbstractCollection<Long>
-
retainAll
Veraltet.- Angegeben von:
retainAllin SchnittstelleCollection<Long>- Angegeben von:
retainAllin SchnittstelleList<Long>- Setzt außer Kraft:
retainAllin KlasseAbstractCollection<Long>
-
removeAll
Beschreibung aus Klasse kopiert:AbstractLongCollectionA 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 SchnittstelleLongCollection- Setzt außer Kraft:
removeAllin KlasseAbstractLongCollection- Parameter:
c- the elements that should be deleted- Gibt zurück:
- true if the collection was modified.
- Siehe auch:
-
removeAll
Beschreibung aus Schnittstelle kopiert:LongCollectionA 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 SchnittstelleLongCollection- Setzt außer Kraft:
removeAllin KlasseAbstractLongCollection- 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:AbstractLongCollectionA 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 SchnittstelleLongCollection- Setzt außer Kraft:
retainAllin KlasseAbstractLongCollection- Parameter:
c- the elements that should be kept- Gibt zurück:
- true if the collection was modified.
- Siehe auch:
-
retainAll
Beschreibung aus Schnittstelle kopiert:LongCollectionA 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 SchnittstelleLongCollection- Setzt außer Kraft:
retainAllin KlasseAbstractLongCollection- 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:LongCollectionThis default implementation delegates to the corresponding type-specific function.
- Angegeben von:
removeIfin SchnittstelleCollection<Long>- Angegeben von:
removeIfin SchnittstelleLongCollection
-
remIf
Beschreibung aus Schnittstelle kopiert:LongCollectionA Type-Specific removeIf function to reduce (un)boxing.Removes elements that were selected by the filter
- Angegeben von:
remIfin SchnittstelleLongCollection- 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<Long>- Angegeben von:
toArrayin SchnittstelleList<Long>- Setzt außer Kraft:
toArrayin KlasseAbstractCollection<Long>
-
toArray
public <E> E[] toArray(E[] a) - Angegeben von:
toArrayin SchnittstelleCollection<Long>- Angegeben von:
toArrayin SchnittstelleList<Long>- Setzt außer Kraft:
toArrayin KlasseAbstractCollection<Long>
-
toLongArray
public long[] toLongArray(long[] a) Beschreibung aus Klasse kopiert:AbstractLongCollectionA Type-Specific implementation of toArray. This implementation iterates over all elements and unwraps them into primitive type.- Angegeben von:
toLongArrayin SchnittstelleLongCollection- Angegeben von:
toLongArrayin SchnittstelleLongPriorityQueue- Angegeben von:
toLongArrayin SchnittstelleLongStack- Setzt außer Kraft:
toLongArrayin KlasseAbstractLongCollection- 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:LongStackProvides the amount of elements currently in the stack- Angegeben von:
sizein SchnittstelleCollection<Long>- Angegeben von:
sizein SchnittstelleISizeProvider- Angegeben von:
sizein SchnittstelleList<Long>- Angegeben von:
sizein SchnittstelleLongPriorityQueue- Angegeben von:
sizein SchnittstelleLongStack- Angegeben von:
sizein KlasseAbstractCollection<Long>- Gibt zurück:
- the amount of elements that are stored in the PriorityQueue
-
clear
public void clear()Beschreibung aus Schnittstelle kopiert:LongPriorityQueueclears all elements within the PriorityQueue, this does not resize the backing arrays- Angegeben von:
clearin SchnittstelleCollection<Long>- Angegeben von:
clearin SchnittstelleList<Long>- Angegeben von:
clearin SchnittstelleLongPriorityQueue- Angegeben von:
clearin SchnittstelleLongStack- Setzt außer Kraft:
clearin KlasseAbstractCollection<Long>
-
copy
Beschreibung aus Schnittstelle kopiert:LongCollectionA 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 SchnittstelleLongCollection- Angegeben von:
copyin SchnittstelleLongList- Angegeben von:
copyin SchnittstelleLongPriorityDequeue- Angegeben von:
copyin SchnittstelleLongPriorityQueue- Setzt außer Kraft:
copyin KlasseAbstractLongList- Gibt zurück:
- a Shallow Copy of the collection
-