Package one.util.streamex
Class RangeBasedSpliterator.ZipInt
java.lang.Object
one.util.streamex.Internals.CloneableSpliterator<Integer,RangeBasedSpliterator.ZipInt>
one.util.streamex.RangeBasedSpliterator<Integer,RangeBasedSpliterator.ZipInt>
one.util.streamex.RangeBasedSpliterator.ZipInt
- All Implemented Interfaces:
Cloneable
,Spliterator<Integer>
,Spliterator.OfInt
,Spliterator.OfPrimitive<Integer,
IntConsumer, Spliterator.OfInt>
- Enclosing class:
RangeBasedSpliterator<T,
S extends RangeBasedSpliterator<T, ?>>
static final class RangeBasedSpliterator.ZipInt
extends RangeBasedSpliterator<Integer,RangeBasedSpliterator.ZipInt>
implements Spliterator.OfInt
-
Nested Class Summary
Nested classes/interfaces inherited from class one.util.streamex.RangeBasedSpliterator
RangeBasedSpliterator.AsEntry<T>, RangeBasedSpliterator.OfByte, RangeBasedSpliterator.OfChar, RangeBasedSpliterator.OfFloat, RangeBasedSpliterator.OfShort, RangeBasedSpliterator.OfSubLists<T>, RangeBasedSpliterator.ZipDouble, RangeBasedSpliterator.ZipInt, RangeBasedSpliterator.ZipLong, RangeBasedSpliterator.ZipRef<U,
V, T> Nested 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
FieldsModifier and TypeFieldDescriptionprivate final int[]
private final int[]
private final IntBinaryOperator
Fields inherited from class one.util.streamex.RangeBasedSpliterator
cur, limit
Fields inherited from interface java.util.Spliterator
CONCURRENT, DISTINCT, IMMUTABLE, NONNULL, ORDERED, SIZED, SORTED, SUBSIZED
-
Constructor Summary
ConstructorsConstructorDescriptionZipInt
(int fromInclusive, int toExclusive, IntBinaryOperator mapper, int[] arr1, int[] arr2) -
Method Summary
Modifier and TypeMethodDescriptionvoid
forEachRemaining
(IntConsumer action) boolean
tryAdvance
(IntConsumer action) Methods inherited from class one.util.streamex.RangeBasedSpliterator
characteristics, estimateSize, trySplit
Methods inherited from class one.util.streamex.Internals.CloneableSpliterator
doClone
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Spliterator
characteristics, estimateSize, getComparator, getExactSizeIfKnown, hasCharacteristics
Methods inherited from interface java.util.Spliterator.OfInt
forEachRemaining, tryAdvance, trySplit
-
Field Details
-
mapper
-
arr1
private final int[] arr1 -
arr2
private final int[] arr2
-
-
Constructor Details
-
ZipInt
-
-
Method Details
-
tryAdvance
- Specified by:
tryAdvance
in interfaceSpliterator.OfInt
- Specified by:
tryAdvance
in interfaceSpliterator.OfPrimitive<Integer,
IntConsumer, Spliterator.OfInt>
-
forEachRemaining
- Specified by:
forEachRemaining
in interfaceSpliterator.OfInt
- Specified by:
forEachRemaining
in interfaceSpliterator.OfPrimitive<Integer,
IntConsumer, Spliterator.OfInt>
-