public class StringsGenerator extends GeneratorWithScalar<String> implements CopyableGenerator<String>
| Modifier and Type | Field and Description |
|---|---|
protected static int |
DEFAULT_LENGTH |
LAMBDA_SEED_HINT| Constructor and Description |
|---|
StringsGenerator() |
StringsGenerator(DataSource<Character> characters) |
StringsGenerator(DataSource<Character> characters,
DataSource<Integer> length) |
StringsGenerator(DataSource<Character> characters,
int length) |
StringsGenerator(int length) |
StringsGenerator(StringsGenerator src) |
| Modifier and Type | Method and Description |
|---|---|
StringsGenerator |
copy() |
Class<String> |
getValueType()
Returns the type of values produced/contained by this instance.
|
String |
next()
Produces next value.
|
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.
|
StringBuilder |
toString(StringBuilder sb) |
classSeed, nextScalar, randomSeedHinttoStringclone, 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, randomSeedHint, several, shuffle, shuffle, some, split, split, stream, then, three, toGenerator, transform, two, withrepeat, transformSourcetoGenerators, toGeneratorsprotected static final int DEFAULT_LENGTH
public StringsGenerator(DataSource<Character> characters)
public StringsGenerator(DataSource<Character> characters, int length)
public StringsGenerator(DataSource<Character> characters, DataSource<Integer> length)
public StringsGenerator(int length)
public StringsGenerator()
public StringsGenerator(StringsGenerator src)
public static FlTemplate<String> strings()
public static FlTemplate<String> strings(int length)
length - public static FlTemplate<String> strings(DataSource<Character> characters)
characters - public static FlTemplate<String> strings(DataSource<Character> characters, int length)
characters - length - public static FlTemplate<String> strings(DataSource<Character> characters, DataSource<Integer> length)
characters - length - public static FlTemplate<String> strings(char min, char max)
min - max - public static FlTemplate<String> strings(char min, char max, int length)
min - max - length - public Class<String> getValueType()
Typednull if the type is unknown;
should never return a primitive type.getValueType in interface FlDataSource<String>getValueType in interface Typed<String>public StringsGenerator copy()
copy in interface CopyableGenerator<String>public StringBuilder toString(StringBuilder sb)
toString in interface StringifytoString in class GeneratorWithScalar<String>Copyright © 2019. All rights reserved.