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