public abstract class AbstractDoubleSet extends AbstractDoubleCollection implements java.lang.Cloneable, DoubleSet
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
int |
hashCode()
Returns a hash code for this set.
|
abstract DoubleIterator |
iterator()
Returns a type-specific iterator on the elements of this collection.
|
boolean |
rem(double k)
Delegates to
remove() . |
boolean |
remove(double k)
Removes an element from this set.
|
boolean |
remove(java.lang.Object o)
Delegates to the corresponding type-specific method.
|
add, add, addAll, addAll, contains, contains, containsAll, containsAll, doubleIterator, isEmpty, rem, removeAll, removeAll, retainAll, retainAll, toArray, toArray, toArray, toDoubleArray, toDoubleArray, toString
add, addAll, contains, containsAll, doubleIterator, removeAll, retainAll, toArray, toArray, toDoubleArray, toDoubleArray
public abstract DoubleIterator iterator()
DoubleCollection
Note that this specification strengthens the one given in
Iterable.iterator()
, which was already
strengthened in the corresponding type-specific class,
but was weakened by the fact that this interface extends Collection
.
iterator
in interface DoubleCollection
iterator
in interface DoubleIterable
iterator
in interface DoubleSet
iterator
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 AbstractDoubleCollection
public 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.Object
public 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.Object
public boolean remove(double k)
DoubleSet
Note that the corresponding method of the type-specific collection is rem()
.
This unfortunate situation is caused by the clash
with the similarly named index-based method in the List
interface.
public boolean rem(double k)
remove()
.rem
in interface DoubleCollection
rem
in class AbstractDoubleCollection
k
- the element to be removed.Collection.remove(Object)
public boolean remove(java.lang.Object o)
remove
in interface java.util.Collection<java.lang.Double>
remove
in interface java.util.Set<java.lang.Double>
remove
in class AbstractDoubleCollection