java.lang.Object
com.aquima.interactions.foundation.utility.ValueMap
All Implemented Interfaces:
Serializable

public class ValueMap extends Object implements Serializable
Map class for string key/value pairs.
Since:
9.0
Author:
Arjan Pragt
See Also:
  • Constructor Details

    • ValueMap

      public ValueMap()
      This method constructs an empty value map
    • ValueMap

      public ValueMap(ValueMap other)
      Copy constructor
      Parameters:
      other - the other map to copy from
  • Method Details

    • size

      public int size()
      This method returns the size of the map.
      Returns:
      The size of the map.
    • getKeys

      public String[] getKeys()
      This method returns the keys of the map.
      Returns:
      The keys of the map, never null, but could be an empty array.
    • containsKey

      public boolean containsKey(String name)
      This method may be used to test if the map contains a value (may be null) in this map.
      Parameters:
      name - The name of the key.
      Returns:
      Boolean indicating if this map contains a value (may be null) for the specified key.
    • setValue

      public void setValue(String name, String value)
      This method sets a value in this map for a specified key.
      Parameters:
      name - The key name, may be null.
      value - The value, may be null.
    • getValue

      public String getValue(String name)
      This method returns the value for a specified key.
      Parameters:
      name - The key name, may be null.
      Returns:
      The value, may be null.
    • toString

      public String toString()
      Overrides:
      toString in class Object