public static class BooleanCollections.UnmodifiableCollection extends java.lang.Object implements BooleanCollection
ISizeProvider.CollectionSize| Modifier and Type | Method and Description |
|---|---|
boolean |
add(boolean o)
A Type-Specific add function to reduce (un)boxing
|
boolean |
addAll(boolean[] e,
int offset,
int length)
A Type-Specific Array based addAll method to reduce the amount of Wrapping
|
boolean |
addAll(BooleanCollection c)
A Type-Specific addAll function to reduce (un)boxing
|
boolean |
addAll(java.util.Collection<? extends java.lang.Boolean> c) |
void |
clear() |
boolean |
contains(boolean o)
A Type-Specific contains function to reduce (un)boxing
|
boolean |
containsAll(BooleanCollection c)
A Type-Specific containsAll function to reduce (un)boxing
|
boolean |
containsAll(java.util.Collection<?> c)
Deprecated.
|
boolean |
containsAny(BooleanCollection c)
A Type-Specific containsAny function to reduce (un)boxing
|
boolean |
containsAny(java.util.Collection<?> c)
Deprecated.
|
BooleanCollection |
copy()
A Function that does a shallow clone of the Collection itself.
|
int |
count(BooleanPredicate filter)
Helper function to reduce stream usage that allows to count the valid elements.
|
boolean |
equals(java.lang.Object obj) |
boolean |
findFirst(BooleanPredicate filter)
Helper function to reduce stream usage that allows to filter for the first match.
|
void |
forEach(BooleanConsumer action)
A Type Specific foreach function that reduces (un)boxing
|
void |
forEach(java.util.function.Consumer<? super java.lang.Boolean> action)
Deprecated.
|
<E> void |
forEach(E input,
ObjectBooleanConsumer<E> action)
Helper function to reduce Lambda usage and allow for more method references, since these are faster/cleaner.
|
void |
forEachIndexed(IntBooleanConsumer action)
A Indexed forEach implementation that allows you to keep track of how many elements were already iterated over.
|
int |
hashCode() |
boolean |
isEmpty() |
BooleanIterator |
iterator()
Returns a Type-Specific Iterator to reduce (un)boxing
|
boolean |
matchesAll(BooleanPredicate filter)
Helper function to reduce stream usage that allows to filter for all matches.
|
boolean |
matchesAny(BooleanPredicate filter)
Helper function to reduce stream usage that allows to filter for any matches.
|
boolean |
matchesNone(BooleanPredicate filter)
Helper function to reduce stream usage that allows to filter for no matches.
|
boolean |
reduce(boolean identity,
BooleanBooleanUnaryOperator operator)
Performs a reduction on the
elements of this Iterable
|
boolean |
reduce(BooleanBooleanUnaryOperator operator)
Performs a reduction on the
elements of this Iterable
|
boolean |
remBoolean(boolean o)
A Type-Specific remove function that reduces (un)boxing.
|
boolean |
remove(java.lang.Object o)
Deprecated.
|
boolean |
removeAll(BooleanCollection c)
A Type-Specific removeAll function that reduces (un)boxing.
|
boolean |
removeAll(BooleanCollection c,
BooleanConsumer r)
A Type-Specific removeAll function that reduces (un)boxing.
|
boolean |
removeAll(java.util.Collection<?> c)
Deprecated.
|
boolean |
removeIf(java.util.function.Predicate<? super java.lang.Boolean> filter)
Deprecated.
|
boolean |
retainAll(BooleanCollection c)
A Type-Specific retainAll function that reduces (un)boxing.
|
boolean |
retainAll(BooleanCollection c,
BooleanConsumer r)
A Type-Specific retainAll function that reduces (un)boxing.
|
boolean |
retainAll(java.util.Collection<?> c)
Deprecated.
|
int |
size() |
java.lang.Object[] |
toArray() |
<T> T[] |
toArray(T[] a) |
boolean[] |
toBooleanArray()
A Type-Specific toArray function that delegates to
BooleanCollection.toBooleanArray(boolean[]) with a newly created array. |
boolean[] |
toBooleanArray(boolean[] a)
A Type-Specific toArray function that reduces (un)boxing.
|
java.lang.String |
toString() |
add, addAll, addAll, contains, pour, spliterator, synchronize, synchronize, unmodifiablearrayflatMap, asAsync, distinct, filter, flatMap, limit, map, peek, pourAsList, repeat, sortedofpublic boolean add(boolean o)
BooleanCollectionadd in interface BooleanCollectiono - the element that should be addedpublic boolean addAll(java.util.Collection<? extends java.lang.Boolean> c)
addAll in interface java.util.Collection<java.lang.Boolean>public boolean addAll(BooleanCollection c)
BooleanCollectionaddAll in interface BooleanCollectionc - the collection of elements that should be addedpublic boolean addAll(boolean[] e,
int offset,
int length)
BooleanCollectionaddAll in interface BooleanCollectione - the elements that should be addedoffset - where to start within the arraylength - how many elements of the array should be addedpublic boolean contains(boolean o)
BooleanCollectioncontains in interface BooleanCollectiono - the element that is checked forpublic boolean containsAll(BooleanCollection c)
BooleanCollectioncontainsAll in interface BooleanCollectionc - the collection of elements that should be tested forpublic boolean containsAny(BooleanCollection c)
BooleanCollectioncontainsAny in interface BooleanCollectionc - the collection of elements that should be tested for@Deprecated public boolean containsAny(java.util.Collection<?> c)
BooleanCollectioncontainsAny in interface BooleanCollectionc - the collection of elements that should be tested for@Deprecated public boolean containsAll(java.util.Collection<?> c)
containsAll in interface java.util.Collection<java.lang.Boolean>public int size()
size in interface java.util.Collection<java.lang.Boolean>size in interface ISizeProviderpublic boolean isEmpty()
isEmpty in interface java.util.Collection<java.lang.Boolean>public BooleanIterator iterator()
BooleanCollectioniterator in interface java.lang.Iterable<java.lang.Boolean>iterator in interface java.util.Collection<java.lang.Boolean>iterator in interface BooleanCollectioniterator in interface BooleanIterableCollection.iterator()public BooleanCollection copy()
BooleanCollectioncopy in interface BooleanCollection@Deprecated public boolean remove(java.lang.Object o)
BooleanCollectionThis default implementation delegates to the corresponding type-specific function.
remove in interface java.util.Collection<java.lang.Boolean>remove in interface BooleanCollection@Deprecated public boolean removeAll(java.util.Collection<?> c)
removeAll in interface java.util.Collection<java.lang.Boolean>@Deprecated public boolean retainAll(java.util.Collection<?> c)
retainAll in interface java.util.Collection<java.lang.Boolean>@Deprecated public boolean removeIf(java.util.function.Predicate<? super java.lang.Boolean> filter)
removeIf in interface java.util.Collection<java.lang.Boolean>public boolean remBoolean(boolean o)
BooleanCollectionremBoolean in interface BooleanCollectiono - the element that should be removedCollection.remove(Object)public boolean removeAll(BooleanCollection c)
BooleanCollectionremoveAll in interface BooleanCollectionc - the collection of elements that should be removedCollection.removeAll(Collection)public boolean removeAll(BooleanCollection c, BooleanConsumer r)
BooleanCollectionremoveAll in interface BooleanCollectionc - the collection of elements that should be removedr - elements that got removedCollection.removeAll(Collection)public boolean retainAll(BooleanCollection c)
BooleanCollectionretainAll in interface BooleanCollectionc - the collection of elements that should be keptCollection.retainAll(Collection)public boolean retainAll(BooleanCollection c, BooleanConsumer r)
BooleanCollectionretainAll in interface BooleanCollectionc - the collection of elements that should be keptr - elements that got removedCollection.retainAll(Collection)public void clear()
clear in interface java.util.Collection<java.lang.Boolean>public java.lang.Object[] toArray()
toArray in interface java.util.Collection<java.lang.Boolean>public <T> T[] toArray(T[] a)
toArray in interface java.util.Collection<java.lang.Boolean>public boolean[] toBooleanArray()
BooleanCollectionBooleanCollection.toBooleanArray(boolean[]) with a newly created array.toBooleanArray in interface BooleanCollectiontoBooleanArray in interface BooleanIterableCollection.toArray()public boolean[] toBooleanArray(boolean[] a)
BooleanCollectiontoBooleanArray in interface BooleanCollectiona - array that the elements should be injected to. If null or to small a new array with the right size is createdCollection.toArray(Object[])public void forEach(BooleanConsumer action)
BooleanIterableforEach in interface BooleanIterableaction - The action to be performed for each elementIterable.forEach(Consumer)@Deprecated public void forEach(java.util.function.Consumer<? super java.lang.Boolean> action)
BooleanIterableThis default implementation delegates to the corresponding type-specific function.
forEach in interface java.lang.Iterable<java.lang.Boolean>forEach in interface BooleanIterablepublic void forEachIndexed(IntBooleanConsumer action)
BooleanIterableforEachIndexed in interface BooleanIterableaction - The action to be performed for each elementpublic int hashCode()
hashCode in interface java.util.Collection<java.lang.Boolean>hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in interface java.util.Collection<java.lang.Boolean>equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Objectpublic <E> void forEach(E input,
ObjectBooleanConsumer<E> action)
BooleanIterableforEach in interface BooleanIterableE - the generic type of the Objectinput - the object that should be includedaction - The action to be performed for each elementpublic boolean matchesAny(BooleanPredicate filter)
BooleanIterablematchesAny in interface BooleanIterablefilter - that should be appliedpublic boolean matchesNone(BooleanPredicate filter)
BooleanIterablematchesNone in interface BooleanIterablefilter - that should be appliedpublic boolean matchesAll(BooleanPredicate filter)
BooleanIterablematchesAll in interface BooleanIterablefilter - that should be appliedpublic boolean reduce(boolean identity,
BooleanBooleanUnaryOperator operator)
BooleanIterablereduce in interface BooleanIterableidentity - the start valueoperator - the operation that should be appliedpublic boolean reduce(BooleanBooleanUnaryOperator operator)
BooleanIterablereduce in interface BooleanIterableoperator - the operation that should be appliedpublic boolean findFirst(BooleanPredicate filter)
BooleanIterablefindFirst in interface BooleanIterablefilter - that should be appliedpublic int count(BooleanPredicate filter)
BooleanIterablecount in interface BooleanIterablefilter - that should be applied