Class RangeBasedSpliterator.ZipLong
java.lang.Object
one.util.streamex.Internals.CloneableSpliterator<Long, RangeBasedSpliterator.ZipLong>
one.util.streamex.RangeBasedSpliterator<Long, RangeBasedSpliterator.ZipLong>
one.util.streamex.RangeBasedSpliterator.ZipLong
- All Implemented Interfaces:
Cloneable, Spliterator<Long>, Spliterator.OfLong, Spliterator.OfPrimitive<Long, LongConsumer, Spliterator.OfLong>
- Enclosing class:
RangeBasedSpliterator<T, S extends RangeBasedSpliterator<T,?>>
static final class RangeBasedSpliterator.ZipLong
extends RangeBasedSpliterator<Long, RangeBasedSpliterator.ZipLong>
implements Spliterator.OfLong
-
Nested Class Summary
Nested classes/interfaces inherited from class 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 Spliterator
Spliterator.OfDouble, Spliterator.OfInt, Spliterator.OfLong, Spliterator.OfPrimitive<T,T_CONS, T_SPLITR> -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final long[]private final long[]private final LongBinaryOperatorFields inherited from class RangeBasedSpliterator
cur, limitFields inherited from interface Spliterator
CONCURRENT, DISTINCT, IMMUTABLE, NONNULL, ORDERED, SIZED, SORTED, SUBSIZED -
Constructor Summary
ConstructorsConstructorDescriptionZipLong(int fromInclusive, int toExclusive, LongBinaryOperator mapper, long[] arr1, long[] arr2) -
Method Summary
Modifier and TypeMethodDescriptionvoidforEachRemaining(LongConsumer action) booleantryAdvance(LongConsumer action) Methods inherited from class RangeBasedSpliterator
characteristics, estimateSize, trySplitMethods inherited from class Internals.CloneableSpliterator
doCloneMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Spliterator
characteristics, estimateSize, getComparator, getExactSizeIfKnown, hasCharacteristicsMethods inherited from interface Spliterator.OfLong
forEachRemaining, tryAdvance, trySplit
-
Field Details
-
mapper
-
arr1
private final long[] arr1 -
arr2
private final long[] arr2
-
-
Constructor Details
-
ZipLong
public ZipLong(int fromInclusive, int toExclusive, LongBinaryOperator mapper, long[] arr1, long[] arr2)
-
-
Method Details
-
tryAdvance
- Specified by:
tryAdvancein interfaceSpliterator.OfLong- Specified by:
tryAdvancein interfaceSpliterator.OfPrimitive<Long, LongConsumer, Spliterator.OfLong>
-
forEachRemaining
- Specified by:
forEachRemainingin interfaceSpliterator.OfLong- Specified by:
forEachRemainingin interfaceSpliterator.OfPrimitive<Long, LongConsumer, Spliterator.OfLong>
-