public class BooleansGenerator extends GeneratorWithDistribution<Boolean> implements CopyableGenerator<Boolean>
LAMBDA_SEED_HINT| Modifier | Constructor and Description |
|---|---|
|
BooleansGenerator() |
protected |
BooleansGenerator(BooleansGenerator src) |
|
BooleansGenerator(Distribution distribution) |
|
BooleansGenerator(Distribution distribution,
long seedHint) |
|
BooleansGenerator(double threshold) |
|
BooleansGenerator(double threshold,
Distribution distribution) |
|
BooleansGenerator(double threshold,
Distribution distribution,
long seedHint) |
| Modifier and Type | Method and Description |
|---|---|
static FlTemplate<Boolean> |
booleans()
Generates random booleans
|
static FlTemplate<Boolean> |
booleans(Distribution distribution)
Generates random booleans
|
static FlTemplate<Boolean> |
booleans(double ratio)
Generates random booleans.
|
static FlTemplate<Boolean> |
booleans(double threshold,
Distribution distribution,
long seedHint) |
BooleansGenerator |
copy() |
Class<Boolean> |
getValueType()
Returns the type of values produced/contained by this instance.
|
Boolean |
next()
Produces next value.
|
StringBuilder |
toString(StringBuilder sb) |
randomSeedHint, 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, randomSeedHint, several, shuffle, shuffle, some, split, split, stream, then, three, toGenerator, transform, two, withrepeat, transformSourcetoGenerators, toGeneratorspublic BooleansGenerator()
public BooleansGenerator(Distribution distribution)
public BooleansGenerator(Distribution distribution, long seedHint)
public BooleansGenerator(double threshold)
public BooleansGenerator(double threshold,
Distribution distribution)
public BooleansGenerator(double threshold,
Distribution distribution,
long seedHint)
protected BooleansGenerator(BooleansGenerator src)
public static FlTemplate<Boolean> booleans()
public static FlTemplate<Boolean> booleans(double ratio)
ratio - ratio of true valuespublic static FlTemplate<Boolean> booleans(Distribution distribution)
distribution - public static FlTemplate<Boolean> booleans(double threshold, Distribution distribution, long seedHint)
public Class<Boolean> getValueType()
Typednull if the type is unknown;
should never return a primitive type.getValueType in interface FlDataSource<Boolean>getValueType in interface Typed<Boolean>public BooleansGenerator copy()
copy in interface CopyableGenerator<Boolean>public StringBuilder toString(StringBuilder sb)
toString in interface StringifytoString in class GeneratorWithDistribution<Boolean>Copyright © 2019. All rights reserved.