public static class LongIndexable.LongIndexableSpliterator
extends java.lang.Object
implements java.util.Spliterator.OfLong
Constructor and Description |
---|
LongIndexableSpliterator(LongIndexable indexable)
Instantiate a mutable spliterator for an long indexable.
|
LongIndexableSpliterator(LongIndexable indexable,
int start,
int fence,
boolean immutable)
Instantiate a spliterator for part of an long indexable.
|
Modifier and Type | Method and Description |
---|---|
int |
characteristics() |
long |
estimateSize() |
boolean |
tryAdvance(java.util.function.LongConsumer action) |
java.util.Spliterator.OfLong |
trySplit() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public LongIndexableSpliterator(@NotNull LongIndexable indexable)
indexable
- indexable of this spliteratorpublic LongIndexableSpliterator(@NotNull LongIndexable indexable, int start, int fence, boolean immutable)
indexable
- indexable of this spliteratorstart
- starting index of iterationfence
- ending index of iteration, not includedimmutable
- is the underlying indexable immutable? Use with care!public java.util.Spliterator.OfLong trySplit()
trySplit
in interface java.util.Spliterator<java.lang.Long>
trySplit
in interface java.util.Spliterator.OfLong
trySplit
in interface java.util.Spliterator.OfPrimitive<java.lang.Long,java.util.function.LongConsumer,java.util.Spliterator.OfLong>
public boolean tryAdvance(@NotNull java.util.function.LongConsumer action)
tryAdvance
in interface java.util.Spliterator.OfLong
tryAdvance
in interface java.util.Spliterator.OfPrimitive<java.lang.Long,java.util.function.LongConsumer,java.util.Spliterator.OfLong>
public long estimateSize()
estimateSize
in interface java.util.Spliterator<java.lang.Long>
public int characteristics()
characteristics
in interface java.util.Spliterator<java.lang.Long>