Class ValueMap
java.lang.Object
com.aquima.interactions.foundation.utility.ValueMap
- All Implemented Interfaces:
Serializable
Map class for string key/value pairs.
- Since:
- 9.0
- Author:
- Arjan Pragt
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
containsKey
(String name) This method may be used to test if the map contains a value (may be null) in this map.String[]
getKeys()
This method returns the keys of the map.This method returns the value for a specified key.void
This method sets a value in this map for a specified key.int
size()
This method returns the size of the map.toString()
-
Constructor Details
-
ValueMap
public ValueMap()This method constructs an empty value map -
ValueMap
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
This method returns the keys of the map.- Returns:
- The keys of the map, never null, but could be an empty array.
-
containsKey
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
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
This method returns the value for a specified key.- Parameters:
name
- The key name, may be null.- Returns:
- The value, may be null.
-
toString
-