public static class BooleanSets.Singleton extends AbstractBooleanSet implements java.io.Serializable, java.lang.Cloneable
This class may be useful to implement your own in case you subclass a type-specific set.
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
element |
| Modifier | Constructor and Description |
|---|---|
protected |
Singleton(boolean element) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
addAll(it.unimi.dsi.fastutil.booleans.BooleanCollection c) |
boolean |
addAll(java.util.Collection<? extends java.lang.Boolean> c) |
java.lang.Object |
clone() |
boolean |
contains(boolean k) |
void |
forEach(it.unimi.dsi.fastutil.booleans.BooleanConsumer action) |
void |
forEach(java.util.function.Consumer<? super java.lang.Boolean> action)
Deprecated.
|
it.unimi.dsi.fastutil.booleans.BooleanListIterator |
iterator()
Returns a type-specific iterator on the elements of this set.
|
boolean |
remove(boolean k)
Removes an element from this set.
|
boolean |
removeAll(it.unimi.dsi.fastutil.booleans.BooleanCollection c) |
boolean |
removeAll(java.util.Collection<?> c) |
boolean |
removeIf(it.unimi.dsi.fastutil.booleans.BooleanPredicate filter) |
boolean |
removeIf(java.util.function.Predicate<? super java.lang.Boolean> filter)
Deprecated.
|
boolean |
retainAll(it.unimi.dsi.fastutil.booleans.BooleanCollection c) |
boolean |
retainAll(java.util.Collection<?> c) |
int |
size() |
it.unimi.dsi.fastutil.booleans.BooleanSpliterator |
spliterator()
Returns a type-specific spliterator on the elements of this set.
|
java.lang.Object[] |
toArray()
Deprecated.
|
boolean[] |
toBooleanArray() |
equals, hashCode, remadd, add, contains, containsAll, containsAll, remove, toArray, toBooleanArray, toStringfinalize, getClass, notify, notifyAll, wait, wait, waitadd, contains, of, of, of, of, of, removepublic boolean contains(boolean k)
contains in interface it.unimi.dsi.fastutil.booleans.BooleanCollectioncontains in class it.unimi.dsi.fastutil.booleans.AbstractBooleanCollectionpublic boolean remove(boolean k)
AbstractBooleanSetrem() method
implemented by type-specific abstract Collection superclass.remove in interface BooleanSetremove in class AbstractBooleanSetCollection.remove(Object)public it.unimi.dsi.fastutil.booleans.BooleanListIterator iterator()
BooleanSetiterator in interface it.unimi.dsi.fastutil.booleans.BooleanCollectioniterator in interface it.unimi.dsi.fastutil.booleans.BooleanIterableiterator in interface BooleanSetiterator in interface java.lang.Iterable<java.lang.Boolean>iterator in interface java.util.Collection<java.lang.Boolean>iterator in interface java.util.Set<java.lang.Boolean>iterator in class AbstractBooleanSetpublic it.unimi.dsi.fastutil.booleans.BooleanSpliterator spliterator()
BooleanSetSet spliterators must report at least Spliterator.DISTINCT.
See Set.spliterator() for more documentation on the requirements
of the returned spliterator.
spliterator in interface it.unimi.dsi.fastutil.booleans.BooleanCollectionspliterator in interface it.unimi.dsi.fastutil.booleans.BooleanIterablespliterator in interface BooleanSetspliterator in interface java.lang.Iterable<java.lang.Boolean>spliterator in interface java.util.Collection<java.lang.Boolean>spliterator in interface java.util.Set<java.lang.Boolean>public int size()
size in interface java.util.Collection<java.lang.Boolean>size in interface java.util.Set<java.lang.Boolean>size in class java.util.AbstractCollection<java.lang.Boolean>public boolean[] toBooleanArray()
toBooleanArray in interface it.unimi.dsi.fastutil.booleans.BooleanCollectiontoBooleanArray in class it.unimi.dsi.fastutil.booleans.AbstractBooleanCollection@Deprecated public void forEach(java.util.function.Consumer<? super java.lang.Boolean> action)
forEach in interface it.unimi.dsi.fastutil.booleans.BooleanIterableforEach in interface java.lang.Iterable<java.lang.Boolean>public boolean addAll(java.util.Collection<? extends java.lang.Boolean> c)
addAll in interface java.util.Collection<java.lang.Boolean>addAll in interface java.util.Set<java.lang.Boolean>addAll in class it.unimi.dsi.fastutil.booleans.AbstractBooleanCollectionpublic boolean removeAll(java.util.Collection<?> c)
removeAll in interface java.util.Collection<java.lang.Boolean>removeAll in interface java.util.Set<java.lang.Boolean>removeAll in class it.unimi.dsi.fastutil.booleans.AbstractBooleanCollectionpublic boolean retainAll(java.util.Collection<?> c)
retainAll in interface java.util.Collection<java.lang.Boolean>retainAll in interface java.util.Set<java.lang.Boolean>retainAll in class it.unimi.dsi.fastutil.booleans.AbstractBooleanCollection@Deprecated public boolean removeIf(java.util.function.Predicate<? super java.lang.Boolean> filter)
removeIf in interface it.unimi.dsi.fastutil.booleans.BooleanCollectionremoveIf in interface java.util.Collection<java.lang.Boolean>public void forEach(it.unimi.dsi.fastutil.booleans.BooleanConsumer action)
forEach in interface it.unimi.dsi.fastutil.booleans.BooleanIterablepublic boolean addAll(it.unimi.dsi.fastutil.booleans.BooleanCollection c)
addAll in interface it.unimi.dsi.fastutil.booleans.BooleanCollectionaddAll in class it.unimi.dsi.fastutil.booleans.AbstractBooleanCollectionpublic boolean removeAll(it.unimi.dsi.fastutil.booleans.BooleanCollection c)
removeAll in interface it.unimi.dsi.fastutil.booleans.BooleanCollectionremoveAll in class it.unimi.dsi.fastutil.booleans.AbstractBooleanCollectionpublic boolean retainAll(it.unimi.dsi.fastutil.booleans.BooleanCollection c)
retainAll in interface it.unimi.dsi.fastutil.booleans.BooleanCollectionretainAll in class it.unimi.dsi.fastutil.booleans.AbstractBooleanCollectionpublic boolean removeIf(it.unimi.dsi.fastutil.booleans.BooleanPredicate filter)
removeIf in interface it.unimi.dsi.fastutil.booleans.BooleanCollection@Deprecated public java.lang.Object[] toArray()
toArray in interface java.util.Collection<java.lang.Boolean>toArray in interface java.util.Set<java.lang.Boolean>toArray in class java.util.AbstractCollection<java.lang.Boolean>public java.lang.Object clone()
clone in class java.lang.Object