Class Attributes
java.lang.Object
opennlp.tools.dictionary.serializer.Attributes
The 
Attributes class stores name value pairs.
 
 Problem: If a HashMap is used storing name-value pairs this results
 in a very high memory footprint, replace it.
- 
Constructor SummaryConstructors
- 
Method Summary
- 
Constructor Details- 
Attributespublic Attributes()
 
- 
- 
Method Details- 
getValueRetrieves the value for the given key ornullif attribute it not set.- Parameters:
- key- The key to get the desired value for.
- Returns:
- The value for the given key or null
 
- 
setValueSets a key/value pair.- Parameters:
- key- The key that uniquely identifies the specified- value. Must not be- null.
- value- The value that shall be retrievable via its- key. Must not be- null.
 
- 
iteratorIterates over the keys.- Returns:
- Retrieves a key-based Iterator.
 
 
-