public class WordsGenerator extends InitializeObject implements TextGenerator
| Modifier and Type | Class and Description |
|---|---|
static class |
WordsGenerator.Alphabet |
mutex| Constructor and Description |
|---|
WordsGenerator() |
| Modifier and Type | Method and 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) |
assertNotInitialized, destroy, initializeprotected void init()
throws Exception
init in class InitializeObjectExceptionpublic String generate()
generate 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 © 2017. All rights reserved.