|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.octo.captcha.component.word.DefaultSizeSortedWordList
public class DefaultSizeSortedWordList
Container for words that is initialized from a Dictionnary.
| Constructor Summary | |
|---|---|
DefaultSizeSortedWordList(java.util.Locale locale)
A word list has to be constructed with a locale |
|
| Method Summary | |
|---|---|
void |
addWord(java.lang.String word)
Adds a word to the list |
java.util.Locale |
getLocale()
Return a locale for this list |
java.lang.Integer |
getMaxWord()
Return the max length of contained word in this wordlist |
java.lang.Integer |
getMinWord()
Return the min length of contained word in this wordlist |
java.lang.String |
getNextWord(java.lang.Integer length)
Return a word of randomly choosen of the specified length. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultSizeSortedWordList(java.util.Locale locale)
| Method Detail |
|---|
public java.util.Locale getLocale()
getLocale in interface SizeSortedWordListpublic void addWord(java.lang.String word)
addWord in interface SizeSortedWordListpublic java.lang.Integer getMinWord()
getMinWord in interface SizeSortedWordListpublic java.lang.Integer getMaxWord()
getMaxWord in interface SizeSortedWordListpublic java.lang.String getNextWord(java.lang.Integer length)
getNextWord in interface SizeSortedWordList
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||