public interface LongCollection extends Collection<Long>
Collection with methods that are specific
for long values.| Modifier and Type | Method and Description |
|---|---|
boolean |
add(long key)
Ensures that this collection contains the specified element.
|
boolean |
contains(long key)
Returns true if this collection contains the specified element.
|
LongIterator |
longIterator()
Returns an iterator over the elements in this collection.
|
default LongStream |
longStream() |
default LongStream |
parallelLongStream() |
boolean |
remove(long key)
Removes a single instance of the specified element from this
collection, if it is present.
|
default Spliterator.OfLong |
spliterator() |
default Spliterator.OfLong |
spliterator(int characteristics) |
long[] |
toLongArray()
Returns an array containing all of the elements in this collection.
|
boolean contains(long key)
Collection.contains(Object)boolean add(long key)
Collection.add(Object)boolean remove(long key)
Collection.remove(Object)long[] toLongArray()
Collection.toArray()LongIterator longIterator()
Collection.iterator()default Spliterator.OfLong spliterator()
spliterator in interface Collection<Long>spliterator in interface Iterable<Long>default Spliterator.OfLong spliterator(int characteristics)
default LongStream longStream()
default LongStream parallelLongStream()
Copyright © 2002–2025 Devexperts LLC. All rights reserved.