public class WordGenerator extends Object implements IClusterable
Constructor and Description |
---|
WordGenerator()
Create the word generator, loading the words and preparing them for serving.
|
WordGenerator(String[] words)
Create the word generator using the supplied array of words as the word source to use.
|
Modifier and Type | Method and Description |
---|---|
Word |
next()
Returns the next word from the word generator.
|
int |
size()
Get the number of words that were discovered.
|
public WordGenerator()
public WordGenerator(String[] words)
words
- The words to usepublic Word next()
public int size()
Copyright © 2006–2022 Apache Software Foundation. All rights reserved.