Modul speiger.src.collections
Klasse AbstractDoubleList
java.lang.Object
java.util.AbstractCollection<Double>
speiger.src.collections.doubles.collections.AbstractDoubleCollection
speiger.src.collections.doubles.lists.AbstractDoubleList
- Alle implementierten Schnittstellen:
Iterable<Double>,Collection<Double>,List<Double>,DoubleCollection,DoubleIterable,DoubleList,ISizeProvider
- Bekannte direkte Unterklassen:
CopyOnWriteDoubleArrayList,DoubleArrayList,DoubleLinkedList,ImmutableDoubleList
Abstract implementation of the
DoubleList interface.-
Verschachtelte Klassen - Übersicht
Von Schnittstelle geerbte verschachtelte Klassen/Schnittstellen speiger.src.collections.utils.ISizeProvider
ISizeProvider.CollectionSize -
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungbooleanadd(double e) A Type-Specific implementation of add function that delegates toList.add(int, Object)voidVeraltet.Please use the corresponding type-specific function instead.booleanaddAll(Collection<? extends Double> c) Veraltet.Please use the corresponding type-specific function instead.booleanA Type-Specific implementation that iterates over the elements and adds them.booleanaddAll(DoubleList c) A Type-Specific implementation that iterates over the elements and adds them.copy()A Function that does a shallow clone of the Collection itself.booleanCompares if the list are the same.inthashCode()Generates the hashcode based on the values stored in the list.indexedIterator(int... indecies) Creates a Iterator that follows the indecies provided.
For example if the Lists Contents is:
-1, 0 1
and the indecies are:
0, 1, 2, 2, 1, 0
then the iterator will return the following values:
-1, 0, 1, 1, 0, -1indexedIterator(IntList indecies) Creates a Iterator that follows the indecies provided.
For example if the Lists Contents is:
-1, 0 1
and the indecies are:
0, 1, 2, 2, 1, 0
then the iterator will return the following values:
-1, 0, 1, 1, 0, -1intindexOf(double e) The indexOf implementation iterates over all elements and compares them to the search value.intVeraltet.iterator()Returns a Type-Specific Iterator to reduce (un)boxingintlastIndexOf(double e) The lastIndexOf implementation iterates over all elements and compares them to the search value.intVeraltet.A Type-Specific Iterator of listIteratorlistIterator(int index) A Type-Specific Iterator of listIteratorreversed()A Type-Specific List Helper that shows all elements in reverse.voidsize(int size) A function to ensure the elements are within the requested size.subList(int fromIndex, int toIndex) A Type-Specific List of subListbooleanswapRemoveDouble(double e) A Highly Optimized remove function that removes the desired element.Von Klasse geerbte Methoden speiger.src.collections.doubles.collections.AbstractDoubleCollection
add, contains, contains, containsAll, containsAll, containsAny, containsAny, remDouble, remove, removeAll, removeAll, retainAll, retainAll, toDoubleArray, toDoubleArrayVon Klasse geerbte Methoden java.util.AbstractCollection
clear, isEmpty, removeAll, retainAll, size, toArray, toArray, toStringVon Schnittstelle geerbte Methoden java.util.Collection
parallelStream, stream, toArrayVon Schnittstelle geerbte Methoden speiger.src.collections.doubles.collections.DoubleCollection
addAll, addAll, addAll, contains, containsAll, containsAny, containsAny, parallelPrimitiveStream, pour, primitiveStream, remDouble, remIf, removeAll, removeAll, removeIf, retainAll, retainAll, toDoubleArray, toDoubleArrayVon Schnittstelle geerbte Methoden speiger.src.collections.doubles.collections.DoubleIterable
arrayflatMap, asAsync, count, distinct, filter, findFirst, flatMap, forEach, forEach, forEach, limit, map, matchesAll, matchesAny, matchesNone, peek, pourAsList, pourAsSet, reduce, reduce, repeat, sortedVon Schnittstelle geerbte Methoden speiger.src.collections.doubles.lists.DoubleList
add, add, addAll, addAll, addElements, addElements, addElements, addIfAbsent, addIfPresent, contains, extractElements, fillBuffer, forEachIndexed, get, getDouble, getElements, getElements, getFirstDouble, getLastDouble, remove, remove, removeDouble, removeElements, removeFirstDouble, removeLastDouble, replaceAll, replaceDoubles, set, set, sort, sort, spliterator, swapRemove, synchronize, synchronize, unmodifiable, unstableSort, unstableSortVon Schnittstelle geerbte Methoden speiger.src.collections.utils.ISizeProvider
size
-
Konstruktordetails
-
AbstractDoubleList
public AbstractDoubleList()
-
-
Methodendetails
-
add
public boolean add(double e) A Type-Specific implementation of add function that delegates toList.add(int, Object)- Angegeben von:
addin SchnittstelleDoubleCollection- Angegeben von:
addin SchnittstelleDoubleList- Parameter:
e- the element to add- Gibt zurück:
- true if the list was modified
- Siehe auch:
-
add
Veraltet.Please use the corresponding type-specific function instead.This default implementation delegates to the corresponding type-specific function.
-
addAll
A Type-Specific implementation that iterates over the elements and adds them.- Angegeben von:
addAllin SchnittstelleDoubleCollection- Setzt außer Kraft:
addAllin KlasseAbstractDoubleCollection- Parameter:
c- the elements that wants to be added- Gibt zurück:
- true if the list was modified
-
addAll
A Type-Specific implementation that iterates over the elements and adds them.- Angegeben von:
addAllin SchnittstelleDoubleList- Parameter:
c- the elements that wants to be added- Gibt zurück:
- true if the list was modified
-
addAll
Veraltet.Please use the corresponding type-specific function instead.This default implementation delegates to the corresponding type-specific function.
This default implementation delegates to the corresponding type-specific function.
- Angegeben von:
addAllin SchnittstelleCollection<Double>- Angegeben von:
addAllin SchnittstelleList<Double>- Setzt außer Kraft:
addAllin KlasseAbstractDoubleCollection
-
indexOf
Veraltet.The IndexOf implementation iterates over all elements and compares them to the search value.- Angegeben von:
indexOfin SchnittstelleDoubleList- Angegeben von:
indexOfin SchnittstelleList<Double>- 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
- Note:
- it is highly suggested not to use this with Primitives because of boxing. But it is still supported because of ObjectComparason that are custom objects and allow to find the contents.
-
lastIndexOf
Veraltet.The lastIndexOf implementation iterates over all elements and compares them to the search value.- Angegeben von:
lastIndexOfin SchnittstelleDoubleList- Angegeben von:
lastIndexOfin SchnittstelleList<Double>- 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
- Note:
- it is highly suggested not to use this with Primitives because of boxing. But it is still supported because of ObjectComparason that are custom objects and allow to find the contents.
-
indexOf
public int indexOf(double e) The indexOf implementation iterates over all elements and compares them to the search value.- Angegeben von:
indexOfin SchnittstelleDoubleList- 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) The lastIndexOf implementation iterates over all elements and compares them to the search value.- Angegeben von:
lastIndexOfin SchnittstelleDoubleList- 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
-
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- Parameter:
e- the element that should be removed- Gibt zurück:
- true if the element was removed
-
equals
Compares if the list are the same. -
hashCode
public int hashCode()Generates the hashcode based on the values stored in the list. -
subList
Beschreibung aus Schnittstelle kopiert:DoubleListA Type-Specific List of subList- Angegeben von:
subListin SchnittstelleDoubleList- Angegeben von:
subListin SchnittstelleList<Double>- Siehe auch:
-
reversed
Beschreibung aus Schnittstelle kopiert:DoubleListA Type-Specific List Helper that shows all elements in reverse.- Angegeben von:
reversedin SchnittstelleDoubleList- Gibt zurück:
- a list wrapper that has all elements reversed!
-
iterator
Beschreibung aus Schnittstelle kopiert:DoubleCollectionReturns a Type-Specific Iterator to reduce (un)boxing- Angegeben von:
iteratorin SchnittstelleCollection<Double>- Angegeben von:
iteratorin SchnittstelleDoubleCollection- Angegeben von:
iteratorin SchnittstelleDoubleIterable- Angegeben von:
iteratorin SchnittstelleIterable<Double>- Angegeben von:
iteratorin SchnittstelleList<Double>- Angegeben von:
iteratorin KlasseAbstractDoubleCollection- Gibt zurück:
- a iterator of the collection
- Siehe auch:
-
listIterator
Beschreibung aus Schnittstelle kopiert:DoubleListA Type-Specific Iterator of listIterator- Angegeben von:
listIteratorin SchnittstelleDoubleList- Angegeben von:
listIteratorin SchnittstelleList<Double>- Siehe auch:
-
listIterator
Beschreibung aus Schnittstelle kopiert:DoubleListA Type-Specific Iterator of listIterator- Angegeben von:
listIteratorin SchnittstelleDoubleList- Angegeben von:
listIteratorin SchnittstelleList<Double>- Siehe auch:
-
indexedIterator
Beschreibung aus Schnittstelle kopiert:DoubleListCreates a Iterator that follows the indecies provided.
For example if the Lists Contents is:
-1, 0 1
and the indecies are:
0, 1, 2, 2, 1, 0
then the iterator will return the following values:
-1, 0, 1, 1, 0, -1- Angegeben von:
indexedIteratorin SchnittstelleDoubleList- Parameter:
indecies- that should be used for the iteration.- Gibt zurück:
- a custom indexed iterator
-
indexedIterator
Beschreibung aus Schnittstelle kopiert:DoubleListCreates a Iterator that follows the indecies provided.
For example if the Lists Contents is:
-1, 0 1
and the indecies are:
0, 1, 2, 2, 1, 0
then the iterator will return the following values:
-1, 0, 1, 1, 0, -1- Angegeben von:
indexedIteratorin SchnittstelleDoubleList- Parameter:
indecies- that should be used for the iteration.- Gibt zurück:
- a custom indexed iterator
-
size
public void size(int size) Beschreibung aus Schnittstelle kopiert:DoubleListA function to ensure the elements are within the requested size. If smaller then the stored elements they get removed as needed. If bigger it is ensured that enough room is provided depending on the implementation- Angegeben von:
sizein SchnittstelleDoubleList- Parameter:
size- the requested amount of elements/room for elements
-
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- Setzt außer Kraft:
copyin KlasseAbstractDoubleCollection- Gibt zurück:
- a Shallow Copy of the collection
-