All Superinterfaces:
Spliterator<Integer>, Spliterator.OfPrimitive<Integer,​IntConsumer,​Spliterator.OfInt>
All Known Implementing Classes:
Spliterators.AbstractIntSpliterator
Enclosing interface:
Spliterator<T>

public static interface Spliterator.OfInt
extends Spliterator.OfPrimitive<Integer,​IntConsumer,​Spliterator.OfInt>

A Spliterator specialized for int values.

Since:
1.8
  • Nested Class Summary

  • Field Summary

  • Method Summary

    Modifier and Type Method Description
    default void forEachRemaining​(Consumer<? super Integer> action)

    Performs the given action for each remaining element, sequentially in the current thread, until all elements have been processed or the action throws an exception.

    default boolean tryAdvance​(Consumer<? super Integer> action)

    If a remaining element exists, performs the given action on it, returning true; else returns false.