public class DoublesGenerator extends GeneratorWithDistribution<Double> implements CopyableGenerator<Double>
| Modifier and Type | Field and Description |
|---|---|
protected static double |
DEFAULT_HIGH |
protected static double |
DEFAULT_LOW |
LAMBDA_SEED_HINT| Modifier | Constructor and Description |
|---|---|
|
DoublesGenerator() |
|
DoublesGenerator(double high) |
|
DoublesGenerator(double high,
Distribution distribution) |
|
DoublesGenerator(double high,
Distribution distribution,
long seedHint) |
|
DoublesGenerator(double low,
double high) |
|
DoublesGenerator(double low,
double high,
Distribution distribution) |
|
DoublesGenerator(double low,
double high,
Distribution distribution,
long seedHint) |
protected |
DoublesGenerator(DoublesGenerator src) |
| Modifier and Type | Method and Description |
|---|---|
DoublesGenerator |
copy() |
static FlTemplate<Double> |
doubles()
Generates random doubles.
|
static FlTemplate<Double> |
doubles(int high)
Generates random doubles.
|
static FlTemplate<Double> |
doubles(int high,
Distribution distribution)
Generates random doubles.
|
static FlTemplate<Double> |
doubles(int low,
int high)
Generates random doubles.
|
static FlTemplate<Double> |
doubles(int low,
int high,
Distribution distribution)
Generates random doubles.
|
Class<Double> |
getValueType()
Returns the type of values produced/contained by this instance.
|
Double |
next()
Produces next value.
|
double |
nextValue() |
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, toGeneratorsprotected static final double DEFAULT_HIGH
protected static final double DEFAULT_LOW
public DoublesGenerator()
public DoublesGenerator(double high)
public DoublesGenerator(double high,
Distribution distribution)
public DoublesGenerator(double high,
Distribution distribution,
long seedHint)
public DoublesGenerator(double low,
double high)
public DoublesGenerator(double low,
double high,
Distribution distribution)
public DoublesGenerator(double low,
double high,
Distribution distribution,
long seedHint)
protected DoublesGenerator(DoublesGenerator src)
public static FlTemplate<Double> doubles()
public static FlTemplate<Double> doubles(int high)
high - public static FlTemplate<Double> doubles(int high, Distribution distribution)
public static FlTemplate<Double> doubles(int low, int high)
low - high - public static FlTemplate<Double> doubles(int low, int high, Distribution distribution)
low - high - distribution - public double nextValue()
public Class<Double> getValueType()
Typednull if the type is unknown;
should never return a primitive type.getValueType in interface FlDataSource<Double>getValueType in interface Typed<Double>public DoublesGenerator copy()
copy in interface CopyableGenerator<Double>public StringBuilder toString(StringBuilder sb)
toString in interface StringifytoString in class GeneratorWithDistribution<Double>Copyright © 2019. All rights reserved.