public class Attributes extends 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 |
---|---|
String |
getValue(String key)
Retrieves the value for the given key or null if attribute it not set.
|
Iterator<String> |
iterator()
Iterates over the keys.
|
void |
setValue(String key,
String value)
Sets a key/value pair.
|
Copyright © 2021 The Apache Software Foundation. All rights reserved.