Class Attributes
java.lang.Object
opennlp.tools.dictionary.serializer.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
Constructors -
Method Summary
-
Constructor Details
-
Attributes
public Attributes()
-
-
Method Details
-
getValue
Retrieves the value for the given key or null if attribute it not set.- Parameters:
key-- Returns:
- the value
-
setValue
Sets a key/value pair.- Parameters:
key-value-
-
iterator
Iterates over the keys.- Returns:
- key-
Iterator
-