Uses of Interface
java.util.Spliterator
Packages that useSpliterator Package Description java.lang Provides classes that are fundamental to the design of the Java programming language.java.util 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.java.util.concurrent Utility classes commonly useful in concurrent programming.java.util.stream 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 returnSpliterator Modifier and Type Method Description defaultSpliterator<T>Iterable. spliterator()Creates aSpliteratorover the elements described by thisIterable.Uses ofSpliterator injava.util
Subinterfaces ofSpliterator injava.util Modifier and Type Interface Description static interfaceSpliterator.OfDoubleA Spliterator specialized fordoublevalues.static interfaceSpliterator.OfIntA Spliterator specialized forintvalues.static interfaceSpliterator.OfLongA 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 implementSpliterator Modifier and Type Class Description static classSpliterators.AbstractDoubleSpliteratorAn abstractSpliterator.OfDoublethat implementstrySplitto permit limited parallelism.static classSpliterators.AbstractIntSpliteratorAn abstractSpliterator.OfIntthat implementstrySplitto permit limited parallelism.static classSpliterators.AbstractLongSpliteratorAn abstractSpliterator.OfLongthat implementstrySplitto permit limited parallelism.static classSpliterators.AbstractSpliterator<T>An abstractSpliteratorthat implementstrySplitto permit limited parallelism.Methods injava.util that returnSpliterator Modifier and Type Method Description static <T> Spliterator<T>Spliterators. emptySpliterator()Creates an emptySpliteratorSpliterator<E>ArrayDeque. spliterator()Creates alate-binding andfail-fastSpliteratorover the elements in this deque.Spliterator<E>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.Spliterator<E>HashSet. spliterator()Creates alate-binding andfail-fastSpliteratorover the elements in this set.Spliterator<E>LinkedHashSet. spliterator()Creates alate-binding andfail-fastSpliteratorover the elements in this set.Spliterator<E>LinkedList. spliterator()Creates alate-binding andfail-fastSpliteratorover the elements in this list.defaultSpliterator<E>List. spliterator()Creates aSpliteratorover the elements in this list.Spliterator<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.Spliterator<E>TreeSet. spliterator()Creates alate-binding andfail-fastSpliteratorover the elements in this set.Spliterator<E>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<T>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.Spliterator<T>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 typeSpliterator Modifier and Type Method Description static <T> Iterator<T>Spliterators. iterator(Spliterator<? extends T> spliterator)Creates anIteratorfrom aSpliterator.Uses ofSpliterator injava.util.concurrent
Methods injava.util.concurrent that returnSpliterator Modifier and Type Method Description Spliterator<E>ArrayBlockingQueue. spliterator()Returns aSpliteratorover the elements in this queue.Spliterator<E>ConcurrentLinkedDeque. spliterator()Returns aSpliteratorover the elements in this deque.Spliterator<E>ConcurrentLinkedQueue. spliterator()Returns aSpliteratorover the elements in this queue.Spliterator<E>ConcurrentSkipListSet. spliterator()Returns aSpliteratorover the elements in this set.Spliterator<E>CopyOnWriteArrayList. spliterator()Returns aSpliteratorover the elements in this list.Spliterator<E>CopyOnWriteArraySet. spliterator()Returns aSpliteratorover the elements in this set in the order in which these elements were added.Spliterator<E>LinkedBlockingDeque. spliterator()Returns aSpliteratorover the elements in this deque.Spliterator<E>LinkedBlockingQueue. spliterator()Returns aSpliteratorover the elements in this queue.Spliterator<E>LinkedTransferQueue. spliterator()Returns aSpliteratorover the elements in this queue.Spliterator<E>PriorityBlockingQueue. spliterator()Returns aSpliteratorover the elements in this queue.Spliterator<E>SynchronousQueue. spliterator()Returns an empty spliterator in which calls totrySplitalways returnnull.Uses ofSpliterator injava.util.stream
Methods injava.util.stream that returnSpliterator Modifier and Type Method Description Spliterator<T>BaseStream. spliterator()Returns a spliterator for the elements of this stream.Methods injava.util.stream with parameters of typeSpliterator Modifier and Type Method Description static <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 typeSpliterator Modifier and Type Method Description static <T> Stream<T>StreamSupport. stream(Supplier<? extendsSpliterator<T>> supplier, int characteristics, boolean parallel)Creates a new sequential or parallelStreamfrom aSupplierofSpliterator.