Module org.jhotdraw8.collection
Class IntCharArrayEnumerator
java.lang.Object
java.util.Spliterators.AbstractIntSpliterator
org.jhotdraw8.collection.enumerator.AbstractIntEnumerator
org.jhotdraw8.collection.enumerator.IntCharArrayEnumerator
- All Implemented Interfaces:
Spliterator<Integer>,Spliterator.OfInt,Spliterator.OfPrimitive<Integer,,IntConsumer, Spliterator.OfInt> BareEnumerator<Integer>,Enumerator<Integer>,Enumerator.OfInt
An integer enumerator/spliterator over a char array.
-
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
Fields inherited from class org.jhotdraw8.collection.enumerator.AbstractIntEnumerator
currentFields inherited from interface java.util.Spliterator
CONCURRENT, DISTINCT, IMMUTABLE, NONNULL, ORDERED, SIZED, SORTED, SUBSIZED -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.jhotdraw8.collection.enumerator.AbstractIntEnumerator
currentAsIntMethods inherited from class java.util.Spliterators.AbstractIntSpliterator
characteristicsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.jhotdraw8.collection.enumerator.Enumerator.OfInt
current, tryAdvance, tryAdvanceMethods inherited from interface java.util.Spliterator
characteristics, getComparator, getExactSizeIfKnown, hasCharacteristicsMethods inherited from interface java.util.Spliterator.OfInt
forEachRemaining, forEachRemaining, tryAdvance
-
Constructor Details
-
IntCharArrayEnumerator
public IntCharArrayEnumerator(int lo, int hi, char[] arrows)
-
-
Method Details
-
moveNext
public boolean moveNext()Description copied from interface:BareEnumeratorAdvances the enumerator to the next element of the collection.- Returns:
- true if the enumerator was successfully advanced to the next element; false if the enumerator has passed the end of the collection.
-
estimateSize
public long estimateSize()- Specified by:
estimateSizein interfaceSpliterator<Integer>- Overrides:
estimateSizein classSpliterators.AbstractIntSpliterator
-
trySplit
- Specified by:
trySplitin interfaceSpliterator<Integer>- Specified by:
trySplitin interfaceSpliterator.OfInt- Specified by:
trySplitin interfaceSpliterator.OfPrimitive<Integer,IntConsumer, Spliterator.OfInt> - Overrides:
trySplitin classSpliterators.AbstractIntSpliterator
-