java.util.Collection<java.lang.Double>, DoubleCollection, DoubleIterable, java.lang.Iterable<java.lang.Double>, java.util.Set<java.lang.Double>DoubleSortedSetAbstractDoubleSet, AbstractDoubleSortedSet, DoubleArraySet, DoubleAVLTreeSet, DoubleLinkedOpenCustomHashSet, DoubleLinkedOpenHashSet, DoubleOpenCustomHashSet, DoubleOpenHashBigSet, DoubleOpenHashSet, DoubleRBTreeSet, DoubleSets.EmptySet, DoubleSets.Singleton, DoubleSets.SynchronizedSet, DoubleSets.UnmodifiableSet, DoubleSortedSets.EmptySet, DoubleSortedSets.Singleton, DoubleSortedSets.SynchronizedSortedSet, DoubleSortedSets.UnmodifiableSortedSetpublic interface DoubleSet extends DoubleCollection, java.util.Set<java.lang.Double>
Set; provides some additional methods that use
polymorphism to avoid (un)boxing.
Additionally, this interface strengthens (again) iterator().
Set| Modifier and Type | Method | Description |
|---|---|---|
default boolean |
add(java.lang.Double 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.
|
DoubleIterator |
iterator() |
Returns a type-specific iterator on the elements of this set.
|
default boolean |
rem(double k) |
Deprecated.
Please use
remove() instead. |
boolean |
remove(double k) |
Removes an element from this set.
|
default boolean |
remove(java.lang.Object o) |
Deprecated.
Please use the corresponding type-specific method instead.
|
add, addAll, contains, containsAll, removeAll, removeIf, removeIf, retainAll, toArray, toDoubleArray, toDoubleArrayforEach, forEachDoubleIterator iterator()
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 Set.
iterator in interface java.util.Collection<java.lang.Double>iterator in interface DoubleCollectioniterator in interface DoubleIterableiterator in interface java.lang.Iterable<java.lang.Double>iterator in interface java.util.Set<java.lang.Double>Iterable.iterator()boolean remove(double k)
Note that the corresponding method of a type-specific collection is
rem(). This unfortunate situation is caused by the clash with the
similarly named index-based method in the List interface.
Collection.remove(Object)@Deprecated default boolean remove(java.lang.Object o)
remove in interface java.util.Collection<java.lang.Double>remove in interface DoubleCollectionremove in interface java.util.Set<java.lang.Double>@Deprecated default boolean add(java.lang.Double o)
add in interface java.util.Collection<java.lang.Double>add in interface DoubleCollectionadd in interface java.util.Set<java.lang.Double>@Deprecated default boolean contains(java.lang.Object o)
contains in interface java.util.Collection<java.lang.Double>contains in interface DoubleCollectioncontains in interface java.util.Set<java.lang.Double>@Deprecated default 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.
rem in interface DoubleCollectionCollection.remove(Object)