public class BigIntegerIndexedSpliterator<T,S extends BigIntegerIndexedSpliterator<T,S>> extends java.lang.Object implements java.util.Spliterator<T>, Streamable<T,S>
| Modifier | Constructor and Description |
|---|---|
protected |
BigIntegerIndexedSpliterator(java.math.BigInteger origin,
java.math.BigInteger fence) |
| Modifier and Type | Method and Description |
|---|---|
java.math.BigInteger |
bigCount() |
int |
characteristics() |
long |
count() |
long |
estimateSize() |
void |
forEachRemaining(java.util.function.Consumer<? super T> action) |
protected java.math.BigInteger |
getFence() |
protected java.math.BigInteger |
getIndex() |
java.util.stream.Stream<T> |
parallelStream() |
S |
shuffle(java.util.Random rnd)
Configure this instance to provide streams that shuffle elements in the data source.
|
S |
skip(java.math.BigInteger n)
Configure this instance to provide streams that skip the first {}@code n} elements in the data source.
|
S |
skip(long n)
Configure this instance to provide streams that skip the first {}@code n} elements in the data source.
|
java.util.stream.Stream<T> |
stream() |
boolean |
tryAdvance(java.util.function.Consumer<? super T> action) |
java.util.Spliterator<T> |
trySplit() |
S |
withAdditionalCharacteristics(int additionalCharacteristics)
Adds
additionalCharacteristics to the provided streams. |
S |
withShuffler(BigIntegerShuffler shuffler)
Configures the shuffler of this source.
|
S |
withValueSupplier(Splittable.BigIntegerIndexed<T> valueSupplier)
Configures the value supplier of this source.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetComparator, getExactSizeIfKnown, hasCharacteristicsordered, shuffleprotected BigIntegerIndexedSpliterator(java.math.BigInteger origin,
java.math.BigInteger fence)
public final S withAdditionalCharacteristics(int additionalCharacteristics)
StreamableadditionalCharacteristics to the provided streams.withAdditionalCharacteristics in interface Streamable<T,S extends BigIntegerIndexedSpliterator<T,S>>public final S withShuffler(BigIntegerShuffler shuffler)
BigIntegerShuffler implementation, you should use Streamable.shuffle() or shuffle(Random) instead of this method.public final S withValueSupplier(Splittable.BigIntegerIndexed<T> valueSupplier)
protected java.math.BigInteger getIndex()
protected java.math.BigInteger getFence()
public java.util.stream.Stream<T> stream()
stream in interface Streamable<T,S extends BigIntegerIndexedSpliterator<T,S>>Streampublic java.util.stream.Stream<T> parallelStream()
parallelStream in interface Streamable<T,S extends BigIntegerIndexedSpliterator<T,S>>Streampublic long count()
count in interface Streamable<T,S extends BigIntegerIndexedSpliterator<T,S>>public java.math.BigInteger bigCount()
bigCount in interface Streamable<T,S extends BigIntegerIndexedSpliterator<T,S>>public S skip(long n)
StreamableStream.skip(long).skip in interface Streamable<T,S extends BigIntegerIndexedSpliterator<T,S>>n - the number of elements to be skipped (as a long).public S skip(java.math.BigInteger n)
Streamableskip in interface Streamable<T,S extends BigIntegerIndexedSpliterator<T,S>>n - the number of elements to be skipped (as a BigInteger).public long estimateSize()
estimateSize in interface java.util.Spliterator<T>public int characteristics()
characteristics in interface java.util.Spliterator<T>public boolean tryAdvance(java.util.function.Consumer<? super T> action)
tryAdvance in interface java.util.Spliterator<T>public java.util.Spliterator<T> trySplit()
trySplit in interface java.util.Spliterator<T>public void forEachRemaining(java.util.function.Consumer<? super T> action)
forEachRemaining in interface java.util.Spliterator<T>public S shuffle(java.util.Random rnd)
Streamableshuffle in interface Streamable<T,S extends BigIntegerIndexedSpliterator<T,S>>rnd - the random number generator to be used to perform the shuffling.