Module org.jhotdraw8.collection
Class AbstractDoubleEnumerator
java.lang.Object
java.util.Spliterators.AbstractDoubleSpliterator
org.jhotdraw8.collection.enumerator.AbstractDoubleEnumerator
- All Implemented Interfaces:
Spliterator<Double>,Spliterator.OfDouble,Spliterator.OfPrimitive<Double,,DoubleConsumer, Spliterator.OfDouble> BareEnumerator<Double>,Enumerator<Double>,Enumerator.OfDouble
public abstract class AbstractDoubleEnumerator
extends Spliterators.AbstractDoubleSpliterator
implements Enumerator.OfDouble
Abstract base class for
Enumerator.OfDoubles.- 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
ConstructorsModifierConstructorDescriptionprotectedAbstractDoubleEnumerator(long est, int additionalCharacteristics) Creates a spliterator reporting the given estimated size and additionalCharacteristics. -
Method Summary
Methods inherited from class java.util.Spliterators.AbstractDoubleSpliterator
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.OfDouble
current, tryAdvance, tryAdvanceMethods inherited from interface java.util.Spliterator
characteristics, estimateSize, getComparator, getExactSizeIfKnown, hasCharacteristicsMethods inherited from interface java.util.Spliterator.OfDouble
forEachRemaining, forEachRemaining, tryAdvance, trySplit
-
Field Details
-
current
protected double currentThe current element of the enumerator.
-
-
Constructor Details
-
AbstractDoubleEnumerator
protected AbstractDoubleEnumerator(long est, int additionalCharacteristics) Creates a spliterator reporting the given estimated size and additionalCharacteristics.- Parameters:
est- the estimated size of this spliterator if known, otherwiseDouble.MAX_VALUE.additionalCharacteristics- properties of this spliterator's source or elements. IfSIZEDis reported then this spliterator will additionally reportSUBSIZED.
-
-
Method Details
-
currentAsDouble
public final double currentAsDouble()Returns the current value.- Specified by:
currentAsDoublein interfaceEnumerator.OfDouble- Returns:
- current
- See Also:
-