Module org.jhotdraw8.collection
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
-
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
ConstructorsModifierConstructorDescriptionprotectedAbstractLongEnumerator(long est, int additionalCharacteristics) Creates a spliterator reporting the given estimated size and additionalCharacteristics. -
Method Summary
Methods inherited from class java.util.Spliterators.AbstractLongSpliterator
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.OfLong
current, tryAdvance, tryAdvanceMethods inherited from interface java.util.Spliterator
characteristics, estimateSize, getComparator, getExactSizeIfKnown, hasCharacteristicsMethods inherited from interface java.util.Spliterator.OfLong
forEachRemaining, forEachRemaining, tryAdvance, trySplit
-
Field Details
-
current
protected long currentThe 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, otherwiseLong.MAX_VALUE.additionalCharacteristics- properties of this spliterator's source or elements. IfSIZEDis reported then this spliterator will additionally reportSUBSIZED.
-
-
Method Details
-
currentAsLong
public final long currentAsLong()Returns the current value.- Specified by:
currentAsLongin interfaceEnumerator.OfLong- Returns:
- current
- See Also:
-