InitializeSupport, TextGeneratorpublic class WordsGenerator extends InitializeObject implements TextGenerator
| Modifier and Type | Class | Description |
|---|---|---|
static class |
WordsGenerator.Alphabet |
mutex| Constructor | Description |
|---|---|
WordsGenerator() |
| Modifier and Type | Method | Description |
|---|---|---|
String |
generate() |
|
protected void |
init() |
|
static int |
randomChars(Random random,
char[] src,
char[] dest,
int rdCount,
int emptyCount) |
|
WordsGenerator |
setAlphabet(WordsGenerator.Alphabet alphabet) |
|
WordsGenerator |
setLength(int length) |
|
boolean |
verify(String value) |
assertNotInitialized, destroy, initializeprotected void init()
throws Exception
init in class InitializeObjectExceptionpublic String generate()
generate in interface TextGeneratorpublic boolean verify(String value)
verify in interface TextGeneratorpublic WordsGenerator setLength(int length)
public WordsGenerator setAlphabet(WordsGenerator.Alphabet alphabet)
public static int randomChars(Random random, char[] src, char[] dest, int rdCount, int emptyCount)
Copyright © 2018. All rights reserved.