Class Attributes
- java.lang.Object
 - 
- opennlp.tools.dictionary.serializer.Attributes
 
 
- 
public class Attributes extends java.lang.ObjectTheAttributesclass stores name value pairs. Problem: The HashMap for storing the name value pairs has a very high memory footprint, replace it. 
- 
- 
Constructor Summary
Constructors Constructor Description Attributes() 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetValue(java.lang.String key)Retrieves the value for the given key or null if attribute it not set.java.util.Iterator<java.lang.String>iterator()Iterates over the keys.voidsetValue(java.lang.String key, java.lang.String value)Sets a key/value pair. 
 - 
 
- 
- 
Method Detail
- 
getValue
public java.lang.String getValue(java.lang.String key)
Retrieves the value for the given key or null if attribute it not set.- Parameters:
 key-- Returns:
 - the value
 
 
- 
setValue
public void setValue(java.lang.String key, java.lang.String value)Sets a key/value pair.- Parameters:
 key-value-
 
- 
iterator
public java.util.Iterator<java.lang.String> iterator()
Iterates over the keys.- Returns:
 - key-
Iterator 
 
 - 
 
 -