Class AbstractLongEnumerator

java.lang.Object
java.util.Spliterators.AbstractLongSpliterator
org.jhotdraw8.collection.enumerator.AbstractLongEnumerator
All Implemented Interfaces:
Spliterator<Long>, Spliterator.OfLong, Spliterator.OfPrimitive<Long,LongConsumer,Spliterator.OfLong>, BareEnumerator<Long>, Enumerator<Long>, Enumerator.OfLong

public abstract class AbstractLongEnumerator extends Spliterators.AbstractLongSpliterator implements Enumerator.OfLong
Abstract base class for Enumerator.OfLongs.
Author:
Werner Randelshofer
  • Field Details

    • current

      protected long current
      The current element of the enumerator.
  • Constructor Details

    • AbstractLongEnumerator

      protected AbstractLongEnumerator(long est, int additionalCharacteristics)
      Creates a spliterator reporting the given estimated size and additionalCharacteristics.
      Parameters:
      est - the estimated size of this spliterator if known, otherwise Long.MAX_VALUE.
      additionalCharacteristics - properties of this spliterator's source or elements. If SIZED is reported then this spliterator will additionally report SUBSIZED.
  • Method Details