public interface BooleanSet
extends it.unimi.dsi.fastutil.booleans.BooleanCollection, java.util.Set<java.lang.Boolean>
Set; provides some additional methods that use polymorphism to avoid (un)boxing.
Additionally, this interface strengthens (again) iterator().
Set| Modifier and Type | Method and Description |
|---|---|
default boolean |
add(java.lang.Boolean o)
Deprecated.
Please use the corresponding type-specific method instead.
|
default boolean |
contains(java.lang.Object o)
Deprecated.
Please use the corresponding type-specific method instead.
|
it.unimi.dsi.fastutil.booleans.BooleanIterator |
iterator()
Returns a type-specific iterator on the elements of this set.
|
static BooleanSet |
of()
Returns an immutable empty set.
|
static BooleanSet |
of(boolean... a)
Returns an immutable list with the elements given.
|
static BooleanSet |
of(boolean e)
Returns an immutable set with the element given.
|
static BooleanSet |
of(boolean e0,
boolean e1)
Returns an immutable set with the elements given.
|
static BooleanSet |
of(boolean e0,
boolean e1,
boolean e2)
Returns an immutable set with the elements given.
|
default boolean |
rem(boolean k)
Deprecated.
Please use
remove() instead. |
boolean |
remove(boolean k)
Removes an element from this set.
|
default boolean |
remove(java.lang.Object o)
Deprecated.
Please use the corresponding type-specific method instead.
|
default it.unimi.dsi.fastutil.booleans.BooleanSpliterator |
spliterator()
Returns a type-specific spliterator on the elements of this set.
|
add, addAll, contains, containsAll, removeAll, removeIf, removeIf, retainAll, toArray, toBooleanArray, toBooleanArrayit.unimi.dsi.fastutil.booleans.BooleanIterator iterator()
iterator in interface it.unimi.dsi.fastutil.booleans.BooleanCollectioniterator in interface it.unimi.dsi.fastutil.booleans.BooleanIterableiterator in interface java.util.Collection<java.lang.Boolean>iterator in interface java.lang.Iterable<java.lang.Boolean>iterator in interface java.util.Set<java.lang.Boolean>default it.unimi.dsi.fastutil.booleans.BooleanSpliterator spliterator()
Set 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 java.util.Collection<java.lang.Boolean>spliterator in interface java.lang.Iterable<java.lang.Boolean>spliterator in interface java.util.Set<java.lang.Boolean>boolean remove(boolean k)
Collection.remove(Object)@Deprecated default boolean remove(java.lang.Object o)
remove in interface it.unimi.dsi.fastutil.booleans.BooleanCollectionremove in interface java.util.Collection<java.lang.Boolean>remove in interface java.util.Set<java.lang.Boolean>@Deprecated default boolean add(java.lang.Boolean o)
add in interface it.unimi.dsi.fastutil.booleans.BooleanCollectionadd in interface java.util.Collection<java.lang.Boolean>add in interface java.util.Set<java.lang.Boolean>@Deprecated default boolean contains(java.lang.Object o)
contains in interface it.unimi.dsi.fastutil.booleans.BooleanCollectioncontains in interface java.util.Collection<java.lang.Boolean>contains in interface java.util.Set<java.lang.Boolean>@Deprecated default boolean rem(boolean k)
remove() instead.This method is inherited from the type-specific collection this
type-specific set is based on, but it should not used as
this interface reinstates remove() as removal method.
rem in interface it.unimi.dsi.fastutil.booleans.BooleanCollectionstatic BooleanSet of()
static BooleanSet of(boolean e)
e - an element.e.static BooleanSet of(boolean e0, boolean e1)
e0 - the first element.e1 - the second element.e0 and e1.java.lang.IllegalArgumentException - if there were duplicate entries.static BooleanSet of(boolean e0, boolean e1, boolean e2)
e0 - the first element.e1 - the second element.e2 - the third element.e0, e1, and e2.java.lang.IllegalArgumentException - if there were duplicate entries.static BooleanSet of(boolean... a)
a - the list of elements that will be in the final set.a.java.lang.IllegalArgumentException - if there are any duplicate entries.