Uses of Interface
java.util.Spliterator
Packages that useSpliterator
Package
Description
Provides classes that are fundamental to the design of the Java programming language.
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.
Classes to support low-level and efficient foreign memory/function access, directly from Java.
Uses ofSpliterator injava.lang
Methods injava.lang that returnSpliteratorModifier and TypeMethodDescriptiondefaultSpliterator<T>Iterable.spliterator()Creates aSpliteratorover the elements described by thisIterable.Uses ofSpliterator injava.util
Subinterfaces ofSpliterator injava.utilModifier and TypeInterfaceDescriptionstatic interfaceA Spliterator specialized fordoublevalues.static interfaceA Spliterator specialized forintvalues.static interfaceA Spliterator specialized forlongvalues.static interfaceSpliterator.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 classAn abstractSpliterator.OfDoublethat implementstrySplitto permit limited parallelism.static classAn abstractSpliterator.OfIntthat implementstrySplitto permit limited parallelism.static classAn abstractSpliterator.OfLongthat implementstrySplitto permit limited parallelism.static classAn abstractSpliteratorthat implementstrySplitto permit limited parallelism.Methods injava.util that returnSpliteratorModifier and TypeMethodDescriptionstatic <T> Spliterator<T>Spliterators.emptySpliterator()Creates an emptySpliteratorArrayDeque.spliterator()Creates alate-binding andfail-fastSpliteratorover the elements in this deque.ArrayList.spliterator()Creates alate-binding andfail-fastSpliteratorover the elements in this list.static <T> Spliterator<T>Arrays.spliterator(T[] array) Returns aSpliteratorcovering all of the specified array.static <T> Spliterator<T>Arrays.spliterator(T[] array, int startInclusive, int endExclusive) Returns aSpliteratorcovering the specified range of the specified array.defaultSpliterator<E>Collection.spliterator()Creates aSpliteratorover the elements in this collection.HashSet.spliterator()Creates alate-binding andfail-fastSpliteratorover the elements in this set.LinkedHashSet.spliterator()Creates alate-binding andfail-fastSpliteratorover the elements in this set.LinkedList.spliterator()Creates alate-binding andfail-fastSpliteratorover the elements in this list.defaultSpliterator<E>List.spliterator()Creates aSpliteratorover the elements in this list.finalSpliterator<E>PriorityQueue.spliterator()Creates alate-binding andfail-fastSpliteratorover the elements in this queue.defaultSpliterator<E>Set.spliterator()Creates aSpliteratorover the elements in this set.defaultSpliterator<E>SortedSet.spliterator()Creates aSpliteratorover the elements in this sorted set.static <T> Spliterator<T>Spliterators.spliterator(Object[] array, int additionalCharacteristics) Creates aSpliteratorcovering 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 aSpliteratorcovering 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) Creates aSpliteratorusing the given collection'sCollection.iterator()as the source of elements, and reporting itsCollection.size()as its initial size.static <T> Spliterator<T>Spliterators.spliterator(Iterator<? extends T> iterator, long size, int characteristics) Creates aSpliteratorusing a givenIteratoras the source of elements, and with a given initially reported size.TreeSet.spliterator()Creates alate-binding andfail-fastSpliteratorover the elements in this set.Vector.spliterator()Creates alate-binding andfail-fastSpliteratorover the elements in this list.static <T> Spliterator<T>Spliterators.spliteratorUnknownSize(Iterator<? extends T> iterator, int characteristics) Creates aSpliteratorusing a givenIteratoras 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 anIteratorfrom aSpliterator.Uses ofSpliterator injava.util.concurrent
Methods injava.util.concurrent that returnSpliteratorModifier and TypeMethodDescriptionArrayBlockingQueue.spliterator()Returns aSpliteratorover the elements in this queue.ConcurrentLinkedDeque.spliterator()Returns aSpliteratorover the elements in this deque.ConcurrentLinkedQueue.spliterator()Returns aSpliteratorover the elements in this queue.ConcurrentSkipListSet.spliterator()Returns aSpliteratorover the elements in this set.CopyOnWriteArrayList.spliterator()Returns aSpliteratorover the elements in this list.CopyOnWriteArraySet.spliterator()Returns aSpliteratorover the elements in this set in the order in which these elements were added.LinkedBlockingDeque.spliterator()Returns aSpliteratorover the elements in this deque.LinkedBlockingQueue.spliterator()Returns aSpliteratorover the elements in this queue.LinkedTransferQueue.spliterator()Returns aSpliteratorover the elements in this queue.PriorityBlockingQueue.spliterator()Returns aSpliteratorover the elements in this queue.SynchronousQueue.spliterator()Returns an empty spliterator in which calls totrySplitalways 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 parallelStreamfrom 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 parallelStreamfrom aSupplierofSpliterator.Uses ofSpliterator injdk.incubator.foreign
Methods injdk.incubator.foreign that returnSpliteratorModifier and TypeMethodDescriptionMemorySegment.spliterator(MemoryLayout elementLayout) Returns a spliterator for this memory segment.