java.lang.Object
java.util.AbstractCollection<Double>
speiger.src.collections.doubles.collections.AbstractDoubleCollection
speiger.src.collections.doubles.lists.AbstractDoubleList
speiger.src.collections.doubles.lists.DoubleLinkedList
- Alle implementierten Schnittstellen:
Iterable<Double>,Collection<Double>,List<Double>,DoubleCollection,DoubleIterable,DoubleStack,DoubleList,DoublePriorityDequeue,DoublePriorityQueue,ISizeProvider
public class DoubleLinkedList
extends AbstractDoubleList
implements DoublePriorityDequeue, DoubleStack
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 DoubleStack
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.DoubleLinkedList(double... a) Creates a new LinkedList with a Copy of the arrayDoubleLinkedList(double[] a, int length) Creates a new LinkedList with a Copy of the array with a custom lengthDoubleLinkedList(double[] a, int offset, int length) Creates a new LinkedList with a Copy of the array with in the custom range.DoubleLinkedList(Collection<? extends Double> 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(double e) A Type-Specific implementation of add function that delegates toList.add(int, Object)voidadd(int index, double e) A Type-Specific add Function to reduce (un)boxingbooleanaddAll(double[] e, int offset, int length) A Type-Specific Array based addAll method to reduce the amount of WrappingbooleanaddAll(int index, Collection<? extends Double> c) Veraltet.booleanaddAll(int index, DoubleCollection c) A Type-Specific addAll Function to reduce (un)boxingbooleanaddAll(int index, DoubleList c) A Type-Specific and optimized addAll function that allows a faster transfer of elementsvoidaddElements(int from, double[] 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(double e) A Type-Specific implementation of contains.booleanVeraltet.copy()A Function that does a shallow clone of the Collection itself.intcount(DoublePredicate filter) Helper function to reduce stream usage that allows to count the valid elements.doubledequeue()Method to extract a element from the PriorityQueuedoubleA Method to remove a element from the last place instead of the firstvoidenqueue(double e) Method to insert a element into the PriorityQueuevoidenqueueFirst(double e) Method to insert a element into the first Index instead of the last.double[]extractElements(int from, int to) A function to fast extract elements out of the list, this removes the elements that were fetched.voidfillBuffer(DoubleBuffer buffer) Helper function that allows to fastFill a buffer reducing the duplication requirementdoublefindFirst(DoublePredicate filter) Helper function to reduce stream usage that allows to filter for the first match.doublefirst()Shows the element that is to be returned next<E> voidforEach(E input, ObjectDoubleConsumer<E> action) Helper function to reduce Lambda usage and allow for more method references, since these are faster/cleaner.voidforEach(DoubleConsumer action) A Type Specific foreach function that reduces (un)boxingvoidforEachIndexed(IntDoubleConsumer action) A Indexed forEach implementation that allows you to keep track of how many elements were already iterated over.doublegetDouble(int index) A Type-Specific get function to reduce (un)boxingdouble[]getElements(int from, double[] a, int offset, int length) A function to fast fetch elements from the listdoubleHelper method that returns the first element of a List.doubleHelper method that returns the last element of a List.intindexOf(double e) The indexOf implementation iterates over all elements and compares them to the search value.intVeraltet.doublelast()Peeking function for the last elementintlastIndexOf(double 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(DoublePredicate filter) Helper function to reduce stream usage that allows to filter for all matches.booleanmatchesAny(DoublePredicate filter) Helper function to reduce stream usage that allows to filter for any matches.booleanmatchesNone(DoublePredicate 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.doublepeek(int index) Peeking function to see whats inside the queue.doublepop()Removes the Object on top of the stack.Returns a Java-Type-Specific Stream to reduce boxing/unboxing.voidpush(double e) Inserts a given Object on top of the stackdoublereduce(double identity, DoubleDoubleUnaryOperator operator) Performs a reduction on the elements of this Iterabledoublereduce(DoubleDoubleUnaryOperator operator) Performs a reduction on the elements of this IterablebooleanremDouble(double e) A Type-Specific implementation of remove.booleanremIf(DoublePredicate 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.doubleremoveDouble(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(double e) Removes the first found element in the queuedoubleHelper method that removes and returns the first element of a List.booleanVeraltet.booleanremoveLast(double e) Removes the last found element in the queuedoubleHelper 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.doubleset(int index, double 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/unboxingdoubleswapRemove(int index) A Highly Optimized remove function that removes the desired element.booleanswapRemoveDouble(double e) A Highly Optimized remove function that removes the desired element.Object[]toArray()<E> E[]toArray(E[] a) double[]toDoubleArray(double[] a) A Type-Specific implementation of toArray.Von Klasse geerbte Methoden speiger.src.collections.doubles.lists.AbstractDoubleList
add, addAll, addAll, addAll, equals, hashCode, indexedIterator, indexedIterator, iterator, listIterator, reversed, size, subListVon Klasse geerbte Methoden speiger.src.collections.doubles.collections.AbstractDoubleCollection
add, containsAll, containsAll, containsAny, containsAny, remove, toDoubleArrayVon Klasse geerbte Methoden java.util.AbstractCollection
isEmpty, toStringVon Schnittstelle geerbte Methoden java.util.Collection
parallelStream, stream, toArrayVon Schnittstelle geerbte Methoden speiger.src.collections.doubles.collections.DoubleCollection
addAll, addAll, containsAll, containsAny, containsAny, pour, toDoubleArrayVon Schnittstelle geerbte Methoden speiger.src.collections.doubles.collections.DoubleIterable
arrayflatMap, asAsync, distinct, filter, flatMap, forEach, iterator, limit, map, peek, pourAsList, pourAsSet, repeat, sortedVon Schnittstelle geerbte Methoden speiger.src.collections.doubles.lists.DoubleList
add, addElements, addElements, addIfAbsent, addIfPresent, get, getElements, remove, remove, set, sort, sort, synchronize, synchronize, unmodifiable, unstableSort, unstableSortVon Schnittstelle geerbte Methoden speiger.src.collections.doubles.queues.DoublePriorityDequeue
enqueueAllFirst, enqueueAllFirst, enqueueAllFirst, enqueueAllFirst, synchronizeQueue, synchronizeQueueVon Schnittstelle geerbte Methoden speiger.src.collections.doubles.queues.DoublePriorityQueue
enqueueAll, enqueueAll, enqueueAll, enqueueAll, isEmpty, toDoubleArrayVon Schnittstelle geerbte Methoden speiger.src.collections.doubles.collections.DoubleStack
isEmpty, pushTop, toDoubleArray, topVon Schnittstelle geerbte Methoden java.util.List
containsAll, isEmpty
-
Konstruktordetails
-
DoubleLinkedList
public DoubleLinkedList()Creates a new LinkedList. -
DoubleLinkedList
Veraltet.Creates a new LinkedList a copy with the contents of the Collection.- Parameter:
c- the elements that should be added into the list
-
DoubleLinkedList
Creates a new LinkedList a copy with the contents of the Collection.- Parameter:
c- the elements that should be added into the list
-
DoubleLinkedList
Creates a new LinkedList a copy with the contents of the List.- Parameter:
l- the elements that should be added into the list
-
DoubleLinkedList
public DoubleLinkedList(double... a) Creates a new LinkedList with a Copy of the array- Parameter:
a- the array that should be copied
-
DoubleLinkedList
public DoubleLinkedList(double[] 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
-
DoubleLinkedList
public DoubleLinkedList(double[] 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(double e) Beschreibung aus Klasse kopiert:AbstractDoubleListA Type-Specific implementation of add function that delegates toList.add(int, Object)- Angegeben von:
addin SchnittstelleDoubleCollection- Angegeben von:
addin SchnittstelleDoubleList- Setzt außer Kraft:
addin KlasseAbstractDoubleList- Parameter:
e- the element to add- Gibt zurück:
- true if the list was modified
- Siehe auch:
-
add
public void add(int index, double e) Beschreibung aus Schnittstelle kopiert:DoubleListA Type-Specific add Function to reduce (un)boxing- Angegeben von:
addin SchnittstelleDoubleList- Parameter:
index- index at which the specified element is to be insertede- the element to add- Siehe auch:
-
addAll
Beschreibung aus Schnittstelle kopiert:DoubleListA Type-Specific addAll Function to reduce (un)boxing- Angegeben von:
addAllin SchnittstelleDoubleList- 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
Beschreibung aus Schnittstelle kopiert:DoubleListA Type-Specific and optimized addAll function that allows a faster transfer of elements- Angegeben von:
addAllin SchnittstelleDoubleList- 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
-
addAll
Veraltet. -
enqueue
public void enqueue(double e) Beschreibung aus Schnittstelle kopiert:DoublePriorityQueueMethod to insert a element into the PriorityQueue- Angegeben von:
enqueuein SchnittstelleDoublePriorityQueue- Parameter:
e- the element that should be inserted
-
enqueueFirst
public void enqueueFirst(double e) Beschreibung aus Schnittstelle kopiert:DoublePriorityDequeueMethod to insert a element into the first Index instead of the last.- Angegeben von:
enqueueFirstin SchnittstelleDoublePriorityDequeue- Parameter:
e- the element that should be inserted into the first place
-
push
public void push(double e) Beschreibung aus Schnittstelle kopiert:DoubleStackInserts a given Object on top of the stack- Angegeben von:
pushin SchnittstelleDoubleStack- Parameter:
e- the Object to insert- Siehe auch:
-
addAll
public boolean addAll(double[] e, int offset, int length) Beschreibung aus Schnittstelle kopiert:DoubleCollectionA Type-Specific Array based addAll method to reduce the amount of Wrapping- Angegeben von:
addAllin SchnittstelleDoubleCollection- 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, double[] a, int offset, int length) Beschreibung aus Schnittstelle kopiert:DoubleListA function to fast add elements to the list- Angegeben von:
addElementsin SchnittstelleDoubleList- 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 double[] getElements(int from, double[] a, int offset, int length) Beschreibung aus Schnittstelle kopiert:DoubleListA function to fast fetch elements from the list- Angegeben von:
getElementsin SchnittstelleDoubleList- 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 double first()Beschreibung aus Schnittstelle kopiert:DoublePriorityQueueShows the element that is to be returned next- Angegeben von:
firstin SchnittstelleDoublePriorityQueue- Gibt zurück:
- the first element in the Queue
-
last
public double last()Beschreibung aus Schnittstelle kopiert:DoublePriorityDequeuePeeking function for the last element- Angegeben von:
lastin SchnittstelleDoublePriorityDequeue- Gibt zurück:
- the Last Element within the dequeue without deleting it
-
getFirstDouble
public double getFirstDouble()Beschreibung aus Schnittstelle kopiert:DoubleListHelper 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:
getFirstDoublein SchnittstelleDoubleList- Gibt zurück:
- first element of the list
-
getLastDouble
public double getLastDouble()Beschreibung aus Schnittstelle kopiert:DoubleListHelper 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:
getLastDoublein SchnittstelleDoubleList- Gibt zurück:
- last element of the list
-
removeFirstDouble
public double removeFirstDouble()Beschreibung aus Schnittstelle kopiert:DoubleListHelper 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:
removeFirstDoublein SchnittstelleDoubleList- Gibt zurück:
- first element of the list and removes it
-
removeLastDouble
public double removeLastDouble()Beschreibung aus Schnittstelle kopiert:DoubleListHelper 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:
removeLastDoublein SchnittstelleDoubleList- Gibt zurück:
- last element of the list and removes it
-
peek
public double peek(int index) Beschreibung aus Schnittstelle kopiert:DoublePriorityQueuePeeking function to see whats inside the queue.- Angegeben von:
peekin SchnittstelleDoublePriorityQueue- Angegeben von:
peekin SchnittstelleDoubleStack- Parameter:
index- of the element that is requested to be viewed.- Gibt zurück:
- the element that is requested
- Siehe auch:
-
getDouble
public double getDouble(int index) Beschreibung aus Schnittstelle kopiert:DoubleListA Type-Specific get function to reduce (un)boxing- Angegeben von:
getDoublein SchnittstelleDoubleList- Parameter:
index- the index of the value that is requested- Gibt zurück:
- the value at the given index
- Siehe auch:
-
contains
Veraltet.Beschreibung aus Klasse kopiert:AbstractDoubleCollectionThis default implementation delegates to the corresponding type-specific function.
This default implementation delegates to the corresponding type-specific function.
- Angegeben von:
containsin SchnittstelleCollection<Double>- Angegeben von:
containsin SchnittstelleDoubleCollection- Angegeben von:
containsin SchnittstelleDoubleList- Angegeben von:
containsin SchnittstelleList<Double>- Setzt außer Kraft:
containsin KlasseAbstractDoubleCollection
-
indexOf
Veraltet.Beschreibung aus Klasse kopiert:AbstractDoubleListThe IndexOf implementation iterates over all elements and compares them to the search value.- Angegeben von:
indexOfin SchnittstelleDoubleList- Angegeben von:
indexOfin SchnittstelleList<Double>- Setzt außer Kraft:
indexOfin KlasseAbstractDoubleList- Parameter:
o- the value that the index is searched for.- Gibt zurück:
- index of the value that was searched for. -1 if not found
-
lastIndexOf
Veraltet.Beschreibung aus Klasse kopiert:AbstractDoubleListThe lastIndexOf implementation iterates over all elements and compares them to the search value.- Angegeben von:
lastIndexOfin SchnittstelleDoubleList- Angegeben von:
lastIndexOfin SchnittstelleList<Double>- Setzt außer Kraft:
lastIndexOfin KlasseAbstractDoubleList- 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(double e) Beschreibung aus Klasse kopiert:AbstractDoubleCollectionA Type-Specific implementation of contains. This implementation iterates over the elements and returns true if the value match.- Angegeben von:
containsin SchnittstelleDoubleCollection- Angegeben von:
containsin SchnittstelleDoublePriorityQueue- Setzt außer Kraft:
containsin KlasseAbstractDoubleCollection- Parameter:
e- the element that should be searched for.- Gibt zurück:
- true if the value was found.
-
indexOf
public int indexOf(double e) Beschreibung aus Klasse kopiert:AbstractDoubleListThe indexOf implementation iterates over all elements and compares them to the search value.- Angegeben von:
indexOfin SchnittstelleDoubleList- Setzt außer Kraft:
indexOfin KlasseAbstractDoubleList- 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(double e) Beschreibung aus Klasse kopiert:AbstractDoubleListThe lastIndexOf implementation iterates over all elements and compares them to the search value.- Angegeben von:
lastIndexOfin SchnittstelleDoubleList- Setzt außer Kraft:
lastIndexOfin KlasseAbstractDoubleList- 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:DoubleListA Type-Specific Iterator of listIterator- Angegeben von:
listIteratorin SchnittstelleDoubleList- Angegeben von:
listIteratorin SchnittstelleList<Double>- Setzt außer Kraft:
listIteratorin KlasseAbstractDoubleList- Siehe auch:
-
primitiveStream
Returns a Java-Type-Specific Stream to reduce boxing/unboxing.- Angegeben von:
primitiveStreamin SchnittstelleDoubleCollection- 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 SchnittstelleDoubleCollection- Gibt zurück:
- a Stream of the closest java type
-
spliterator
A Type Specific Type Splititerator to reduce boxing/unboxing- Angegeben von:
spliteratorin SchnittstelleCollection<Double>- Angegeben von:
spliteratorin SchnittstelleDoubleCollection- Angegeben von:
spliteratorin SchnittstelleDoubleIterable- Angegeben von:
spliteratorin SchnittstelleDoubleList- Angegeben von:
spliteratorin SchnittstelleIterable<Double>- Angegeben von:
spliteratorin SchnittstelleList<Double>- Gibt zurück:
- type specific splititerator
-
forEach
Beschreibung aus Schnittstelle kopiert:DoubleIterableA Type Specific foreach function that reduces (un)boxing- Angegeben von:
forEachin SchnittstelleDoubleIterable- Parameter:
action- The action to be performed for each element- Siehe auch:
-
forEachIndexed
Beschreibung aus Schnittstelle kopiert:DoubleIterableA Indexed forEach implementation that allows you to keep track of how many elements were already iterated over.- Angegeben von:
forEachIndexedin SchnittstelleDoubleIterable- Angegeben von:
forEachIndexedin SchnittstelleDoubleList- Parameter:
action- The action to be performed for each element
-
forEach
Beschreibung aus Schnittstelle kopiert:DoubleIterableHelper function to reduce Lambda usage and allow for more method references, since these are faster/cleaner.- Angegeben von:
forEachin SchnittstelleDoubleIterable- 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:DoubleIterableHelper function to reduce stream usage that allows to filter for any matches.- Angegeben von:
matchesAnyin SchnittstelleDoubleIterable- Parameter:
filter- that should be applied- Gibt zurück:
- true if any matches were found
-
matchesNone
Beschreibung aus Schnittstelle kopiert:DoubleIterableHelper function to reduce stream usage that allows to filter for no matches.- Angegeben von:
matchesNonein SchnittstelleDoubleIterable- Parameter:
filter- that should be applied- Gibt zurück:
- true if no matches were found
-
matchesAll
Beschreibung aus Schnittstelle kopiert:DoubleIterableHelper function to reduce stream usage that allows to filter for all matches.- Angegeben von:
matchesAllin SchnittstelleDoubleIterable- Parameter:
filter- that should be applied- Gibt zurück:
- true if all matches.
-
findFirst
Beschreibung aus Schnittstelle kopiert:DoubleIterableHelper function to reduce stream usage that allows to filter for the first match.- Angegeben von:
findFirstin SchnittstelleDoubleIterable- Parameter:
filter- that should be applied- Gibt zurück:
- the found value or the null equivalent variant.
-
reduce
Beschreibung aus Schnittstelle kopiert:DoubleIterablePerforms a reduction on the elements of this Iterable- Angegeben von:
reducein SchnittstelleDoubleIterable- 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:DoubleIterablePerforms a reduction on the elements of this Iterable- Angegeben von:
reducein SchnittstelleDoubleIterable- 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:DoubleIterableHelper function to reduce stream usage that allows to count the valid elements.- Angegeben von:
countin SchnittstelleDoubleIterable- Parameter:
filter- that should be applied- Gibt zurück:
- the amount of Valid Elements
-
set
public double set(int index, double e) Beschreibung aus Schnittstelle kopiert:DoubleListA Type-Specific set function to reduce (un)boxing- Angegeben von:
setin SchnittstelleDoubleList- 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
- Siehe auch:
-
replaceAll
Veraltet.Beschreibung aus Schnittstelle kopiert:DoubleListThis default implementation delegates to the corresponding type-specific function.
- Angegeben von:
replaceAllin SchnittstelleDoubleList- Angegeben von:
replaceAllin SchnittstelleList<Double>
-
replaceDoubles
Beschreibung aus Schnittstelle kopiert:DoubleListA Type-Specific replace function to reduce (un)boxing- Angegeben von:
replaceDoublesin SchnittstelleDoubleList- Parameter:
o- the action to replace the values
-
onChanged
public void onChanged()Beschreibung aus Schnittstelle kopiert:DoublePriorityQueueAllows to notify the Queue to be revalidate its data- Angegeben von:
onChangedin SchnittstelleDoublePriorityQueue
-
comparator
- Angegeben von:
comparatorin SchnittstelleDoublePriorityQueue- Gibt zurück:
- the sorter of the Queue, can be null
-
dequeue
public double dequeue()Beschreibung aus Schnittstelle kopiert:DoublePriorityQueueMethod to extract a element from the PriorityQueue- Angegeben von:
dequeuein SchnittstelleDoublePriorityQueue- Gibt zurück:
- a element from the Queue
-
dequeueLast
public double dequeueLast()Beschreibung aus Schnittstelle kopiert:DoublePriorityDequeueA Method to remove a element from the last place instead of the first- Angegeben von:
dequeueLastin SchnittstelleDoublePriorityDequeue- Gibt zurück:
- the last element inserted
-
pop
public double pop()Beschreibung aus Schnittstelle kopiert:DoubleStackRemoves the Object on top of the stack.- Angegeben von:
popin SchnittstelleDoubleStack- Gibt zurück:
- the element that is on top of the stack
- Siehe auch:
-
removeFirst
public boolean removeFirst(double e) Beschreibung aus Schnittstelle kopiert:DoublePriorityQueueRemoves the first found element in the queue- Angegeben von:
removeFirstin SchnittstelleDoublePriorityQueue- Parameter:
e- the element that should be removed- Gibt zurück:
- if a searched element was removed
-
removeLast
public boolean removeLast(double e) Beschreibung aus Schnittstelle kopiert:DoublePriorityQueueRemoves the last found element in the queue- Angegeben von:
removeLastin SchnittstelleDoublePriorityQueue- Parameter:
e- the element that should be removed- Gibt zurück:
- if a searched element was removed
-
swapRemove
public double swapRemove(int index) Beschreibung aus Schnittstelle kopiert:DoubleListA 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 SchnittstelleDoubleList- Parameter:
index- the index of the element to be removed- Gibt zurück:
- the element previously at the specified position
-
swapRemoveDouble
public boolean swapRemoveDouble(double e) Beschreibung aus Schnittstelle kopiert:DoubleListA 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:
swapRemoveDoublein SchnittstelleDoubleList- Setzt außer Kraft:
swapRemoveDoublein KlasseAbstractDoubleList- Parameter:
e- the element that should be removed- Gibt zurück:
- true if the element was removed
-
remDouble
public boolean remDouble(double e) Beschreibung aus Klasse kopiert:AbstractDoubleCollectionA 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:
remDoublein SchnittstelleDoubleCollection- Setzt außer Kraft:
remDoublein KlasseAbstractDoubleCollection- Parameter:
e- the element that is searched for- Gibt zurück:
- true if the element was found and removed.
- Siehe auch:
-
removeDouble
public double removeDouble(int index) Beschreibung aus Schnittstelle kopiert:DoubleListA Type-Specific remove function to reduce (un)boxing- Angegeben von:
removeDoublein SchnittstelleDoubleList- 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:DoubleLista function to fast remove elements from the list.- Angegeben von:
removeElementsin SchnittstelleDoubleList- 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 double[] extractElements(int from, int to) Beschreibung aus Schnittstelle kopiert:DoubleListA function to fast extract elements out of the list, this removes the elements that were fetched.- Angegeben von:
extractElementsin SchnittstelleDoubleList- 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:DoubleListHelper function that allows to fastFill a buffer reducing the duplication requirement- Angegeben von:
fillBufferin SchnittstelleDoubleList- Parameter:
buffer- where the data should be stored in.
-
removeAll
Veraltet.- Angegeben von:
removeAllin SchnittstelleCollection<Double>- Angegeben von:
removeAllin SchnittstelleList<Double>- Setzt außer Kraft:
removeAllin KlasseAbstractCollection<Double>
-
retainAll
Veraltet.- Angegeben von:
retainAllin SchnittstelleCollection<Double>- Angegeben von:
retainAllin SchnittstelleList<Double>- Setzt außer Kraft:
retainAllin KlasseAbstractCollection<Double>
-
removeAll
Beschreibung aus Klasse kopiert:AbstractDoubleCollectionA 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 SchnittstelleDoubleCollection- Setzt außer Kraft:
removeAllin KlasseAbstractDoubleCollection- Parameter:
c- the elements that should be deleted- Gibt zurück:
- true if the collection was modified.
- Siehe auch:
-
removeAll
Beschreibung aus Schnittstelle kopiert:DoubleCollectionA 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 SchnittstelleDoubleCollection- Setzt außer Kraft:
removeAllin KlasseAbstractDoubleCollection- 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:AbstractDoubleCollectionA 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 SchnittstelleDoubleCollection- Setzt außer Kraft:
retainAllin KlasseAbstractDoubleCollection- Parameter:
c- the elements that should be kept- Gibt zurück:
- true if the collection was modified.
- Siehe auch:
-
retainAll
Beschreibung aus Schnittstelle kopiert:DoubleCollectionA 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 SchnittstelleDoubleCollection- Setzt außer Kraft:
retainAllin KlasseAbstractDoubleCollection- 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:DoubleCollectionThis default implementation delegates to the corresponding type-specific function.
- Angegeben von:
removeIfin SchnittstelleCollection<Double>- Angegeben von:
removeIfin SchnittstelleDoubleCollection
-
remIf
Beschreibung aus Schnittstelle kopiert:DoubleCollectionA Type-Specific removeIf function to reduce (un)boxing.Removes elements that were selected by the filter
- Angegeben von:
remIfin SchnittstelleDoubleCollection- 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<Double>- Angegeben von:
toArrayin SchnittstelleList<Double>- Setzt außer Kraft:
toArrayin KlasseAbstractCollection<Double>
-
toArray
public <E> E[] toArray(E[] a) - Angegeben von:
toArrayin SchnittstelleCollection<Double>- Angegeben von:
toArrayin SchnittstelleList<Double>- Setzt außer Kraft:
toArrayin KlasseAbstractCollection<Double>
-
toDoubleArray
public double[] toDoubleArray(double[] a) Beschreibung aus Klasse kopiert:AbstractDoubleCollectionA Type-Specific implementation of toArray. This implementation iterates over all elements and unwraps them into primitive type.- Angegeben von:
toDoubleArrayin SchnittstelleDoubleCollection- Angegeben von:
toDoubleArrayin SchnittstelleDoublePriorityQueue- Angegeben von:
toDoubleArrayin SchnittstelleDoubleStack- Setzt außer Kraft:
toDoubleArrayin KlasseAbstractDoubleCollection- 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:DoubleStackProvides the amount of elements currently in the stack- Angegeben von:
sizein SchnittstelleCollection<Double>- Angegeben von:
sizein SchnittstelleDoublePriorityQueue- Angegeben von:
sizein SchnittstelleDoubleStack- Angegeben von:
sizein SchnittstelleISizeProvider- Angegeben von:
sizein SchnittstelleList<Double>- Angegeben von:
sizein KlasseAbstractCollection<Double>- Gibt zurück:
- the amount of elements that are stored in the PriorityQueue
-
clear
public void clear()Beschreibung aus Schnittstelle kopiert:DoublePriorityQueueclears all elements within the PriorityQueue, this does not resize the backing arrays- Angegeben von:
clearin SchnittstelleCollection<Double>- Angegeben von:
clearin SchnittstelleDoublePriorityQueue- Angegeben von:
clearin SchnittstelleDoubleStack- Angegeben von:
clearin SchnittstelleList<Double>- Setzt außer Kraft:
clearin KlasseAbstractCollection<Double>
-
copy
Beschreibung aus Schnittstelle kopiert:DoubleCollectionA 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 SchnittstelleDoubleCollection- Angegeben von:
copyin SchnittstelleDoubleList- Angegeben von:
copyin SchnittstelleDoublePriorityDequeue- Angegeben von:
copyin SchnittstelleDoublePriorityQueue- Setzt außer Kraft:
copyin KlasseAbstractDoubleList- Gibt zurück:
- a Shallow Copy of the collection
-