Modul speiger.src.collections
Klasse IntCollections.SynchronizedCollection
java.lang.Object
speiger.src.collections.ints.utils.IntCollections.SynchronizedCollection
- Alle implementierten Schnittstellen:
Iterable<Integer>,Collection<Integer>,IntCollection,IntIterable,ISizeProvider
- Umschließende Klasse:
IntCollections
Synchronized Collection Wrapper for the synchronizedCollection function
-
Verschachtelte Klassen - Übersicht
Von Schnittstelle geerbte verschachtelte Klassen/Schnittstellen speiger.src.collections.utils.ISizeProvider
ISizeProvider.CollectionSize -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungbooleanadd(int o) A Type-Specific add function to reduce (un)boxingbooleanaddAll(int[] e, int offset, int length) A Type-Specific Array based addAll method to reduce the amount of WrappingbooleanaddAll(Collection<? extends Integer> c) booleanA Type-Specific addAll function to reduce (un)boxingvoidclear()booleancontains(int 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(IntPredicate filter) Helper function to reduce stream usage that allows to count the valid elements.booleanintfindFirst(IntPredicate filter) Helper function to reduce stream usage that allows to filter for the first match.<E> voidforEach(E input, ObjectIntConsumer<E> action) Helper function to reduce Lambda usage and allow for more method references, since these are faster/cleaner.voidVeraltet.voidforEach(IntConsumer action) A Type Specific foreach function that reduces (un)boxingvoidforEachIndexed(IntIntConsumer 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(IntPredicate filter) Helper function to reduce stream usage that allows to filter for all matches.booleanmatchesAny(IntPredicate filter) Helper function to reduce stream usage that allows to filter for any matches.booleanmatchesNone(IntPredicate filter) Helper function to reduce stream usage that allows to filter for no matches.intreduce(int identity, IntIntUnaryOperator operator) Performs a reduction on the elements of this Iterableintreduce(IntIntUnaryOperator operator) Performs a reduction on the elements of this IterablebooleanremIf(IntPredicate filter) A Type-Specific removeIf function to reduce (un)boxing.booleanremInt(int 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.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) int[]A Type-Specific toArray function that delegates toIntCollection.toIntArray(int[])with a newly created array.int[]toIntArray(int[] 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.ints.collections.IntCollection
add, addAll, addAll, contains, parallelPrimitiveStream, pour, primitiveStream, removeIf, spliterator, synchronize, synchronize, unmodifiableVon Schnittstelle geerbte Methoden speiger.src.collections.ints.collections.IntIterable
arrayflatMap, asAsync, distinct, filter, flatMap, limit, map, peek, pourAsList, pourAsSet, repeat, sorted
-
Methodendetails
-
add
public boolean add(int o) Beschreibung aus Schnittstelle kopiert:IntCollectionA Type-Specific add function to reduce (un)boxing- Angegeben von:
addin SchnittstelleIntCollection- 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<Integer>
-
addAll
Beschreibung aus Schnittstelle kopiert:IntCollectionA Type-Specific addAll function to reduce (un)boxing- Angegeben von:
addAllin SchnittstelleIntCollection- 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(int[] e, int offset, int length) Beschreibung aus Schnittstelle kopiert:IntCollectionA Type-Specific Array based addAll method to reduce the amount of Wrapping- Angegeben von:
addAllin SchnittstelleIntCollection- 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(int o) Beschreibung aus Schnittstelle kopiert:IntCollectionA Type-Specific contains function to reduce (un)boxing- Angegeben von:
containsin SchnittstelleIntCollection- Parameter:
o- the element that is checked for- Gibt zurück:
- true if the element is found in the collection
-
containsAll
Veraltet.- Angegeben von:
containsAllin SchnittstelleCollection<Integer>
-
containsAny
Veraltet.Beschreibung aus Schnittstelle kopiert:IntCollectionReturns 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 SchnittstelleIntCollection- Parameter:
c- the collection of elements that should be tested for- Gibt zurück:
- true if any element was found.
-
containsAll
Beschreibung aus Schnittstelle kopiert:IntCollectionA Type-Specific containsAll function to reduce (un)boxing- Angegeben von:
containsAllin SchnittstelleIntCollection- 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:IntCollectionA Type-Specific containsAny function to reduce (un)boxing- Angegeben von:
containsAnyin SchnittstelleIntCollection- Parameter:
c- the collection of elements that should be tested for- Gibt zurück:
- true if any element was found
-
size
public int size()- Angegeben von:
sizein SchnittstelleCollection<Integer>- Angegeben von:
sizein SchnittstelleISizeProvider- Gibt zurück:
- the size of the implementing Collection
-
isEmpty
public boolean isEmpty()- Angegeben von:
isEmptyin SchnittstelleCollection<Integer>
-
iterator
Beschreibung aus Schnittstelle kopiert:IntCollectionReturns a Type-Specific Iterator to reduce (un)boxing- Angegeben von:
iteratorin SchnittstelleCollection<Integer>- Angegeben von:
iteratorin SchnittstelleIntCollection- Angegeben von:
iteratorin SchnittstelleIntIterable- Angegeben von:
iteratorin SchnittstelleIterable<Integer>- Gibt zurück:
- a iterator of the collection
- Siehe auch:
-
copy
Beschreibung aus Schnittstelle kopiert:IntCollectionA 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 SchnittstelleIntCollection- Gibt zurück:
- a Shallow Copy of the collection
-
remove
Veraltet.Beschreibung aus Schnittstelle kopiert:IntCollectionThis default implementation delegates to the corresponding type-specific function.
- Angegeben von:
removein SchnittstelleCollection<Integer>- Angegeben von:
removein SchnittstelleIntCollection
-
removeAll
Veraltet.- Angegeben von:
removeAllin SchnittstelleCollection<Integer>
-
retainAll
Veraltet.- Angegeben von:
retainAllin SchnittstelleCollection<Integer>
-
remInt
public boolean remInt(int o) Beschreibung aus Schnittstelle kopiert:IntCollectionA Type-Specific remove function that reduces (un)boxing.- Angegeben von:
remIntin SchnittstelleIntCollection- Parameter:
o- the element that should be removed- Gibt zurück:
- true if the element was removed
- Siehe auch:
-
removeAll
Beschreibung aus Schnittstelle kopiert:IntCollectionA Type-Specific removeAll function that reduces (un)boxing.- Angegeben von:
removeAllin SchnittstelleIntCollection- 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:IntCollectionA 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 SchnittstelleIntCollection- 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:IntCollectionA Type-Specific retainAll function that reduces (un)boxing.- Angegeben von:
retainAllin SchnittstelleIntCollection- 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:IntCollectionA 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 SchnittstelleIntCollection- 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:IntCollectionA Type-Specific removeIf function to reduce (un)boxing.Removes elements that were selected by the filter
- Angegeben von:
remIfin SchnittstelleIntCollection- 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<Integer>
-
toArray
- Angegeben von:
toArrayin SchnittstelleCollection<Integer>
-
toArray
public <T> T[] toArray(T[] a) - Angegeben von:
toArrayin SchnittstelleCollection<Integer>
-
toIntArray
public int[] toIntArray()Beschreibung aus Schnittstelle kopiert:IntCollectionA Type-Specific toArray function that delegates toIntCollection.toIntArray(int[])with a newly created array.- Angegeben von:
toIntArrayin SchnittstelleIntCollection- Angegeben von:
toIntArrayin SchnittstelleIntIterable- Gibt zurück:
- an array containing all of the elements in this collection
- Siehe auch:
-
toIntArray
public int[] toIntArray(int[] a) Beschreibung aus Schnittstelle kopiert:IntCollectionA Type-Specific toArray function that reduces (un)boxing.- Angegeben von:
toIntArrayin SchnittstelleIntCollection- 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:IntIterableA Type Specific foreach function that reduces (un)boxing- Angegeben von:
forEachin SchnittstelleIntIterable- Parameter:
action- The action to be performed for each element- Siehe auch:
-
forEach
Veraltet.Beschreibung aus Schnittstelle kopiert:IntIterableThis default implementation delegates to the corresponding type-specific function.
- Angegeben von:
forEachin SchnittstelleIntIterable- Angegeben von:
forEachin SchnittstelleIterable<Integer>
-
forEachIndexed
Beschreibung aus Schnittstelle kopiert:IntIterableA Indexed forEach implementation that allows you to keep track of how many elements were already iterated over.- Angegeben von:
forEachIndexedin SchnittstelleIntIterable- Parameter:
action- The action to be performed for each element
-
hashCode
public int hashCode()- Angegeben von:
hashCodein SchnittstelleCollection<Integer>- Setzt außer Kraft:
hashCodein KlasseObject
-
equals
- Angegeben von:
equalsin SchnittstelleCollection<Integer>- Setzt außer Kraft:
equalsin KlasseObject
-
toString
-
forEach
Beschreibung aus Schnittstelle kopiert:IntIterableHelper function to reduce Lambda usage and allow for more method references, since these are faster/cleaner.- Angegeben von:
forEachin SchnittstelleIntIterable- 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:IntIterableHelper function to reduce stream usage that allows to filter for any matches.- Angegeben von:
matchesAnyin SchnittstelleIntIterable- Parameter:
filter- that should be applied- Gibt zurück:
- true if any matches were found
-
matchesNone
Beschreibung aus Schnittstelle kopiert:IntIterableHelper function to reduce stream usage that allows to filter for no matches.- Angegeben von:
matchesNonein SchnittstelleIntIterable- Parameter:
filter- that should be applied- Gibt zurück:
- true if no matches were found
-
matchesAll
Beschreibung aus Schnittstelle kopiert:IntIterableHelper function to reduce stream usage that allows to filter for all matches.- Angegeben von:
matchesAllin SchnittstelleIntIterable- Parameter:
filter- that should be applied- Gibt zurück:
- true if all matches.
-
reduce
Beschreibung aus Schnittstelle kopiert:IntIterablePerforms a reduction on the elements of this Iterable- Angegeben von:
reducein SchnittstelleIntIterable- 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:IntIterablePerforms a reduction on the elements of this Iterable- Angegeben von:
reducein SchnittstelleIntIterable- 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:IntIterableHelper function to reduce stream usage that allows to filter for the first match.- Angegeben von:
findFirstin SchnittstelleIntIterable- Parameter:
filter- that should be applied- Gibt zurück:
- the found value or the null equivalent variant.
-
count
Beschreibung aus Schnittstelle kopiert:IntIterableHelper function to reduce stream usage that allows to count the valid elements.- Angegeben von:
countin SchnittstelleIntIterable- Parameter:
filter- that should be applied- Gibt zurück:
- the amount of Valid Elements
-