Modul speiger.src.collections
Klasse LongCollections.UnmodifiableCollection
java.lang.Object
speiger.src.collections.longs.utils.LongCollections.UnmodifiableCollection
- Alle implementierten Schnittstellen:
Iterable<Long>,Collection<Long>,LongCollection,LongIterable,ISizeProvider
- Bekannte direkte Unterklassen:
LongSets.UnmodifiableSet
- Umschließende Klasse:
LongCollections
Unmodifyable Collection Wrapper for the unmodifyableCollection method
-
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)boxingbooleanaddAll(long[] e, int offset, int length) A Type-Specific Array based addAll method to reduce the amount of WrappingbooleanaddAll(Collection<? extends Long> c) booleanA Type-Specific addAll function to reduce (un)boxingvoidclear()booleancontains(long o) A Type-Specific contains function to reduce (un)boxingbooleancontainsAll(Collection<?> c) Veraltet.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.intcount(LongPredicate filter) Helper function to reduce stream usage that allows to count the valid elements.booleanlongfindFirst(LongPredicate filter) Helper function to reduce stream usage that allows to filter for the first match.<E> voidforEach(E input, ObjectLongConsumer<E> action) Helper function to reduce Lambda usage and allow for more method references, since these are faster/cleaner.voidVeraltet.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.inthashCode()booleanisEmpty()iterator()Returns a Type-Specific Iterator to reduce (un)boxingbooleanmatchesAll(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.longreduce(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 o) A Type-Specific remove function that reduces (un)boxing.booleanVeraltet.booleanremoveAll(Collection<?> c) Veraltet.booleanA Type-Specific removeAll function that reduces (un)boxing.booleanA Type-Specific removeAll function that reduces (un)boxing.booleanVeraltet.booleanretainAll(Collection<?> c) Veraltet.booleanA Type-Specific retainAll function that reduces (un)boxing.booleanA Type-Specific retainAll function that reduces (un)boxing.intsize()Object[]toArray()<T> T[]toArray(T[] a) long[]A Type-Specific toArray function that delegates toLongCollection.toLongArray(long[])with a newly created array.long[]toLongArray(long[] a) A Type-Specific toArray function that reduces (un)boxing.toString()Von Schnittstelle geerbte Methoden java.util.Collection
parallelStream, stream, toArrayVon Schnittstelle geerbte Methoden speiger.src.collections.longs.collections.LongCollection
add, addAll, addAll, contains, parallelPrimitiveStream, pour, primitiveStream, spliterator, synchronize, synchronize, unmodifiableVon Schnittstelle geerbte Methoden speiger.src.collections.longs.collections.LongIterable
arrayflatMap, asAsync, distinct, filter, flatMap, limit, map, peek, pourAsList, pourAsSet, repeat, sorted
-
Methodendetails
-
add
public boolean add(long o) Beschreibung aus Schnittstelle kopiert:LongCollectionA Type-Specific add function to reduce (un)boxing- Angegeben von:
addin SchnittstelleLongCollection- Parameter:
o- the element that should be added- Gibt zurück:
- true if the element was added to the collection
-
addAll
- Angegeben von:
addAllin SchnittstelleCollection<Long>
-
addAll
Beschreibung aus Schnittstelle kopiert:LongCollectionA Type-Specific addAll function to reduce (un)boxing- Angegeben von:
addAllin SchnittstelleLongCollection- Parameter:
c- the collection of elements that should be added- Gibt zurück:
- true if elements were added into the collection
-
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
-
contains
public boolean contains(long o) Beschreibung aus Schnittstelle kopiert:LongCollectionA Type-Specific contains function to reduce (un)boxing- Angegeben von:
containsin SchnittstelleLongCollection- Parameter:
o- the element that is checked for- Gibt zurück:
- true if the element is found in the collection
-
containsAll
Beschreibung aus Schnittstelle kopiert:LongCollectionA Type-Specific containsAll function to reduce (un)boxing- Angegeben von:
containsAllin SchnittstelleLongCollection- 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
Beschreibung aus Schnittstelle kopiert:LongCollectionA Type-Specific containsAny function to reduce (un)boxing- Angegeben von:
containsAnyin SchnittstelleLongCollection- Parameter:
c- the collection of elements that should be tested for- Gibt zurück:
- true if any element was found
-
containsAny
Veraltet.Beschreibung aus Schnittstelle kopiert:LongCollectionReturns 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.- Angegeben von:
containsAnyin SchnittstelleLongCollection- Parameter:
c- the collection of elements that should be tested for- Gibt zurück:
- true if any element was found.
-
containsAll
Veraltet.- Angegeben von:
containsAllin SchnittstelleCollection<Long>
-
size
public int size()- Angegeben von:
sizein SchnittstelleCollection<Long>- Angegeben von:
sizein SchnittstelleISizeProvider- Gibt zurück:
- the size of the implementing Collection
-
isEmpty
public boolean isEmpty()- Angegeben von:
isEmptyin SchnittstelleCollection<Long>
-
iterator
Beschreibung aus Schnittstelle kopiert:LongCollectionReturns a Type-Specific Iterator to reduce (un)boxing- Angegeben von:
iteratorin SchnittstelleCollection<Long>- Angegeben von:
iteratorin SchnittstelleIterable<Long>- Angegeben von:
iteratorin SchnittstelleLongCollection- Angegeben von:
iteratorin SchnittstelleLongIterable- Gibt zurück:
- a iterator of the collection
- Siehe auch:
-
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- Gibt zurück:
- a Shallow Copy of the collection
-
remove
Veraltet.Beschreibung aus Schnittstelle kopiert:LongCollectionThis default implementation delegates to the corresponding type-specific function.
- Angegeben von:
removein SchnittstelleCollection<Long>- Angegeben von:
removein SchnittstelleLongCollection
-
removeAll
Veraltet.- Angegeben von:
removeAllin SchnittstelleCollection<Long>
-
retainAll
Veraltet.- Angegeben von:
retainAllin SchnittstelleCollection<Long>
-
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
-
remLong
public boolean remLong(long o) Beschreibung aus Schnittstelle kopiert:LongCollectionA Type-Specific remove function that reduces (un)boxing.- Angegeben von:
remLongin SchnittstelleLongCollection- Parameter:
o- the element that should be removed- Gibt zurück:
- true if the element was removed
- Siehe auch:
-
removeAll
Beschreibung aus Schnittstelle kopiert:LongCollectionA Type-Specific removeAll function that reduces (un)boxing.- Angegeben von:
removeAllin SchnittstelleLongCollection- Parameter:
c- the collection of elements that should be removed- Gibt zurück:
- true if any element was removed
- 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- 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 Schnittstelle kopiert:LongCollectionA Type-Specific retainAll function that reduces (un)boxing.- Angegeben von:
retainAllin SchnittstelleLongCollection- Parameter:
c- the collection of elements that should be kept- Gibt zurück:
- true if any element was removed
- 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- 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:
-
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:
-
clear
public void clear()- Angegeben von:
clearin SchnittstelleCollection<Long>
-
toArray
- Angegeben von:
toArrayin SchnittstelleCollection<Long>
-
toArray
public <T> T[] toArray(T[] a) - Angegeben von:
toArrayin SchnittstelleCollection<Long>
-
toLongArray
public long[] toLongArray()Beschreibung aus Schnittstelle kopiert:LongCollectionA Type-Specific toArray function that delegates toLongCollection.toLongArray(long[])with a newly created array.- Angegeben von:
toLongArrayin SchnittstelleLongCollection- Angegeben von:
toLongArrayin SchnittstelleLongIterable- Gibt zurück:
- an array containing all of the elements in this collection
- Siehe auch:
-
toLongArray
public long[] toLongArray(long[] a) Beschreibung aus Schnittstelle kopiert:LongCollectionA Type-Specific toArray function that reduces (un)boxing.- Angegeben von:
toLongArrayin SchnittstelleLongCollection- 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:
-
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:
-
forEach
Veraltet.Beschreibung aus Schnittstelle kopiert:LongIterableThis default implementation delegates to the corresponding type-specific function.
- Angegeben von:
forEachin SchnittstelleIterable<Long>- Angegeben von:
forEachin SchnittstelleLongIterable
-
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- Parameter:
action- The action to be performed for each element
-
hashCode
public int hashCode()- Angegeben von:
hashCodein SchnittstelleCollection<Long>- Setzt außer Kraft:
hashCodein KlasseObject
-
equals
- Angegeben von:
equalsin SchnittstelleCollection<Long>- Setzt außer Kraft:
equalsin KlasseObject
-
toString
-
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.
-
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
-
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.
-
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
-