All Superinterfaces:
Spliterator<Long>, Spliterator.OfPrimitive<Long,​LongConsumer,​Spliterator.OfLong>
All Known Implementing Classes:
Spliterators.AbstractLongSpliterator
Enclosing interface:
Spliterator<T>

public static interface Spliterator.OfLong
extends Spliterator.OfPrimitive<Long,​LongConsumer,​Spliterator.OfLong>

A Spliterator specialized for long values.

Since:
1.8
  • Nested Class Summary

  • Field Summary

  • Method Summary

    Modifier and Type Method Description
    default void forEachRemaining​(Consumer<? super Long> 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 Long> action)

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