Module org.jhotdraw8.collection
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
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.jhotdraw8.collection.enumerator.Enumerator
Enumerator.OfDouble, Enumerator.OfInt, Enumerator.OfLongNested classes/interfaces inherited from interface java.util.Spliterator
Spliterator.OfDouble, Spliterator.OfInt, Spliterator.OfLong, Spliterator.OfPrimitive<T,T_CONS, T_SPLITR extends Spliterator.OfPrimitive<T, T_CONS, T_SPLITR>> -
Field Summary
FieldsFields inherited from interface java.util.Spliterator
CONCURRENT, DISTINCT, IMMUTABLE, NONNULL, ORDERED, SIZED, SORTED, SUBSIZED -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractIntEnumerator(long est, int additionalCharacteristics) Creates a spliterator reporting the given estimated size and additionalCharacteristics. -
Method Summary
Methods inherited from class java.util.Spliterators.AbstractIntSpliterator
characteristics, estimateSize, trySplitMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.jhotdraw8.collection.enumerator.BareEnumerator
moveNextMethods inherited from interface org.jhotdraw8.collection.enumerator.Enumerator.OfInt
current, tryAdvance, tryAdvanceMethods inherited from interface java.util.Spliterator
characteristics, estimateSize, getComparator, getExactSizeIfKnown, hasCharacteristicsMethods inherited from interface java.util.Spliterator.OfInt
forEachRemaining, forEachRemaining, tryAdvance, trySplit
-
Field Details
-
current
protected int currentThe 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, otherwiseLong.MAX_VALUE.additionalCharacteristics- properties of this spliterator's source or elements. IfSIZEDis reported then this spliterator will additionally reportSUBSIZED.
-
-
Method Details
-
currentAsInt
public final int currentAsInt()Returns the current value.- Specified by:
currentAsIntin interfaceEnumerator.OfInt- Returns:
- current
- See Also:
-