public abstract class StreamableProxy<T,S extends StreamableProxy<T,S>> extends java.lang.Object implements Streamable<T,S>
Streamable
that forwards its calls to a delegateConstructor and Description |
---|
StreamableProxy() |
Modifier and Type | Method and Description |
---|---|
java.math.BigInteger |
bigCount() |
long |
count() |
protected abstract Streamable<T,?> |
getDelegate() |
java.util.stream.Stream<T> |
parallelStream() |
<Z extends Streamable<T,?>> |
shuffle(java.util.Random rnd)
Configure this instance to provide streams that shuffle elements in the data source.
|
<Z extends Streamable<T,?>> |
skip(java.math.BigInteger n)
Configure this instance to provide streams that skip the first {}@code n} elements in the data source.
|
<Z extends Streamable<T,?>> |
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() |
S |
withAdditionalCharacteristics(int additionalCharacteristics)
Adds
additionalCharacteristics to the provided streams. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
ordered, shuffle
protected abstract Streamable<T,?> getDelegate()
public S withAdditionalCharacteristics(int additionalCharacteristics)
Streamable
additionalCharacteristics
to the provided streams.withAdditionalCharacteristics
in interface Streamable<T,S extends StreamableProxy<T,S>>
public java.util.stream.Stream<T> stream()
stream
in interface Streamable<T,S extends StreamableProxy<T,S>>
Stream
public java.util.stream.Stream<T> parallelStream()
parallelStream
in interface Streamable<T,S extends StreamableProxy<T,S>>
Stream
public long count()
count
in interface Streamable<T,S extends StreamableProxy<T,S>>
public java.math.BigInteger bigCount()
bigCount
in interface Streamable<T,S extends StreamableProxy<T,S>>
public <Z extends Streamable<T,?>> Z skip(long n)
Streamable
Stream.skip(long)
.skip
in interface Streamable<T,S extends StreamableProxy<T,S>>
n
- the number of elements to be skipped (as a long).public <Z extends Streamable<T,?>> Z skip(java.math.BigInteger n)
Streamable
skip
in interface Streamable<T,S extends StreamableProxy<T,S>>
n
- the number of elements to be skipped (as a BigInteger).public <Z extends Streamable<T,?>> Z shuffle(java.util.Random rnd)
Streamable
shuffle
in interface Streamable<T,S extends StreamableProxy<T,S>>
rnd
- the random number generator to be used to perform the shuffling.