public class Attributes
extends java.lang.Object
Attributes
class stores name value pairs.
Problem: The HashMap for storing the name value pairs has a very high
memory footprint, replace it.Constructor and Description |
---|
Attributes() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getValue(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.
|
void |
setValue(java.lang.String key,
java.lang.String value)
Sets a key/value pair.
|
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<java.lang.String> iterator()
Iterator
Copyright © 2010 - 2020 Adobe. All Rights Reserved