public abstract class CharactersGenerator extends GeneratorWithScalar<Character> implements CopyableGenerator<Character>
| Modifier and Type | Class and Description |
|---|---|
static class |
CharactersGenerator.FromString |
static class |
CharactersGenerator.InRange |
LAMBDA_SEED_HINT| Modifier | Constructor and Description |
|---|---|
protected |
CharactersGenerator(CharactersGenerator src) |
|
CharactersGenerator(DataSource<Integer> scalarGenerator) |
|
CharactersGenerator(int scalar) |
|
CharactersGenerator(int scalar,
Distribution distribution,
long seed) |
| Modifier and Type | Method and Description |
|---|---|
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(DataSource<Integer> range)
Converts integers to characters
|
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.
|
Class<Character> |
getValueType()
Returns the type of values produced/contained by this instance.
|
Character |
next()
Produces next value.
|
abstract char |
nextValue() |
classSeed, nextScalar, randomSeedHint, toStringtoStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcopy, snapshotaggregate, 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, toGeneratorspublic CharactersGenerator(int scalar)
public CharactersGenerator(DataSource<Integer> scalarGenerator)
public CharactersGenerator(int scalar,
Distribution distribution,
long seed)
protected CharactersGenerator(CharactersGenerator src)
public static FlTemplate<Character> characters()
' ' to tilde ('~').public static FlTemplate<Character> characters(String source)
source - public static FlTemplate<Character> characters(String source, Distribution distribution)
source - distribution - public static FlTemplate<Character> characters(char min, char max)
min - max - public static FlTemplate<Character> characters(char min, char max, Distribution distribution)
min - max - distribution - public static FlTemplate<Character> characters(DataSource<Integer> range)
range - public abstract char nextValue()
public Class<Character> getValueType()
Typednull if the type is unknown;
should never return a primitive type.getValueType in interface FlDataSource<Character>getValueType in interface Typed<Character>Copyright © 2019. All rights reserved.