| Modifier and Type | Interface and Description |
|---|---|
static interface |
Cardinality.Fetcher
Retrieves elements from a generator.
|
static interface |
Distribution.RandomNumbers
A random number generator based on a
Distribution. |
| Modifier and Type | Method and Description |
|---|---|
Generator<T> |
Template.newGenerator()
Creates a generator.
|
default Generator<T> |
Template.toGenerator()
Deprecated.
use #newGenerator
|
default Generator<T> |
Generator.toGenerator()
Deprecated.
Redundant operation
|
Generator<T> |
DataSource.toGenerator()
Returns a generator for this data.
|
default Generator<Integer> |
Cardinality.toGenerator()
Alias for
Cardinality.toFetcher(). |
default Generator<Integer> |
Cardinality.Fetcher.toGenerator()
Deprecated.
Redundant operation
|
static <T> Generator<T>[] |
DataSource.toGenerators(DataSource<T>... sources)
Converts an array of data sources into generators by calling
DataSource.toGenerator() on each. |
static <T> Generator<T>[] |
DataSource.toGenerators(DataSource<T> first,
DataSource<T>... more)
Converts data sources into generators by calling
DataSource.toGenerator() on each. |
default Generator<Double> |
Distribution.RandomNumbers.values(long seed)
Deprecated.
Redundant operation
|
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractDistributionRandom
Base class for
RandomNumberss. |
protected static class |
GaussianDistribution.GDRandom |
protected static class |
UniformDistribution.UDRandom |
| Modifier and Type | Interface and Description |
|---|---|
interface |
Factory<T> |
static interface |
Factory.FactoryGenerator<T> |
| Modifier and Type | Class and Description |
|---|---|
class |
DefaultFactory<V> |
static class |
ValueGenerator.VG2G<T> |
| Modifier and Type | Method and Description |
|---|---|
static <T> ValueGenerator<T> |
ValueGenerator.fromGenerator(Generator<? extends T> generator) |
default BuilderSetup |
FactoriesSetup.ValueDeclaration.toNext(Generator<? extends T> generator)
Use the next value returned by the given generator.
|
| Constructor and Description |
|---|
G2VG(Generator<? extends T> generator) |
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractFetcher
Base class for
Fetchers. |
class |
EagerFetcher |
class |
FetcherWithScalar
A
Fetcher that requires a scalar value. |
class |
LazyFetcher |
| Modifier and Type | Method and Description |
|---|---|
static <T> T |
LazyFetcher.any(Generator<T> generator) |
static EagerFetcher |
Fetchers.next(Generator<Integer> lengthGenerator) |
| Modifier and Type | Interface and Description |
|---|---|
static interface |
FlCardinality.FlFetcher |
static interface |
FlDistribution.FlRandom |
interface |
FlGenerator<T>
Extends the
Generator interface for fluent methods. |
| Modifier and Type | Method and Description |
|---|---|
default Generator<T> |
FlTemplate.toGenerator()
Deprecated.
|
default Generator<T> |
FlGenerator.toGenerator()
Deprecated.
|
Generator<T> |
FlDataSource.toGenerator() |
| Modifier and Type | Method and Description |
|---|---|
default LazyValues<T> |
FlGenerator.any(Generator<Integer> length) |
default LazyValues<T> |
FlTemplate.first(Generator<Integer> length) |
FlValues<T> |
FlValues.then(Generator<Integer> n,
DataSource<? extends T> moreValues) |
| Modifier and Type | Interface and Description |
|---|---|
interface |
CopyableGenerator<T> |
| Modifier and Type | Class and Description |
|---|---|
class |
AnonymousGenerator<T> |
class |
GeneratorWithDistribution<T>
Base class for
Generators that require an distribution. |
class |
GeneratorWithScalar<T>
A
Generator that requires a scalar value (e.g., to generate
strings with a certain length). |
| Modifier and Type | Method and Description |
|---|---|
static <T> Generator<T> |
GeneratorTools.asGenerator(Object value) |
static Generator[] |
GeneratorTools.asGenerators(Object... values) |
static <T> Generator<T> |
GeneratorTools.copyGenerator(Object generator) |
| Modifier and Type | Method and Description |
|---|---|
static long |
GeneratorTools.getRandomSeedHint(Generator<?> generator) |
| Modifier and Type | Class and Description |
|---|---|
class |
DistinctGenerator<T>
Uses a HashSet to ensure values are not returned twice.
|
class |
FilteringGenerator<T>
Uses a HashSet to ensure values are not returned twice.
|
class |
FlatMappingGenerator<T> |
class |
GeneratorQueue<T>
A queue of generators that fetches a certain number of elements from
each and then uses the next.
|
class |
MappingGenerator<T> |
class |
MergingGenerator<T>
Merges multiple generators that produce sorted values into one.
|
class |
MixingGenerator<T>
Produces values from randomly selected generators.
|
class |
RandomizedSequenceGenerator<T>
Randomly selects elements from a sequence.
|
class |
RepeatingGenerator<T>
Converts a list of finite generators into an inifinte generator.
|
class |
RoundRobinGenerator<T> |
class |
ShuffledSequenceGenerator<T>
Returns the elements of a sequence in random order.
|
class |
ShufflingGenerator<T> |
| Modifier and Type | Method and Description |
|---|---|
protected void |
GeneratorQueue._add(Generator<? extends T> value,
int n) |
static <T> GeneratorQueue<T> |
GeneratorQueue.beginWith(Generator<Integer> n,
DataSource<T> values) |
GeneratorQueue<T> |
GeneratorQueue.then(Generator<? extends T> moreValues) |
GeneratorQueue<T> |
GeneratorQueue.then(Generator<Integer> n,
Generator<? extends T> moreValues) |
GeneratorQueue<T> |
GeneratorQueue.then(Generator<Integer> n,
Generator<? extends T> moreValues) |
GeneratorQueue<T> |
GeneratorQueue.then(int n,
Generator<? extends T> moreValues) |
| Constructor and Description |
|---|
MergingGenerator(Generator<? extends T>[] generators) |
MixingGenerator(Class<T> valueType,
Generator<? extends T>[] generators) |
| Modifier and Type | Class and Description |
|---|---|
class |
BooleansGenerator
Generates random booleans.
|
class |
CharactersGenerator
Generates random characters.
|
static class |
CharactersGenerator.FromString |
static class |
CharactersGenerator.InRange |
class |
DoublesGenerator
Generates random doubles in a given range.
|
class |
RandomIntegersGenerator
Generates random integers in a given range.
|
class |
StringsGenerator
Generates random strings.
|
| Constructor and Description |
|---|
InRange(Generator<Integer> range) |
| Modifier and Type | Class and Description |
|---|---|
class |
PermutationsGenerator<T> |
| Modifier and Type | Method and Description |
|---|---|
static <T> LazyValues<T> |
LazyValues.any(Generator<Integer> n,
DataSource<? extends T> values)
Fetches up to
n elements from values. |
static <T> EagerValues<T> |
EagerValues.first(Generator<Integer> n,
DataSource<T> values)
Fetches the next
n elements from values. |
static <T> EagerValues<T> |
EagerValues.next(Generator<Integer> n,
DataSource<T> values)
Fetches the next
n elements from values. |
FlValues<T> |
AbstractValues.then(Generator<Integer> n,
DataSource<? extends T> moreValues) |
Copyright © 2019. All rights reserved.