T - public class ShufflingGenerator<T> extends GeneratorWithDistribution<T> implements CopyableGenerator<T>
LAMBDA_SEED_HINT| Modifier | Constructor and Description |
|---|---|
|
ShufflingGenerator(DataSource<T> source,
int hold) |
|
ShufflingGenerator(DataSource<T> source,
int hold,
Distribution distribution) |
|
ShufflingGenerator(DataSource<T> source,
int hold,
Distribution distribution,
long seedHint) |
protected |
ShufflingGenerator(ShufflingGenerator src) |
| Modifier and Type | Method and Description |
|---|---|
ShufflingGenerator<T> |
copy() |
T |
next()
Produces next value.
|
long |
randomSeedHint() |
static <T> ShufflingGenerator<T> |
shuffle(DataSource<T> source) |
static <T> ShufflingGenerator<T> |
shuffle(DataSource<T> source,
long seed) |
StringBuilder |
toString(StringBuilder sb) |
rndtoStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitsnapshotaggregate, aggregate, all, alternateWith, any, any, cached, distinct, fetch, few, filter, flatMap, fluentData, many, map, map, mixWith, next, next, next, one, peek, several, shuffle, shuffle, some, split, split, stream, then, three, toGenerator, transform, two, withgetValueType, repeat, transformSourcetoGenerators, toGeneratorspublic ShufflingGenerator(DataSource<T> source, int hold)
public ShufflingGenerator(DataSource<T> source, int hold, Distribution distribution)
public ShufflingGenerator(DataSource<T> source, int hold, Distribution distribution, long seedHint)
protected ShufflingGenerator(ShufflingGenerator src)
public static <T> ShufflingGenerator<T> shuffle(DataSource<T> source)
public static <T> ShufflingGenerator<T> shuffle(DataSource<T> source, long seed)
public long randomSeedHint()
randomSeedHint in interface FlGenerator<T>randomSeedHint in class GeneratorWithDistribution<T>public ShufflingGenerator<T> copy()
copy in interface CopyableGenerator<T>public StringBuilder toString(StringBuilder sb)
toString in interface StringifytoString in class GeneratorWithDistribution<T>Copyright © 2019. All rights reserved.