Uses of Interface
java.util.Spliterator
Package
Description
Provides classes that are fundamental to the design of the Java
programming language.
Provides low-level access to memory and functions outside the Java runtime.
Contains the collections framework, some internationalization support classes,
a service loader, properties, random number generation, string parsing
and scanning classes, base64 encoding and decoding, a bit array, and
several miscellaneous utility classes.
Utility classes commonly useful in concurrent programming.
Classes to support functional-style operations on streams of elements, such
as map-reduce transformations on collections.
-
Uses of Spliterator in java.lang
Modifier and TypeMethodDescriptiondefault Spliterator
<T> Iterable.spliterator()
Creates aSpliterator
over the elements described by thisIterable
. -
Uses of Spliterator in java.lang.foreign
Modifier and TypeMethodDescriptionMemorySegment.spliterator
(MemoryLayoutPREVIEW elementLayout) Returns a spliterator for this memory segment. -
Uses of Spliterator in java.util
Modifier and TypeInterfaceDescriptionstatic interface
A Spliterator specialized fordouble
values.static interface
A Spliterator specialized forint
values.static interface
A Spliterator specialized forlong
values.static interface
Spliterator.OfPrimitive<T,
T_CONS, T_SPLITR extends Spliterator.OfPrimitive<T, T_CONS, T_SPLITR>> A Spliterator specialized for primitive values.Modifier and TypeClassDescriptionstatic class
An abstractSpliterator.OfDouble
that implementstrySplit
to permit limited parallelism.static class
An abstractSpliterator.OfInt
that implementstrySplit
to permit limited parallelism.static class
An abstractSpliterator.OfLong
that implementstrySplit
to permit limited parallelism.static class
An abstractSpliterator
that implementstrySplit
to permit limited parallelism.Modifier and TypeMethodDescriptionstatic <T> Spliterator
<T> Spliterators.emptySpliterator()
Creates an emptySpliterator
ArrayDeque.spliterator()
Creates a late-binding and fail-fastSpliterator
over the elements in this deque.ArrayList.spliterator()
Creates a late-binding and fail-fastSpliterator
over the elements in this list.static <T> Spliterator
<T> Arrays.spliterator
(T[] array) Returns aSpliterator
covering all of the specified array.static <T> Spliterator
<T> Arrays.spliterator
(T[] array, int startInclusive, int endExclusive) Returns aSpliterator
covering the specified range of the specified array.default Spliterator
<E> Collection.spliterator()
Creates aSpliterator
over the elements in this collection.HashSet.spliterator()
Creates a late-binding and fail-fastSpliterator
over the elements in this set.LinkedHashSet.spliterator()
Creates a late-binding and fail-fastSpliterator
over the elements in this set.LinkedList.spliterator()
Creates a late-binding and fail-fastSpliterator
over the elements in this list.default Spliterator
<E> List.spliterator()
Creates aSpliterator
over the elements in this list.final Spliterator
<E> PriorityQueue.spliterator()
Creates a late-binding and fail-fastSpliterator
over the elements in this queue.default Spliterator
<E> Set.spliterator()
Creates aSpliterator
over the elements in this set.default Spliterator
<E> SortedSet.spliterator()
Creates aSpliterator
over the elements in this sorted set.static <T> Spliterator
<T> Spliterators.spliterator
(Object[] array, int additionalCharacteristics) Creates aSpliterator
covering the elements of a given array, using a customized set of spliterator characteristics.static <T> Spliterator
<T> Spliterators.spliterator
(Object[] array, int fromIndex, int toIndex, int additionalCharacteristics) Creates aSpliterator
covering a range of elements of a given array, using a customized set of spliterator characteristics.static <T> Spliterator
<T> Spliterators.spliterator
(Collection<? extends T> c, int characteristics) static <T> Spliterator
<T> Spliterators.spliterator
(Iterator<? extends T> iterator, long size, int characteristics) Creates aSpliterator
using a givenIterator
as the source of elements, and with a given initially reported size.TreeSet.spliterator()
Creates a late-binding and fail-fastSpliterator
over the elements in this set.Vector.spliterator()
Creates a late-binding and fail-fastSpliterator
over the elements in this list.static <T> Spliterator
<T> Spliterators.spliteratorUnknownSize
(Iterator<? extends T> iterator, int characteristics) Creates aSpliterator
using a givenIterator
as the source of elements, with no initial size estimate.Spliterator.trySplit()
If this spliterator can be partitioned, returns a Spliterator covering elements, that will, upon return from this method, not be covered by this Spliterator.Spliterators.AbstractSpliterator.trySplit()
If this spliterator can be partitioned, returns a Spliterator covering elements, that will, upon return from this method, not be covered by this Spliterator.Modifier and TypeMethodDescriptionstatic <T> Iterator
<T> Spliterators.iterator
(Spliterator<? extends T> spliterator) Creates anIterator
from aSpliterator
. -
Uses of Spliterator in java.util.concurrent
Modifier and TypeMethodDescriptionArrayBlockingQueue.spliterator()
Returns aSpliterator
over the elements in this queue.ConcurrentLinkedDeque.spliterator()
Returns aSpliterator
over the elements in this deque.ConcurrentLinkedQueue.spliterator()
Returns aSpliterator
over the elements in this queue.ConcurrentSkipListSet.spliterator()
Returns aSpliterator
over the elements in this set.CopyOnWriteArrayList.spliterator()
Returns aSpliterator
over the elements in this list.CopyOnWriteArraySet.spliterator()
Returns aSpliterator
over the elements in this set in the order in which these elements were added.LinkedBlockingDeque.spliterator()
Returns aSpliterator
over the elements in this deque.LinkedBlockingQueue.spliterator()
Returns aSpliterator
over the elements in this queue.LinkedTransferQueue.spliterator()
Returns aSpliterator
over the elements in this queue.PriorityBlockingQueue.spliterator()
Returns aSpliterator
over the elements in this queue.SynchronousQueue.spliterator()
Returns an empty spliterator in which calls totrySplit
always returnnull
. -
Uses of Spliterator in java.util.stream
Modifier and TypeMethodDescriptionBaseStream.spliterator()
Returns a spliterator for the elements of this stream.Modifier and TypeMethodDescriptionstatic <T> Stream
<T> StreamSupport.stream
(Spliterator<T> spliterator, boolean parallel) Creates a new sequential or parallelStream
from aSpliterator
.Modifier and TypeMethodDescriptionstatic <T> Stream
<T> StreamSupport.stream
(Supplier<? extends Spliterator<T>> supplier, int characteristics, boolean parallel) Creates a new sequential or parallelStream
from aSupplier
ofSpliterator
.