| Package | Description |
|---|---|
| org.cthul.fixsure | |
| org.cthul.fixsure.distributions | |
| org.cthul.fixsure.factory | |
| org.cthul.fixsure.generators.primitives | |
| org.cthul.fixsure.generators.value |
| Modifier and Type | Method and Description |
|---|---|
static <T> FlGenerator<T> |
Generator.generate(Class<T> clazz,
Supplier<T> supplier)
Converts a supplier into a typed generator.
|
static <T> FlGenerator<T> |
Generator.generate(Supplier<T> supplier)
Converts a supplier into a generator.
|
static <T> FlSequence<T> |
Sequence.sequence(Class<T> clazz,
long length,
LongFunction<T> function)
Converts a function into a typed, bounded sequence
|
static <T> FlSequence<T> |
Sequence.sequence(LongFunction<T> function)
Converts a function into an unbounded sequence.
|
static <T> FlSequence<T> |
Sequence.sequence(long length,
LongFunction<T> function)
Converts a function into a bounded sequence.
|
static <T> FlTemplate<T> |
Template.template(FlTemplate<T> template)
Returns a template.
|
| Modifier and Type | Method and Description |
|---|---|
static GaussianDistribution |
GaussianDistribution.normal()
Returns a normal or Gaussian distribution with default seed.
|
static GaussianDistribution |
GaussianDistribution.normal(long seed)
Returns a normal or Gaussian distribution with the specified seed.
|
static GaussianDistribution |
GaussianDistribution.normalDistribution()
Returns a normal or Gaussian distribution with default seed.
|
static GaussianDistribution |
GaussianDistribution.normalDistribution(long seed)
Returns a normal or Gaussian distribution with the specified seed.
|
static UniformDistribution |
UniformDistribution.uniform()
Returns a uniform distribution with default seed.
|
static UniformDistribution |
UniformDistribution.uniform(long seed)
Returns a uniform distribution with the specified seed.
|
static UniformDistribution |
UniformDistribution.uniformDistribution()
Returns a uniform distribution with default seed.
|
static UniformDistribution |
UniformDistribution.uniformDistribution(long seed)
Returns a uniform distribution with the specified seed.
|
| Modifier and Type | Method and Description |
|---|---|
static FactoriesSetup |
DefaultFactories.newFactoriesSetup() |
| Modifier and Type | Method and Description |
|---|---|
static FlTemplate<Boolean> |
BooleansGenerator.booleans()
Generates random booleans
|
static FlTemplate<Boolean> |
BooleansGenerator.booleans(Distribution distribution)
Generates random booleans
|
static FlTemplate<Boolean> |
BooleansGenerator.booleans(double ratio)
Generates random booleans.
|
static FlTemplate<Boolean> |
BooleansGenerator.booleans(double threshold,
Distribution distribution,
long seedHint) |
static FlTemplate<Character> |
CharactersGenerator.characters()
Generates random characters from space (
' ' to tilde ('~'). |
static FlTemplate<Character> |
CharactersGenerator.characters(char min,
char max)
Generates random characters with in the given range, inclusive.
|
static FlTemplate<Character> |
CharactersGenerator.characters(char min,
char max,
Distribution distribution)
Generates random characters with in the given range, inclusive.
|
static FlTemplate<Character> |
CharactersGenerator.characters(String source)
Generates random characters from a string.
|
static FlTemplate<Character> |
CharactersGenerator.characters(String source,
Distribution distribution)
Generates random characters from a string.
|
static ConsecutiveIntegersSequence |
ConsecutiveIntegersSequence.consecutiveIntegers()
Generates consecutive integers.
|
static ConsecutiveIntegersSequence |
ConsecutiveIntegersSequence.consecutiveIntegers(int first)
Generates consecutive integers.
|
static ConsecutiveIntegersSequence |
ConsecutiveIntegersSequence.consecutiveIntegers(int first,
int step)
Generates consecutive integers.
|
static ConsecutiveIntegersSequence |
ConsecutiveIntegersSequence.consecutiveIntegers(int first,
int step,
int end)
Generates consecutive integers.
|
static FlTemplate<Double> |
DoublesGenerator.doubles()
Generates random doubles.
|
static FlTemplate<Double> |
DoublesGenerator.doubles(int high)
Generates random doubles.
|
static FlTemplate<Double> |
DoublesGenerator.doubles(int high,
Distribution distribution)
Generates random doubles.
|
static FlTemplate<Double> |
DoublesGenerator.doubles(int low,
int high)
Generates random doubles.
|
static FlTemplate<Double> |
DoublesGenerator.doubles(int low,
int high,
Distribution distribution)
Generates random doubles.
|
static RandomIntegersGenerator.Template |
RandomIntegersGenerator.integers()
Generates random integers.
|
static RandomIntegersGenerator.Template |
RandomIntegersGenerator.integers(int end)
Generates random integers.
|
static FlTemplate<Integer> |
RandomIntegersGenerator.integers(int end,
Distribution distribution)
Generates random integers.
|
static RandomIntegersGenerator.Template |
RandomIntegersGenerator.integers(int start,
int end)
Generates random integers.
|
static FlTemplate<Integer> |
RandomIntegersGenerator.integers(int start,
int end,
Distribution distribution)
Generates random integers.
|
static FlTemplate<String> |
StringsGenerator.strings()
Generates random strings.
|
static FlTemplate<String> |
StringsGenerator.strings(char min,
char max)
Generates random strings.
|
static FlTemplate<String> |
StringsGenerator.strings(char min,
char max,
int length)
Generates random strings.
|
static FlTemplate<String> |
StringsGenerator.strings(DataSource<Character> characters)
Generates random strings.
|
static FlTemplate<String> |
StringsGenerator.strings(DataSource<Character> characters,
DataSource<Integer> length)
Generates random strings.
|
static FlTemplate<String> |
StringsGenerator.strings(DataSource<Character> characters,
int length)
Generates random strings.
|
static FlTemplate<String> |
StringsGenerator.strings(int length)
Generates random strings.
|
| Modifier and Type | Method and Description |
|---|---|
static <T> FlTemplate<T> |
ConstantValue.constant(Supplier<? extends T> valueSupplier) |
static <T> ConstantValue<T> |
ConstantValue.constant(T value)
Creates an unbounded sequence of only one value.
|
static <T> EmptySequence<T> |
EmptySequence.noValues()
Returns a sequence with length zero.
|
static <T> ConstantValue<T> |
ConstantValue.nullValues()
Returns an unbounded sequence of
null values |
static <T> FlTemplate<T[]> |
PermutationsGenerator.permutations(T... array)
Generates permutations of an array
|
static <T> ItemsSequence<T> |
ItemsSequence.sequence(Class<T> valueType,
Collection<T> data)
Converts a collection into a sequence.
|
static <T> ItemsSequence<T> |
ItemsSequence.sequence(Collection<T> data)
Converts a collection into a sequence.
|
static <T> ItemsSequence<T> |
ItemsSequence.sequence(T... data)
Converts an array into a sequence.
|
Copyright © 2019. All rights reserved.