public abstract class AbstractDoubleSet extends it.unimi.dsi.fastutil.doubles.AbstractDoubleCollection implements java.lang.Cloneable, DoubleSet
Note that the type-specific Set interface adds a type-specific remove()
method, as it is no longer harmful for subclasses. Thus, concrete subclasses of this class
must implement remove() (the rem() implementation of this
class just delegates to remove()).
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractDoubleSet() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
int |
hashCode()
Returns a hash code for this set.
|
abstract it.unimi.dsi.fastutil.doubles.DoubleIterator |
iterator()
Returns a type-specific iterator on the elements of this set.
|
boolean |
rem(double k)
Deprecated.
Please use
remove() instead. |
boolean |
remove(double k)
Removes an element from this set.
|
add, add, addAll, addAll, contains, contains, containsAll, containsAll, forEach, remove, removeAll, removeAll, removeIf, retainAll, retainAll, toArray, toDoubleArray, toDoubleArray, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitadd, contains, of, of, of, of, of, remove, spliteratoradd, addAll, contains, containsAll, doubleIterator, doubleParallelStream, doubleSpliterator, doubleStream, parallelStream, removeAll, removeIf, removeIf, removeIf, retainAll, stream, toArray, toDoubleArray, toDoubleArraypublic abstract it.unimi.dsi.fastutil.doubles.DoubleIterator iterator()
DoubleSetiterator in interface it.unimi.dsi.fastutil.doubles.DoubleCollectioniterator in interface it.unimi.dsi.fastutil.doubles.DoubleIterableiterator in interface DoubleSetiterator in interface java.lang.Iterable<java.lang.Double>iterator in interface java.util.Collection<java.lang.Double>iterator in interface java.util.Set<java.lang.Double>iterator in class it.unimi.dsi.fastutil.doubles.AbstractDoubleCollectionpublic boolean equals(java.lang.Object o)
equals in interface java.util.Collection<java.lang.Double>equals in interface java.util.Set<java.lang.Double>equals in class java.lang.Objectpublic int hashCode()
hashCode in interface java.util.Collection<java.lang.Double>hashCode in interface java.util.Set<java.lang.Double>hashCode in class java.lang.Objectpublic boolean remove(double k)
rem() method
implemented by type-specific abstract Collection superclass.@Deprecated public boolean rem(double 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.
Delegates to the type-specific remove() method
specified in the type-specific Set interface.