public abstract class GeneratorWithScalar<T> extends AbstractStringify implements FlGenerator<T>
Generator that requires a scalar value (e.g., to generate
strings with a certain length).
The value can be specified as a constant, or as an integer generator.
LAMBDA_SEED_HINT| Modifier | Constructor and Description |
|---|---|
|
GeneratorWithScalar(DataSource<Integer> scalarGenerator) |
protected |
GeneratorWithScalar(GeneratorWithScalar src) |
|
GeneratorWithScalar(int scalar) |
|
GeneratorWithScalar(int scalar,
Distribution distribution,
long seed) |
| Modifier and Type | Method and Description |
|---|---|
protected long |
classSeed() |
protected int |
nextScalar()
Returns next scalar.
|
long |
randomSeedHint() |
StringBuilder |
toString(StringBuilder sb) |
toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaggregate, aggregate, all, alternateWith, any, any, cached, distinct, fetch, few, filter, flatMap, fluentData, many, map, map, mixWith, next, next, next, one, peek, several, shuffle, shuffle, snapshot, some, split, split, stream, then, three, toGenerator, transform, two, withgetValueType, repeat, transformSourcetoGenerators, toGeneratorspublic GeneratorWithScalar(int scalar)
public GeneratorWithScalar(DataSource<Integer> scalarGenerator)
public GeneratorWithScalar(int scalar,
Distribution distribution,
long seed)
protected GeneratorWithScalar(GeneratorWithScalar src)
protected int nextScalar()
public long randomSeedHint()
randomSeedHint in interface FlGenerator<T>protected long classSeed()
public StringBuilder toString(StringBuilder sb)
toString in interface StringifytoString in class AbstractStringifyCopyright © 2019. All rights reserved.