Uses of Interface
java.util.Spliterator
Packages that useSpliterator
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 ofSpliterator injava.lang
Methods injava.lang that returnSpliteratorModifier and TypeMethodDescriptiondefaultSpliterator
<T> Iterable.spliterator()
Creates aSpliterator
over the elements described by thisIterable
.Uses ofSpliterator injava.lang.foreign
Methods injava.lang.foreign that returnSpliteratorModifier and TypeMethodDescriptionMemorySegment.spliterator
(MemoryLayout elementLayout) Returns a spliterator for this memory segment.Uses ofSpliterator injava.util
Subinterfaces ofSpliterator injava.utilModifier 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 extendsSpliterator.OfPrimitive<T,
T_CONS, T_SPLITR>> A Spliterator specialized for primitive values.Classes injava.util that implementSpliteratorModifier 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.Methods injava.util that returnSpliteratorModifier and TypeMethodDescriptionstatic <T> Spliterator
<T> Spliterators.emptySpliterator()
Creates an emptySpliterator
ArrayDeque.spliterator()
Creates alate-binding andfail-fastSpliterator
over the elements in this deque.ArrayList.spliterator()
Creates alate-binding andfail-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.defaultSpliterator
<E> Collection.spliterator()
Creates aSpliterator
over the elements in this collection.HashSet.spliterator()
Creates alate-binding andfail-fastSpliterator
over the elements in this set.LinkedHashSet.spliterator()
Creates alate-binding andfail-fastSpliterator
over the elements in this set.LinkedList.spliterator()
Creates alate-binding andfail-fastSpliterator
over the elements in this list.defaultSpliterator
<E> List.spliterator()
Creates aSpliterator
over the elements in this list.finalSpliterator
<E> PriorityQueue.spliterator()
Creates alate-binding andfail-fastSpliterator
over the elements in this queue.defaultSpliterator
<E> Set.spliterator()
Creates aSpliterator
over the elements in this set.defaultSpliterator
<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 alate-binding andfail-fastSpliterator
over the elements in this set.Vector.spliterator()
Creates alate-binding andfail-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.Methods injava.util with parameters of typeSpliteratorModifier and TypeMethodDescriptionstatic <T> Iterator
<T> Spliterators.iterator
(Spliterator<? extends T> spliterator) Creates anIterator
from aSpliterator
.Uses ofSpliterator injava.util.concurrent
Methods injava.util.concurrent that returnSpliteratorModifier 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 ofSpliterator injava.util.stream
Methods injava.util.stream that returnSpliteratorModifier and TypeMethodDescriptionBaseStream.spliterator()
Returns a spliterator for the elements of this stream.Methods injava.util.stream with parameters of typeSpliteratorModifier and TypeMethodDescriptionstatic <T> Stream
<T> StreamSupport.stream
(Spliterator<T> spliterator, boolean parallel) Creates a new sequential or parallelStream
from aSpliterator
.Method parameters injava.util.stream with type arguments of typeSpliteratorModifier and TypeMethodDescriptionstatic <T> Stream
<T> StreamSupport.stream
(Supplier<? extendsSpliterator<T>> supplier, int characteristics, boolean parallel) Creates a new sequential or parallelStream
from aSupplier
ofSpliterator
.