public static class DoubleCollections.IterableCollection extends AbstractDoubleCollection implements java.io.Serializable
Modifier and Type | Method and Description |
---|---|
DoubleIterator |
doubleIterator()
Returns a primitive iterator on the elements of this collection.
|
DoubleSpliterator |
doubleSpliterator()
Returns a primitive spliterator on the elements of this collection.
|
boolean |
isEmpty() |
DoubleIterator |
iterator()
Returns a type-specific iterator on the elements of this collection.
|
int |
size() |
DoubleSpliterator |
spliterator()
Returns a type-specific spliterator on the elements of this collection.
|
add, add, addAll, addAll, contains, contains, containsAll, containsAll, forEach, rem, remove, removeAll, removeAll, removeIf, retainAll, retainAll, toArray, toDoubleArray, toDoubleArray, toString
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
doubleParallelStream, doubleStream, parallelStream, removeIf, removeIf, stream
forEach, forEach
public int size()
size
in interface java.util.Collection<java.lang.Double>
size
in class java.util.AbstractCollection<java.lang.Double>
public boolean isEmpty()
isEmpty
in interface java.util.Collection<java.lang.Double>
isEmpty
in class java.util.AbstractCollection<java.lang.Double>
public DoubleIterator iterator()
DoubleCollection
iterator
in interface DoubleCollection
iterator
in interface DoubleIterable
iterator
in interface java.lang.Iterable<java.lang.Double>
iterator
in interface java.util.Collection<java.lang.Double>
iterator
in class AbstractDoubleCollection
Iterable.iterator()
public DoubleSpliterator spliterator()
DoubleCollection
See Collection.spliterator()
for more documentation on the requirements
of the returned spliterator.
spliterator
in interface DoubleCollection
spliterator
in interface DoubleIterable
spliterator
in interface java.lang.Iterable<java.lang.Double>
spliterator
in interface java.util.Collection<java.lang.Double>
public DoubleIterator doubleIterator()
DoubleCollection
This method is identical to DoubleCollection.iterator()
, as the type-specific
iterator is already compatible with the JDK's primitive iterators.
It only exists for compatibility with the other primitive types' Collection
s
that have use for widened iterators.
doubleIterator
in interface DoubleCollection
doubleIterator
in interface DoubleIterable
public DoubleSpliterator doubleSpliterator()
DoubleCollection
This method is identical to DoubleCollection.spliterator()
, as the type-specific
spliterator is already compatible with the JDK's primitive spliterators.
It only exists for compatibility with the other primitive types' Collection
s
that have use for widened spliterators.
doubleSpliterator
in interface DoubleCollection
doubleSpliterator
in interface DoubleIterable