public class RandomizedSequenceGenerator<T> extends GeneratorWithDistribution<T> implements CopyableGenerator<T>
LAMBDA_SEED_HINT| Modifier | Constructor and Description |
|---|---|
protected |
RandomizedSequenceGenerator(RandomizedSequenceGenerator src) |
|
RandomizedSequenceGenerator(Sequence<T> source) |
|
RandomizedSequenceGenerator(Sequence<T> source,
Distribution distribution) |
|
RandomizedSequenceGenerator(Sequence<T> source,
Distribution distribution,
long seedHint) |
| Modifier and Type | Method and Description |
|---|---|
RandomizedSequenceGenerator<T> |
copy() |
Class<T> |
getValueType()
Returns the type of values produced/contained by this instance.
|
T |
next()
Produces next value.
|
static <T> RandomizedSequenceGenerator<T> |
random(Sequence<T> seq) |
long |
randomSeedHint() |
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, withrepeat, transformSourcetoGenerators, toGeneratorspublic RandomizedSequenceGenerator(Sequence<T> source, Distribution distribution)
public RandomizedSequenceGenerator(Sequence<T> source, Distribution distribution, long seedHint)
protected RandomizedSequenceGenerator(RandomizedSequenceGenerator src)
public static <T> RandomizedSequenceGenerator<T> random(Sequence<T> seq)
public Class<T> getValueType()
Typednull if the type is unknown;
should never return a primitive type.getValueType in interface FlDataSource<T>getValueType in interface Typed<T>public RandomizedSequenceGenerator<T> copy()
copy in interface CopyableGenerator<T>public long randomSeedHint()
randomSeedHint in interface FlGenerator<T>randomSeedHint in class GeneratorWithDistribution<T>public StringBuilder toString(StringBuilder sb)
toString in interface StringifytoString in class GeneratorWithDistribution<T>Copyright © 2019. All rights reserved.