public interface BooleanCollection extends java.util.Collection<java.lang.Boolean>, BooleanIterable
Collection that reduces (un)boxing| Modifier and Type | Method and Description |
|---|---|
boolean |
add(boolean o)
A Type-Specific add function to reduce (un)boxing
|
default boolean |
add(java.lang.Boolean o)
Deprecated.
Please use the corresponding type-specific function instead.
|
default boolean |
addAll(boolean... e)
A Type-Specific Array based addAll method to reduce the amount of Wrapping
|
default boolean |
addAll(boolean[] e,
int length)
A Type-Specific Array based addAll method to reduce the amount of Wrapping
|
default 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 |
contains(boolean o)
A Type-Specific contains function to reduce (un)boxing
|
default boolean |
contains(java.lang.Object o)
Deprecated.
Please use the corresponding type-specific function instead.
|
boolean |
containsAll(BooleanCollection c)
A Type-Specific containsAll function to reduce (un)boxing
|
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.
|
BooleanIterator |
iterator()
Returns a Type-Specific Iterator to reduce (un)boxing
|
default <E extends BooleanCollection> |
pour(E collection)
A Helper function to reduce the usage of Streams and allows to collect all elements
|
boolean |
remBoolean(boolean o)
A Type-Specific remove function that reduces (un)boxing.
|
default boolean |
remove(java.lang.Object o)
Deprecated.
Please use the corresponding type-specific function instead.
|
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 |
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.
|
default BooleanSplititerator |
spliterator()
A Type Specific Type Splititerator to reduce boxing/unboxing
|
default BooleanCollection |
synchronize()
Creates a Wrapped Collection that is Synchronized
|
default BooleanCollection |
synchronize(java.lang.Object mutex)
Creates a Wrapped Collection that is Synchronized
|
boolean[] |
toBooleanArray()
A Type-Specific toArray function that delegates to
toBooleanArray(boolean[]) with a newly created array. |
boolean[] |
toBooleanArray(boolean[] a)
A Type-Specific toArray function that reduces (un)boxing.
|
default BooleanCollection |
unmodifiable()
Creates a Wrapped Collection that is unmodifiable
|
addAll, clear, containsAll, equals, hashCode, isEmpty, parallelStream, removeAll, removeIf, retainAll, size, stream, toArray, toArrayarrayflatMap, asAsync, count, distinct, filter, findFirst, flatMap, forEach, forEach, forEach, limit, map, matchesAll, matchesAny, matchesNone, peek, pourAsList, reduce, reduce, sortedboolean add(boolean o)
o - the element that should be addedboolean addAll(BooleanCollection c)
c - the collection of elements that should be addeddefault boolean addAll(boolean... e)
e - the elements that should be addeddefault boolean addAll(boolean[] e,
int length)
e - the elements that should be addedlength - how many elements of the array should be addeddefault boolean addAll(boolean[] e,
int offset,
int length)
e - the elements that should be addedoffset - where to start within the arraylength - how many elements of the array should be addedboolean contains(boolean o)
o - the element that is checked forboolean containsAll(BooleanCollection c)
c - the collection of elements that should be tested forboolean containsAny(BooleanCollection c)
c - the collection of elements that should be tested for@Deprecated boolean containsAny(java.util.Collection<?> c)
c - the collection of elements that should be tested forboolean remBoolean(boolean o)
o - the element that should be removedCollection.remove(Object)boolean removeAll(BooleanCollection c)
c - the collection of elements that should be removedCollection.removeAll(Collection)boolean removeAll(BooleanCollection c, BooleanConsumer r)
c - the collection of elements that should be removedr - elements that got removedCollection.removeAll(Collection)boolean retainAll(BooleanCollection c)
c - the collection of elements that should be keptCollection.retainAll(Collection)boolean retainAll(BooleanCollection c, BooleanConsumer r)
c - the collection of elements that should be keptr - elements that got removedCollection.retainAll(Collection)default <E extends BooleanCollection> E pour(E collection)
pour in interface BooleanIterableE - the collection typecollection - that the elements should be inserted toBooleanCollection copy()
boolean[] toBooleanArray()
toBooleanArray(boolean[]) with a newly created array.Collection.toArray()boolean[] toBooleanArray(boolean[] a)
a - array that the elements should be injected to. If null or to small a new array with the right size is createdCollection.toArray(Object[])@Deprecated default boolean add(java.lang.Boolean o)
This default implementation delegates to the corresponding type-specific function.
add in interface java.util.Collection<java.lang.Boolean>@Deprecated default boolean contains(java.lang.Object o)
This default implementation delegates to the corresponding type-specific function.
contains in interface java.util.Collection<java.lang.Boolean>@Deprecated default boolean remove(java.lang.Object o)
This default implementation delegates to the corresponding type-specific function.
remove in interface java.util.Collection<java.lang.Boolean>BooleanIterator iterator()
iterator in interface BooleanIterableiterator in interface java.util.Collection<java.lang.Boolean>iterator in interface java.lang.Iterable<java.lang.Boolean>Collection.iterator()default BooleanCollection synchronize()
BooleanCollections.synchronize(speiger.src.collections.booleans.collections.BooleanCollection)default BooleanCollection synchronize(java.lang.Object mutex)
mutex - is the controller of the synchronization blockBooleanCollections.synchronize(speiger.src.collections.booleans.collections.BooleanCollection)default BooleanCollection unmodifiable()
BooleanCollections.unmodifiable(speiger.src.collections.booleans.collections.BooleanCollection)default BooleanSplititerator spliterator()
spliterator in interface BooleanIterablespliterator in interface java.util.Collection<java.lang.Boolean>spliterator in interface java.lang.Iterable<java.lang.Boolean>