|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectopennlp.tools.dictionary.serializer.Attributes
public class Attributes
The Attributes class stores name value pairs.
Problem: The HashMap for storing the name value pairs has a very high
memory footprint, replace it.
| Constructor Summary | |
|---|---|
Attributes()
|
|
| Method Summary | |
|---|---|
java.lang.String |
getValue(java.lang.String key)
Retrives the value for the given key or null if attribute it not set. |
java.util.Iterator |
iterator()
Iterates over the keys. |
void |
setValue(java.lang.String key,
java.lang.String value)
Sets a key/value pair. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Attributes()
| Method Detail |
|---|
public java.lang.String getValue(java.lang.String key)
key -
public void setValue(java.lang.String key,
java.lang.String value)
key - value - public java.util.Iterator iterator()
Iterator
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||