public static class LongCollections.IterableCollection extends AbstractLongCollection implements java.io.Serializable
Modifier and Type | Method and Description |
---|---|
boolean |
isEmpty() |
LongIterator |
iterator()
Returns a type-specific iterator on the elements of this collection.
|
LongIterator |
longIterator()
Returns a primitive iterator on the elements of this collection.
|
LongSpliterator |
longSpliterator()
Returns a primitive spliterator on the elements of this collection.
|
int |
size() |
LongSpliterator |
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, toLongArray, toLongArray, toString
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
longParallelStream, longStream, parallelStream, removeIf, removeIf, stream
forEach, forEach
public int size()
size
in interface java.util.Collection<java.lang.Long>
size
in class java.util.AbstractCollection<java.lang.Long>
public boolean isEmpty()
isEmpty
in interface java.util.Collection<java.lang.Long>
isEmpty
in class java.util.AbstractCollection<java.lang.Long>
public LongIterator iterator()
LongCollection
iterator
in interface LongCollection
iterator
in interface LongIterable
iterator
in interface java.lang.Iterable<java.lang.Long>
iterator
in interface java.util.Collection<java.lang.Long>
iterator
in class AbstractLongCollection
Iterable.iterator()
public LongSpliterator spliterator()
LongCollection
See Collection.spliterator()
for more documentation on the requirements
of the returned spliterator.
spliterator
in interface LongCollection
spliterator
in interface LongIterable
spliterator
in interface java.lang.Iterable<java.lang.Long>
spliterator
in interface java.util.Collection<java.lang.Long>
public LongIterator longIterator()
LongCollection
This method is identical to LongCollection.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.
longIterator
in interface LongCollection
longIterator
in interface LongIterable
public LongSpliterator longSpliterator()
LongCollection
This method is identical to LongCollection.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.
longSpliterator
in interface LongCollection
longSpliterator
in interface LongIterable