public interface FloatSet
extends it.unimi.dsi.fastutil.floats.FloatCollection, java.util.Set<java.lang.Float>
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.Float 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.floats.FloatIterator |
iterator()
Returns a type-specific iterator on the elements of this set.
|
static FloatSet |
of()
Returns an immutable empty set.
|
static FloatSet |
of(float... a)
Returns an immutable list with the elements given.
|
static FloatSet |
of(float e)
Returns an immutable set with the element given.
|
static FloatSet |
of(float e0,
float e1)
Returns an immutable set with the elements given.
|
static FloatSet |
of(float e0,
float e1,
float e2)
Returns an immutable set with the elements given.
|
default boolean |
rem(float k)
Deprecated.
Please use
remove() instead. |
boolean |
remove(float 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.floats.FloatSpliterator |
spliterator()
Returns a type-specific spliterator on the elements of this set.
|
add, addAll, contains, containsAll, doubleIterator, doubleParallelStream, doubleSpliterator, doubleStream, parallelStream, removeAll, removeIf, removeIf, removeIf, retainAll, stream, toArray, toFloatArray, toFloatArrayit.unimi.dsi.fastutil.floats.FloatIterator iterator()
iterator in interface java.util.Collection<java.lang.Float>iterator in interface it.unimi.dsi.fastutil.floats.FloatCollectioniterator in interface it.unimi.dsi.fastutil.floats.FloatIterableiterator in interface java.lang.Iterable<java.lang.Float>iterator in interface java.util.Set<java.lang.Float>default it.unimi.dsi.fastutil.floats.FloatSpliterator 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 java.util.Collection<java.lang.Float>spliterator in interface it.unimi.dsi.fastutil.floats.FloatCollectionspliterator in interface it.unimi.dsi.fastutil.floats.FloatIterablespliterator in interface java.lang.Iterable<java.lang.Float>spliterator in interface java.util.Set<java.lang.Float>boolean remove(float k)
Collection.remove(Object)@Deprecated default boolean remove(java.lang.Object o)
remove in interface java.util.Collection<java.lang.Float>remove in interface it.unimi.dsi.fastutil.floats.FloatCollectionremove in interface java.util.Set<java.lang.Float>@Deprecated default boolean add(java.lang.Float o)
add in interface java.util.Collection<java.lang.Float>add in interface it.unimi.dsi.fastutil.floats.FloatCollectionadd in interface java.util.Set<java.lang.Float>@Deprecated default boolean contains(java.lang.Object o)
contains in interface java.util.Collection<java.lang.Float>contains in interface it.unimi.dsi.fastutil.floats.FloatCollectioncontains in interface java.util.Set<java.lang.Float>@Deprecated default boolean rem(float 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.floats.FloatCollectionstatic FloatSet of()
static FloatSet of(float e)
e - an element.e.static FloatSet of(float e0, float e1)
e0 - the first element.e1 - the second element.e0 and e1.java.lang.IllegalArgumentException - if there were duplicate entries.static FloatSet of(float e0, float e1, float 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 FloatSet of(float... a)
a - the list of elements that will be in the final set.a.java.lang.IllegalArgumentException - if there are any duplicate entries.