public static class BooleanCollections.EmptyCollection extends AbstractBooleanCollection
ISizeProvider.CollectionSize| Constructor and Description |
|---|
EmptyCollection() |
| 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
|
void |
clear() |
boolean |
contains(boolean o)
A Type-Specific implementation of contains.
|
boolean |
containsAll(BooleanCollection c)
A Type-Specific implementation of containsAll.
|
boolean |
containsAll(java.util.Collection<?> c)
Deprecated.
|
boolean |
containsAny(BooleanCollection c)
This implementation iterates over the elements of the collection and checks if they are stored in this collection.
|
boolean |
containsAny(java.util.Collection<?> c)
Deprecated.
|
BooleanCollections.EmptyCollection |
copy()
A Function that does a shallow clone of the Collection itself.
|
boolean |
equals(java.lang.Object o) |
int |
hashCode() |
BooleanIterator |
iterator()
Returns a Type-Specific Iterator to reduce (un)boxing
|
boolean |
remBoolean(boolean o)
A Type-Specific implementation of remove.
|
boolean |
remove(java.lang.Object o)
Deprecated.
|
boolean |
removeAll(BooleanCollection c)
A Type-Specific implementation of removeAll.
|
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 implementation of retainAll.
|
boolean |
retainAll(java.util.Collection<?> c)
Deprecated.
|
int |
size() |
java.lang.Object[] |
toArray() |
<T> T[] |
toArray(T[] a) |
boolean[] |
toBooleanArray()
A Type-Specific implementation of toArray that links to
AbstractBooleanCollection.toBooleanArray(boolean[]) with a newly created array. |
boolean[] |
toBooleanArray(boolean[] a)
A Type-Specific implementation of toArray.
|
add, addAll, contains, removeAll, retainAlladdAll, addAll, pour, spliterator, synchronize, synchronize, unmodifiablearrayflatMap, asAsync, count, distinct, filter, findFirst, flatMap, forEach, forEach, forEach, forEachIndexed, limit, map, matchesAll, matchesAny, matchesNone, peek, pourAsList, reduce, reduce, repeat, sortedofpublic boolean add(boolean o)
BooleanCollectiono - the element that should be addedpublic boolean addAll(BooleanCollection c)
BooleanCollectionaddAll in interface BooleanCollectionaddAll in class AbstractBooleanCollectionc - the collection of elements that should be addedpublic boolean addAll(boolean[] e,
int offset,
int length)
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)
AbstractBooleanCollectioncontains in interface BooleanCollectioncontains in class AbstractBooleanCollectiono - the element that should be searched for.public boolean containsAll(BooleanCollection c)
AbstractBooleanCollectioncontainsAll in interface BooleanCollectioncontainsAll in class AbstractBooleanCollectionc - the collection that should be checked if it contains all elements.public boolean containsAny(BooleanCollection c)
AbstractBooleanCollectioncontainsAny in interface BooleanCollectioncontainsAny in class AbstractBooleanCollectionc - the elements that should be checked for@Deprecated public boolean containsAny(java.util.Collection<?> c)
AbstractBooleanCollectioncontainsAny in interface BooleanCollectioncontainsAny in class AbstractBooleanCollectionc - the elements that should be checked for@Deprecated public boolean containsAll(java.util.Collection<?> c)
containsAll in interface java.util.Collection<java.lang.Boolean>containsAll in class AbstractBooleanCollectionpublic int hashCode()
hashCode in interface java.util.Collection<java.lang.Boolean>hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in interface java.util.Collection<java.lang.Boolean>equals in class java.lang.Object@Deprecated public boolean remove(java.lang.Object o)
AbstractBooleanCollectionThis default implementation delegates to the corresponding type-specific function.
This default implementation delegates to the corresponding type-specific function.
remove in interface java.util.Collection<java.lang.Boolean>remove in interface BooleanCollectionremove in class AbstractBooleanCollection@Deprecated public boolean removeAll(java.util.Collection<?> c)
removeAll in interface java.util.Collection<java.lang.Boolean>removeAll in class java.util.AbstractCollection<java.lang.Boolean>@Deprecated public boolean retainAll(java.util.Collection<?> c)
retainAll in interface java.util.Collection<java.lang.Boolean>retainAll in class java.util.AbstractCollection<java.lang.Boolean>@Deprecated public boolean removeIf(java.util.function.Predicate<? super java.lang.Boolean> filter)
public boolean remBoolean(boolean o)
AbstractBooleanCollectionremBoolean in interface BooleanCollectionremBoolean in class AbstractBooleanCollectiono - the element that is searched forCollection.remove(Object)public boolean removeAll(BooleanCollection c)
AbstractBooleanCollectionremoveAll in interface BooleanCollectionremoveAll in class AbstractBooleanCollectionc - the elements that should be deletedCollection.removeAll(Collection)public boolean retainAll(BooleanCollection c)
AbstractBooleanCollectionretainAll in interface BooleanCollectionretainAll in class AbstractBooleanCollectionc - the elements that should be keptCollection.retainAll(Collection)public java.lang.Object[] toArray()
toArray in interface java.util.Collection<java.lang.Boolean>toArray in class java.util.AbstractCollection<java.lang.Boolean>public <T> T[] toArray(T[] a)
toArray in interface java.util.Collection<java.lang.Boolean>toArray in class java.util.AbstractCollection<java.lang.Boolean>public boolean[] toBooleanArray()
AbstractBooleanCollectionAbstractBooleanCollection.toBooleanArray(boolean[]) with a newly created array.toBooleanArray in interface BooleanCollectiontoBooleanArray in interface BooleanIterabletoBooleanArray in class AbstractBooleanCollectionCollection.toArray()public boolean[] toBooleanArray(boolean[] a)
AbstractBooleanCollectiontoBooleanArray in interface BooleanCollectiontoBooleanArray in class AbstractBooleanCollectiona - 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 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 BooleanIterableiterator in class AbstractBooleanCollectionCollection.iterator()public void clear()
clear in interface java.util.Collection<java.lang.Boolean>clear in class java.util.AbstractCollection<java.lang.Boolean>public int size()
size in interface java.util.Collection<java.lang.Boolean>size in interface ISizeProvidersize in class java.util.AbstractCollection<java.lang.Boolean>public BooleanCollections.EmptyCollection copy()
BooleanCollectioncopy in interface BooleanCollectioncopy in class AbstractBooleanCollection