Modul speiger.src.collections
Schnittstelle LongCollection
- Alle Superschnittstellen:
Collection<Long>,ISizeProvider,Iterable<Long>,LongIterable
- Alle bekannten Unterschnittstellen:
LongList,LongNavigableSet,LongOrderedSet,LongSet,LongSortedSet
- Alle bekannten Implementierungsklassen:
AbstractLongCollection,AbstractLongList,AbstractLongSet,CopyOnWriteLongArrayList,ImmutableLongList,ImmutableLongOpenHashSet,LongArrayList,LongArraySet,LongAVLTreeSet,LongCollections.EmptyCollection,LongCollections.SynchronizedCollection,LongCollections.UnmodifiableCollection,LongLinkedList,LongLinkedOpenCustomHashSet,LongLinkedOpenHashSet,LongOpenCustomHashSet,LongOpenHashSet,LongRBTreeSet,LongSets.UnmodifiableSet
A Type-Specific
Collection that reduces (un)boxing-
Verschachtelte Klassen - Übersicht
Von Schnittstelle geerbte verschachtelte Klassen/Schnittstellen speiger.src.collections.utils.ISizeProvider
ISizeProvider.CollectionSize -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungbooleanadd(long o) A Type-Specific add function to reduce (un)boxingdefault booleanVeraltet.Please use the corresponding type-specific function instead.default booleanaddAll(long... e) A Type-Specific Array based addAll method to reduce the amount of Wrappingdefault booleanaddAll(long[] e, int length) A Type-Specific Array based addAll method to reduce the amount of Wrappingdefault booleanaddAll(long[] e, int offset, int length) A Type-Specific Array based addAll method to reduce the amount of WrappingbooleanA Type-Specific addAll function to reduce (un)boxingbooleancontains(long o) A Type-Specific contains function to reduce (un)boxingdefault booleanVeraltet.Please use the corresponding type-specific function instead.booleanA Type-Specific containsAll function to reduce (un)boxingbooleancontainsAny(Collection<?> c) Veraltet.booleanA Type-Specific containsAny function to reduce (un)boxingcopy()A Function that does a shallow clone of the Collection itself.iterator()Returns a Type-Specific Iterator to reduce (un)boxingdefault LongStreamReturns a Java-Type-Specific Parallel Stream to reduce boxing/unboxing.default <E extends LongCollection>
Epour(E collection) A Helper function to reduce the usage of Streams and allows to collect all elementsdefault LongStreamReturns a Java-Type-Specific Stream to reduce boxing/unboxing.default booleanremIf(LongPredicate filter) A Type-Specific removeIf function to reduce (un)boxing.booleanremLong(long o) A Type-Specific remove function that reduces (un)boxing.default booleanVeraltet.Please use the corresponding type-specific function instead.booleanA Type-Specific removeAll function that reduces (un)boxing.booleanA Type-Specific removeAll function that reduces (un)boxing.default booleanVeraltet.Please use the corresponding type-specific function instead.booleanA Type-Specific retainAll function that reduces (un)boxing.booleanA Type-Specific retainAll function that reduces (un)boxing.default LongSplititeratorA Type Specific Type Splititerator to reduce boxing/unboxingdefault LongCollectionCreates a Wrapped Collection that is Synchronizeddefault LongCollectionsynchronize(Object mutex) Creates a Wrapped Collection that is Synchronizedlong[]A Type-Specific toArray function that delegates totoLongArray(long[])with a newly created array.long[]toLongArray(long[] a) A Type-Specific toArray function that reduces (un)boxing.default LongCollectionCreates a Wrapped Collection that is unmodifiableVon Schnittstelle geerbte Methoden java.util.Collection
addAll, clear, containsAll, equals, hashCode, isEmpty, parallelStream, removeAll, retainAll, size, stream, toArray, toArray, toArrayVon Schnittstelle geerbte Methoden speiger.src.collections.utils.ISizeProvider
sizeVon Schnittstelle geerbte Methoden speiger.src.collections.longs.collections.LongIterable
arrayflatMap, asAsync, count, distinct, filter, findFirst, flatMap, forEach, forEach, forEach, forEachIndexed, limit, map, matchesAll, matchesAny, matchesNone, peek, pourAsList, pourAsSet, reduce, reduce, repeat, sorted
-
Methodendetails
-
add
boolean add(long o) A Type-Specific add function to reduce (un)boxing- Parameter:
o- the element that should be added- Gibt zurück:
- true if the element was added to the collection
-
addAll
A Type-Specific addAll function to reduce (un)boxing- Parameter:
c- the collection of elements that should be added- Gibt zurück:
- true if elements were added into the collection
-
addAll
default boolean addAll(long... e) A Type-Specific Array based addAll method to reduce the amount of Wrapping- Parameter:
e- the elements that should be added- Gibt zurück:
- if the collection was modified
-
addAll
default boolean addAll(long[] e, int length) A Type-Specific Array based addAll method to reduce the amount of Wrapping- Parameter:
e- the elements that should be addedlength- how many elements of the array should be added- Gibt zurück:
- if the collection was modified
-
addAll
default boolean addAll(long[] e, int offset, int length) A Type-Specific Array based addAll method to reduce the amount of Wrapping- 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
-
contains
boolean contains(long o) A Type-Specific contains function to reduce (un)boxing- Parameter:
o- the element that is checked for- Gibt zurück:
- true if the element is found in the collection
-
containsAll
A Type-Specific containsAll function to reduce (un)boxing- Parameter:
c- the collection of elements that should be tested for- Gibt zurück:
- true if all the element is found in the collection
-
containsAny
A Type-Specific containsAny function to reduce (un)boxing- Parameter:
c- the collection of elements that should be tested for- Gibt zurück:
- true if any element was found
-
containsAny
Veraltet.Returns true if any element of the Collection is found in the provided collection. A Small Optimization function to find out of any element is present when comparing collections and not all of them.- Parameter:
c- the collection of elements that should be tested for- Gibt zurück:
- true if any element was found.
-
remLong
boolean remLong(long o) A Type-Specific remove function that reduces (un)boxing.- Parameter:
o- the element that should be removed- Gibt zurück:
- true if the element was removed
- Siehe auch:
-
removeAll
A Type-Specific removeAll function that reduces (un)boxing.- Parameter:
c- the collection of elements that should be removed- Gibt zurück:
- true if any element was removed
- Siehe auch:
-
removeAll
A Type-Specific removeAll function that reduces (un)boxing. It also notifies the remover of which exact element is going to be removed.- 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
A Type-Specific retainAll function that reduces (un)boxing.- Parameter:
c- the collection of elements that should be kept- Gibt zurück:
- true if any element was removed
- Siehe auch:
-
retainAll
A Type-Specific retainAll function that reduces (un)boxing. It also notifies the remover of which exact element is going to be removed.- 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:
-
pour
A Helper function to reduce the usage of Streams and allows to collect all elements- Angegeben von:
pourin SchnittstelleLongIterable- Typparameter:
E- the collection type- Parameter:
collection- that the elements should be inserted to- Gibt zurück:
- the input with the desired elements
-
copy
LongCollection copy()A 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- Gibt zurück:
- a Shallow Copy of the collection
- Note:
- Wrappers and view collections will not support this feature
-
toLongArray
long[] toLongArray()A Type-Specific toArray function that delegates totoLongArray(long[])with a newly created array.- Angegeben von:
toLongArrayin SchnittstelleLongIterable- Gibt zurück:
- an array containing all of the elements in this collection
- Siehe auch:
-
toLongArray
long[] toLongArray(long[] a) A Type-Specific toArray function that reduces (un)boxing.- 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:
-
removeIf
Veraltet.Please use the corresponding type-specific function instead.This default implementation delegates to the corresponding type-specific function.
- Angegeben von:
removeIfin SchnittstelleCollection<Long>
-
remIf
A Type-Specific removeIf function to reduce (un)boxing.Removes elements that were selected by the filter
- Parameter:
filter- Filters the elements that should be removed- Gibt zurück:
- true if the collection was modified
- Löst aus:
NullPointerException- if filter is null- Siehe auch:
-
add
Veraltet.Please use the corresponding type-specific function instead.This default implementation delegates to the corresponding type-specific function.
- Angegeben von:
addin SchnittstelleCollection<Long>
-
contains
Veraltet.Please use the corresponding type-specific function instead.This default implementation delegates to the corresponding type-specific function.
- Angegeben von:
containsin SchnittstelleCollection<Long>
-
remove
Veraltet.Please use the corresponding type-specific function instead.This default implementation delegates to the corresponding type-specific function.
- Angegeben von:
removein SchnittstelleCollection<Long>
-
iterator
LongIterator iterator()Returns a Type-Specific Iterator to reduce (un)boxing- Angegeben von:
iteratorin SchnittstelleCollection<Long>- Angegeben von:
iteratorin SchnittstelleIterable<Long>- Angegeben von:
iteratorin SchnittstelleLongIterable- Gibt zurück:
- a iterator of the collection
- Siehe auch:
-
synchronize
Creates a Wrapped Collection that is Synchronized- Gibt zurück:
- a new Collection that is synchronized
- Siehe auch:
-
synchronize
Creates a Wrapped Collection that is Synchronized- Parameter:
mutex- is the controller of the synchronization block- Gibt zurück:
- a new Collection Wrapper that is synchronized
- Siehe auch:
-
unmodifiable
Creates a Wrapped Collection that is unmodifiable- Gibt zurück:
- a new Collection Wrapper that is unmodifiable
- Siehe auch:
-
primitiveStream
Returns a Java-Type-Specific Stream to reduce boxing/unboxing.- Gibt zurück:
- a Stream of the closest java type
-
parallelPrimitiveStream
Returns a Java-Type-Specific Parallel Stream to reduce boxing/unboxing.- 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 SchnittstelleLongIterable- Gibt zurück:
- type specific splititerator
-