Class Attributes


  • public class Attributes
    extends Object
    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 Detail

      • Attributes

        public Attributes()
    • Method Detail

      • getValue

        public String getValue​(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​(String key,
                             String value)
        Sets a key/value pair.
        Parameters:
        key -
        value -