public class BasicVocabulary extends Object implements Serializable, Vocabulary
| Constructor and Description |
|---|
BasicVocabulary() |
BasicVocabulary(List<String> words) |
public int getLength()
getLength in interface Vocabularypublic String get(int index)
get in interface Vocabularypublic boolean contains(String word)
contains in interface Vocabularypublic void add(String word)
add in interface Vocabularypublic void setWords(List<String> words)
setWords in interface Vocabularypublic Vocabulary makeCopy()
makeCopy in interface Vocabularypublic int indexOf(String word)
indexOf in interface VocabularyCopyright © 2017. All rights reserved.