Modul speiger.src.collections
Klasse BooleanCollections.UnmodifiableCollection
java.lang.Object
speiger.src.collections.booleans.utils.BooleanCollections.UnmodifiableCollection
- Alle implementierten Schnittstellen:
Iterable<Boolean>,Collection<Boolean>,BooleanCollection,BooleanIterable,ISizeProvider
- Umschließende Klasse:
BooleanCollections
public static class BooleanCollections.UnmodifiableCollection
extends Object
implements BooleanCollection
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(boolean o) A Type-Specific add function to reduce (un)boxingbooleanaddAll(boolean[] e, int offset, int length) A Type-Specific Array based addAll method to reduce the amount of WrappingbooleanaddAll(Collection<? extends Boolean> c) booleanA Type-Specific addAll function to reduce (un)boxingvoidclear()booleancontains(boolean 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(BooleanPredicate filter) Helper function to reduce stream usage that allows to count the valid elements.booleanbooleanfindFirst(BooleanPredicate filter) Helper function to reduce stream usage that allows to filter for the first match.<E> voidforEach(E input, ObjectBooleanConsumer<E> action) Helper function to reduce Lambda usage and allow for more method references, since these are faster/cleaner.voidVeraltet.voidforEach(BooleanConsumer action) A Type Specific foreach function that reduces (un)boxingvoidforEachIndexed(IntBooleanConsumer 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(BooleanPredicate filter) Helper function to reduce stream usage that allows to filter for all matches.booleanmatchesAny(BooleanPredicate filter) Helper function to reduce stream usage that allows to filter for any matches.booleanmatchesNone(BooleanPredicate filter) Helper function to reduce stream usage that allows to filter for no matches.booleanreduce(boolean identity, BooleanBooleanUnaryOperator operator) Performs a reduction on the elements of this Iterablebooleanreduce(BooleanBooleanUnaryOperator operator) Performs a reduction on the elements of this IterablebooleanremBoolean(boolean 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) boolean[]A Type-Specific toArray function that delegates toBooleanCollection.toBooleanArray(boolean[])with a newly created array.boolean[]toBooleanArray(boolean[] a) A Type-Specific toArray function that reduces (un)boxing.toString()Von Schnittstelle geerbte Methoden speiger.src.collections.booleans.collections.BooleanCollection
add, addAll, addAll, contains, pour, spliterator, synchronize, synchronize, unmodifiableVon Schnittstelle geerbte Methoden speiger.src.collections.booleans.collections.BooleanIterable
arrayflatMap, asAsync, distinct, filter, flatMap, limit, map, peek, pourAsList, repeat, sortedVon Schnittstelle geerbte Methoden java.util.Collection
parallelStream, stream, toArray
-
Methodendetails
-
add
public boolean add(boolean o) Beschreibung aus Schnittstelle kopiert:BooleanCollectionA Type-Specific add function to reduce (un)boxing- Angegeben von:
addin SchnittstelleBooleanCollection- 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<Boolean>
-
addAll
Beschreibung aus Schnittstelle kopiert:BooleanCollectionA Type-Specific addAll function to reduce (un)boxing- Angegeben von:
addAllin SchnittstelleBooleanCollection- 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(boolean[] e, int offset, int length) Beschreibung aus Schnittstelle kopiert:BooleanCollectionA Type-Specific Array based addAll method to reduce the amount of Wrapping- Angegeben von:
addAllin SchnittstelleBooleanCollection- 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(boolean o) Beschreibung aus Schnittstelle kopiert:BooleanCollectionA Type-Specific contains function to reduce (un)boxing- Angegeben von:
containsin SchnittstelleBooleanCollection- 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:BooleanCollectionA Type-Specific containsAll function to reduce (un)boxing- Angegeben von:
containsAllin SchnittstelleBooleanCollection- 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:BooleanCollectionA Type-Specific containsAny function to reduce (un)boxing- Angegeben von:
containsAnyin SchnittstelleBooleanCollection- 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:BooleanCollectionReturns 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 SchnittstelleBooleanCollection- 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<Boolean>
-
size
public int size()- Angegeben von:
sizein SchnittstelleCollection<Boolean>- Angegeben von:
sizein SchnittstelleISizeProvider- Gibt zurück:
- the size of the implementing Collection
-
isEmpty
public boolean isEmpty()- Angegeben von:
isEmptyin SchnittstelleCollection<Boolean>
-
iterator
Beschreibung aus Schnittstelle kopiert:BooleanCollectionReturns a Type-Specific Iterator to reduce (un)boxing- Angegeben von:
iteratorin SchnittstelleBooleanCollection- Angegeben von:
iteratorin SchnittstelleBooleanIterable- Angegeben von:
iteratorin SchnittstelleCollection<Boolean>- Angegeben von:
iteratorin SchnittstelleIterable<Boolean>- Gibt zurück:
- a iterator of the collection
- Siehe auch:
-
copy
Beschreibung aus Schnittstelle kopiert:BooleanCollectionA 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 SchnittstelleBooleanCollection- Gibt zurück:
- a Shallow Copy of the collection
-
remove
Veraltet.Beschreibung aus Schnittstelle kopiert:BooleanCollectionThis default implementation delegates to the corresponding type-specific function.
- Angegeben von:
removein SchnittstelleBooleanCollection- Angegeben von:
removein SchnittstelleCollection<Boolean>
-
removeAll
Veraltet.- Angegeben von:
removeAllin SchnittstelleCollection<Boolean>
-
retainAll
Veraltet.- Angegeben von:
retainAllin SchnittstelleCollection<Boolean>
-
removeIf
Veraltet.- Angegeben von:
removeIfin SchnittstelleCollection<Boolean>
-
remBoolean
public boolean remBoolean(boolean o) Beschreibung aus Schnittstelle kopiert:BooleanCollectionA Type-Specific remove function that reduces (un)boxing.- Angegeben von:
remBooleanin SchnittstelleBooleanCollection- Parameter:
o- the element that should be removed- Gibt zurück:
- true if the element was removed
- Siehe auch:
-
removeAll
Beschreibung aus Schnittstelle kopiert:BooleanCollectionA Type-Specific removeAll function that reduces (un)boxing.- Angegeben von:
removeAllin SchnittstelleBooleanCollection- 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:BooleanCollectionA 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 SchnittstelleBooleanCollection- 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:BooleanCollectionA Type-Specific retainAll function that reduces (un)boxing.- Angegeben von:
retainAllin SchnittstelleBooleanCollection- 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:BooleanCollectionA 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 SchnittstelleBooleanCollection- 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:
-
clear
public void clear()- Angegeben von:
clearin SchnittstelleCollection<Boolean>
-
toArray
- Angegeben von:
toArrayin SchnittstelleCollection<Boolean>
-
toArray
public <T> T[] toArray(T[] a) - Angegeben von:
toArrayin SchnittstelleCollection<Boolean>
-
toBooleanArray
public boolean[] toBooleanArray()Beschreibung aus Schnittstelle kopiert:BooleanCollectionA Type-Specific toArray function that delegates toBooleanCollection.toBooleanArray(boolean[])with a newly created array.- Angegeben von:
toBooleanArrayin SchnittstelleBooleanCollection- Angegeben von:
toBooleanArrayin SchnittstelleBooleanIterable- Gibt zurück:
- an array containing all of the elements in this collection
- Siehe auch:
-
toBooleanArray
public boolean[] toBooleanArray(boolean[] a) Beschreibung aus Schnittstelle kopiert:BooleanCollectionA Type-Specific toArray function that reduces (un)boxing.- Angegeben von:
toBooleanArrayin SchnittstelleBooleanCollection- 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:BooleanIterableA Type Specific foreach function that reduces (un)boxing- Angegeben von:
forEachin SchnittstelleBooleanIterable- Parameter:
action- The action to be performed for each element- Siehe auch:
-
forEach
Veraltet.Beschreibung aus Schnittstelle kopiert:BooleanIterableThis default implementation delegates to the corresponding type-specific function.
- Angegeben von:
forEachin SchnittstelleBooleanIterable- Angegeben von:
forEachin SchnittstelleIterable<Boolean>
-
forEachIndexed
Beschreibung aus Schnittstelle kopiert:BooleanIterableA Indexed forEach implementation that allows you to keep track of how many elements were already iterated over.- Angegeben von:
forEachIndexedin SchnittstelleBooleanIterable- Parameter:
action- The action to be performed for each element
-
hashCode
public int hashCode()- Angegeben von:
hashCodein SchnittstelleCollection<Boolean>- Setzt außer Kraft:
hashCodein KlasseObject
-
equals
- Angegeben von:
equalsin SchnittstelleCollection<Boolean>- Setzt außer Kraft:
equalsin KlasseObject
-
toString
-
forEach
Beschreibung aus Schnittstelle kopiert:BooleanIterableHelper function to reduce Lambda usage and allow for more method references, since these are faster/cleaner.- Angegeben von:
forEachin SchnittstelleBooleanIterable- 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:BooleanIterableHelper function to reduce stream usage that allows to filter for any matches.- Angegeben von:
matchesAnyin SchnittstelleBooleanIterable- Parameter:
filter- that should be applied- Gibt zurück:
- true if any matches were found
-
matchesNone
Beschreibung aus Schnittstelle kopiert:BooleanIterableHelper function to reduce stream usage that allows to filter for no matches.- Angegeben von:
matchesNonein SchnittstelleBooleanIterable- Parameter:
filter- that should be applied- Gibt zurück:
- true if no matches were found
-
matchesAll
Beschreibung aus Schnittstelle kopiert:BooleanIterableHelper function to reduce stream usage that allows to filter for all matches.- Angegeben von:
matchesAllin SchnittstelleBooleanIterable- Parameter:
filter- that should be applied- Gibt zurück:
- true if all matches.
-
reduce
Beschreibung aus Schnittstelle kopiert:BooleanIterablePerforms a reduction on the elements of this Iterable- Angegeben von:
reducein SchnittstelleBooleanIterable- 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:BooleanIterablePerforms a reduction on the elements of this Iterable- Angegeben von:
reducein SchnittstelleBooleanIterable- 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:BooleanIterableHelper function to reduce stream usage that allows to filter for the first match.- Angegeben von:
findFirstin SchnittstelleBooleanIterable- Parameter:
filter- that should be applied- Gibt zurück:
- the found value or the null equivalent variant.
-
count
Beschreibung aus Schnittstelle kopiert:BooleanIterableHelper function to reduce stream usage that allows to count the valid elements.- Angegeben von:
countin SchnittstelleBooleanIterable- Parameter:
filter- that should be applied- Gibt zurück:
- the amount of Valid Elements
-