Class AbstractIntEnumerator

java.lang.Object
java.util.Spliterators.AbstractIntSpliterator
org.jhotdraw8.collection.enumerator.AbstractIntEnumerator
All Implemented Interfaces:
Spliterator<Integer>, Spliterator.OfInt, Spliterator.OfPrimitive<Integer,IntConsumer,Spliterator.OfInt>, BareEnumerator<Integer>, Enumerator<Integer>, Enumerator.OfInt
Direct Known Subclasses:
IntArrayEnumerator, IntCharArrayEnumerator, IntRangeEnumerator, IntUShortArrayEnumerator

public abstract class AbstractIntEnumerator extends Spliterators.AbstractIntSpliterator implements Enumerator.OfInt
Abstract base class for Enumerator.OfInts.
Author:
Werner Randelshofer
  • Field Details

    • current

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

    • AbstractIntEnumerator

      protected AbstractIntEnumerator(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