Interface Enumerator.OfLong

All Superinterfaces:
BareEnumerator<Long>, Enumerator<Long>, Spliterator<Long>, Spliterator.OfLong, Spliterator.OfPrimitive<Long,LongConsumer,Spliterator.OfLong>
All Known Implementing Classes:
AbstractLongEnumerator
Enclosing interface:
Enumerator<E>

public static interface Enumerator.OfLong extends Enumerator<Long>, Spliterator.OfLong
An object for enumerating primitive long-valued elements of a collection.

The protocol for accessing elements via a Enumerator imposes smaller per-element overhead than Iterator, and avoids the inherent race involved in having separate methods for hasNext() and next().

Author:
Werner Randelshofer