public class Fixsure extends Object
| Constructor and Description |
|---|
Fixsure() |
| 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) |
static FlTemplate<Character> |
characters()
Generates random characters from space (
' ' to tilde ('~'). |
static FlTemplate<Character> |
characters(char min,
char max)
Generates random characters with in the given range, inclusive.
|
static FlTemplate<Character> |
characters(char min,
char max,
Distribution distribution)
Generates random characters with in the given range, inclusive.
|
static FlTemplate<Character> |
characters(String source)
Generates random characters from a string.
|
static FlTemplate<Character> |
characters(String source,
Distribution distribution)
Generates random characters from a string.
|
static ConsecutiveIntegersSequence |
consecutiveIntegers()
Generates consecutive integers.
|
static ConsecutiveIntegersSequence |
consecutiveIntegers(int first)
Generates consecutive integers.
|
static ConsecutiveIntegersSequence |
consecutiveIntegers(int first,
int step)
Generates consecutive integers.
|
static ConsecutiveIntegersSequence |
consecutiveIntegers(int first,
int step,
int end)
Generates consecutive integers.
|
static <T> FlTemplate<T> |
constant(Supplier<? extends T> valueSupplier) |
static <T> ConstantValue<T> |
constant(T value)
Creates an unbounded sequence of only one value.
|
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.
|
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.
|
static FactoriesSetup |
newFactoriesSetup() |
static GaussianDistribution |
normal()
Returns a normal or Gaussian distribution with default seed.
|
static GaussianDistribution |
normal(long seed)
Returns a normal or Gaussian distribution with the specified seed.
|
static GaussianDistribution |
normalDistribution()
Returns a normal or Gaussian distribution with default seed.
|
static GaussianDistribution |
normalDistribution(long seed)
Returns a normal or Gaussian distribution with the specified seed.
|
static <T> EmptySequence<T> |
noValues()
Returns a sequence with length zero.
|
static <T> ConstantValue<T> |
nullValues()
Returns an unbounded sequence of
null values |
static <T> FlTemplate<T[]> |
permutations(T... array)
Generates permutations of an array
|
static <T> ItemsSequence<T> |
sequence(Class<T> valueType,
Collection<T> data)
Converts a collection into a sequence.
|
static <T> ItemsSequence<T> |
sequence(Collection<T> data)
Converts a collection into a sequence.
|
static <T> ItemsSequence<T> |
sequence(T... data)
Converts an array into a sequence.
|
static FlTemplate<String> |
strings()
Generates random strings.
|
static FlTemplate<String> |
strings(char min,
char max)
Generates random strings.
|
static FlTemplate<String> |
strings(char min,
char max,
int length)
Generates random strings.
|
static FlTemplate<String> |
strings(DataSource<Character> characters)
Generates random strings.
|
static FlTemplate<String> |
strings(DataSource<Character> characters,
DataSource<Integer> length)
Generates random strings.
|
static FlTemplate<String> |
strings(DataSource<Character> characters,
int length)
Generates random strings.
|
static FlTemplate<String> |
strings(int length)
Generates random strings.
|
static UniformDistribution |
uniform()
Returns a uniform distribution with default seed.
|
static UniformDistribution |
uniform(long seed)
Returns a uniform distribution with the specified seed.
|
static UniformDistribution |
uniformDistribution()
Returns a uniform distribution with default seed.
|
static UniformDistribution |
uniformDistribution(long seed)
Returns a uniform distribution with the specified seed.
|
public static FlTemplate<Boolean> booleans()
BooleansGenerator.booleans()public static FlTemplate<Boolean> booleans(double ratio)
ratio - ratio of true valuesBooleansGenerator.booleans(double)public static FlTemplate<Boolean> booleans(Distribution distribution)
distribution - BooleansGenerator.booleans(org.cthul.fixsure.Distribution)public static FlTemplate<Boolean> booleans(double threshold, Distribution distribution, long seedHint)
public static FlTemplate<Character> characters()
' ' to tilde ('~').CharactersGenerator.characters()public static FlTemplate<Character> characters(String source)
source - CharactersGenerator.characters(java.lang.String)public static FlTemplate<Character> characters(String source, Distribution distribution)
source - distribution - CharactersGenerator.characters(java.lang.String,org.cthul.fixsure.Distribution)public static FlTemplate<Character> characters(char min, char max)
min - max - CharactersGenerator.characters(char,char)public static FlTemplate<Character> characters(char min, char max, Distribution distribution)
min - max - distribution - CharactersGenerator.characters(char,char,org.cthul.fixsure.Distribution)public static ConsecutiveIntegersSequence consecutiveIntegers()
ConsecutiveIntegersSequence.consecutiveIntegers()public static ConsecutiveIntegersSequence consecutiveIntegers(int first)
first - ConsecutiveIntegersSequence.consecutiveIntegers(int)public static ConsecutiveIntegersSequence consecutiveIntegers(int first, int step)
first - step - ConsecutiveIntegersSequence.consecutiveIntegers(int,int)public static ConsecutiveIntegersSequence consecutiveIntegers(int first, int step, int end)
first - step - end - ConsecutiveIntegersSequence.consecutiveIntegers(int,int,int)public static FlTemplate<Double> doubles()
DoublesGenerator.doubles()public static FlTemplate<Double> doubles(int high)
high - DoublesGenerator.doubles(int)public static FlTemplate<Double> doubles(int high, Distribution distribution)
DoublesGenerator.doubles(int,org.cthul.fixsure.Distribution)public static FlTemplate<Double> doubles(int low, int high)
low - high - DoublesGenerator.doubles(int,int)public static FlTemplate<Double> doubles(int low, int high, Distribution distribution)
low - high - distribution - DoublesGenerator.doubles(int,int,org.cthul.fixsure.Distribution)public static RandomIntegersGenerator.Template integers()
RandomIntegersGenerator.integers()public static RandomIntegersGenerator.Template integers(int end)
end - upper bound, exclusiveRandomIntegersGenerator.integers(int)public static FlTemplate<Integer> integers(int end, Distribution distribution)
end - upper bound, exclusivedistribution - RandomIntegersGenerator.integers(int,org.cthul.fixsure.Distribution)public static RandomIntegersGenerator.Template integers(int start, int end)
start - end - upper bound, exclusiveRandomIntegersGenerator.integers(int,int)public static FlTemplate<Integer> integers(int start, int end, Distribution distribution)
start - end - upper bound, exclusivedistribution - RandomIntegersGenerator.integers(int,int,org.cthul.fixsure.Distribution)public static FlTemplate<String> strings()
StringsGenerator.strings()public static FlTemplate<String> strings(int length)
length - StringsGenerator.strings(int)public static FlTemplate<String> strings(DataSource<Character> characters)
characters - StringsGenerator.strings(org.cthul.fixsure.DataSource)public static FlTemplate<String> strings(DataSource<Character> characters, int length)
characters - length - StringsGenerator.strings(org.cthul.fixsure.DataSource,int)public static FlTemplate<String> strings(DataSource<Character> characters, DataSource<Integer> length)
characters - length - StringsGenerator.strings(org.cthul.fixsure.DataSource,org.cthul.fixsure.DataSource)public static FlTemplate<String> strings(char min, char max)
min - max - StringsGenerator.strings(char,char)public static FlTemplate<String> strings(char min, char max, int length)
min - max - length - StringsGenerator.strings(char,char,int)public static <T> ConstantValue<T> constant(T value)
T - value - ConstantValue.constant(java.lang.Object)public static <T> FlTemplate<T> constant(Supplier<? extends T> valueSupplier)
public static <T> ConstantValue<T> nullValues()
null valuesT - null valuesConstantValue.nullValues()public static <T> EmptySequence<T> noValues()
T - EmptySequence.noValues()public static <T> ItemsSequence<T> sequence(T... data)
T - data - ItemsSequence.sequence(java.lang.Object...)public static <T> ItemsSequence<T> sequence(Collection<T> data)
T - data - ItemsSequence.sequence(java.util.Collection)public static <T> ItemsSequence<T> sequence(Class<T> valueType, Collection<T> data)
T - valueType - data - ItemsSequence.sequence(java.lang.Class,java.util.Collection)public static <T> FlTemplate<T[]> permutations(T... array)
T - array - PermutationsGenerator.permutations(java.lang.Object...)public static UniformDistribution uniformDistribution()
UniformDistribution.uniformDistribution()public static UniformDistribution uniform()
UniformDistribution.uniform()public static UniformDistribution uniformDistribution(long seed)
seed - UniformDistribution.uniformDistribution(long)public static UniformDistribution uniform(long seed)
seed - UniformDistribution.uniform(long)public static GaussianDistribution normalDistribution()
GaussianDistribution.normalDistribution()public static GaussianDistribution normal()
GaussianDistribution.normal()public static GaussianDistribution normalDistribution(long seed)
seed - GaussianDistribution.normalDistribution(long)public static GaussianDistribution normal(long seed)
seed - GaussianDistribution.normal(long)public static FactoriesSetup newFactoriesSetup()
DefaultFactories.newFactoriesSetup()Copyright © 2019. All rights reserved.