Modifier and Type | Method and Description |
---|---|
void |
add(String word)
Adds the specified word to the list if the word is not already added.
|
boolean |
contains(String word)
Returns 'true' if the list contains the specified word.
|
String |
getName()
Get the name of the state.
|
int |
getSize()
Returns the size of the list.
|
Map<String,Integer> |
getWords()
Gets the words.
|
int |
indexOf(String word)
Returns the index of the specified word in the list.
|
boolean |
isUpdated()
Returns 'true' if the list is updated since creation (and reload).
|
void |
setName(String name)
Note: That this API is only for Jackson JSON deserialization.
|
void |
setSize(int size)
Sets the size of the list.
|
void |
setWords(Map<String,Integer> list)
Sets the words.
|
public WordList()
public WordList(String name)
public void add(String word)
public boolean contains(String word)
public int indexOf(String word)
public int getSize()
public boolean isUpdated()
public void setSize(int size)
public void setName(String name)
public Map<String,Integer> getWords()
Copyright © 2013 Apache Software Foundation. All rights reserved.