Creates a new instance of the map and assigns its value.
Appends new elements to this map.
a map with elements to be added.
Clears this map by removing all its elements.
Creates a binary clone of this object.
a clone of this object.
Gets a map element specified by its key.
a key of the element to get.
the value of the map element.
Converts map element into an AnyValueArray or returns empty AnyValueArray if conversion is not possible.
a key of element to get.
AnyValueArray value of the element or empty AnyValueArray if conversion is not supported.
Converts map element into an AnyValueArray or returns default value if conversion is not possible.
a key of element to get.
the default value
AnyValueArray value of the element or default value if conversion is not supported.
Converts map element into a boolean or returns false if conversion is not possible.
a key of element to get.
boolean value of the element or false if conversion is not supported.
Converts map element into a boolean or returns default value if conversion is not possible.
a key of element to get.
the default value
boolean value of the element or default value if conversion is not supported.
Converts map element into a Date or returns the current date if conversion is not possible.
a key of element to get.
Date value of the element or the current date if conversion is not supported.
Converts map element into a Date or returns default value if conversion is not possible.
a key of element to get.
the default value
Date value of the element or default value if conversion is not supported.
Converts map element into a double or returns 0 if conversion is not possible.
a key of element to get.
double value of the element or 0 if conversion is not supported.
Converts map element into a double or returns default value if conversion is not possible.
a key of element to get.
the default value
double value of the element or default value if conversion is not supported.
Converts map element into a float or returns 0 if conversion is not possible.
a key of element to get.
float value of the element or 0 if conversion is not supported.
Converts map element into a flot or returns default value if conversion is not possible.
a key of element to get.
the default value
flot value of the element or default value if conversion is not supported.
Converts map element into an integer or returns 0 if conversion is not possible.
a key of element to get.
integer value of the element or 0 if conversion is not supported.
Converts map element into an integer or returns default value if conversion is not possible.
a key of element to get.
the default value
integer value of the element or default value if conversion is not supported.
Converts map element into a long or returns 0 if conversion is not possible.
a key of element to get.
long value of the element or 0 if conversion is not supported.
Converts map element into a long or returns default value if conversion is not possible.
a key of element to get.
the default value
long value of the element or default value if conversion is not supported.
Converts map element into an AnyValueMap or returns empty AnyValueMap if conversion is not possible.
a key of element to get.
AnyValueMap value of the element or empty AnyValueMap if conversion is not supported.
Converts map element into an AnyValueMap or returns default value if conversion is not possible.
a key of element to get.
the default value
AnyValueMap value of the element or default value if conversion is not supported.
Converts map element into an AnyValueArray or returns null if conversion is not possible.
a key of element to get.
AnyValueArray value of the element or null if conversion is not supported.
Converts map element into a boolean or returns null if conversion is not possible.
a key of element to get.
boolean value of the element or null if conversion is not supported.
Converts map element into a Date or returns null if conversion is not possible.
a key of element to get.
Date value of the element or null if conversion is not supported.
Converts map element into a double or returns null if conversion is not possible.
a key of element to get.
double value of the element or null if conversion is not supported.
Converts map element into a float or returns null if conversion is not possible.
a key of element to get.
float value of the element or null if conversion is not supported.
Converts map element into an integer or returns null if conversion is not possible.
a key of element to get.
integer value of the element or null if conversion is not supported.
Converts map element into a long or returns null if conversion is not possible.
a key of element to get.
long value of the element or null if conversion is not supported.
Converts map element into an AnyValueMap or returns null if conversion is not possible.
a key of element to get.
AnyValueMap value of the element or null if conversion is not supported.
Converts map element into a string or returns null if conversion is not possible.
a key of element to get.
string value of the element or null if conversion is not supported.
Converts map element into a value defined by specied typecode. If conversion is not possible it returns null.
the TypeCode that defined the type of the result
a key of element to get.
element value defined by the typecode or null if conversion is not supported.
Gets the value stored in map element without any conversions. When element key is not defined it returns the entire map value.
(optional) a key of the element to get
the element value or value of the map when index is not defined.
Converts map element into a string or returns "" if conversion is not possible.
a key of element to get.
string value of the element or "" if conversion is not supported.
Converts map element into a string or returns default value if conversion is not possible.
a key of element to get.
the default value
string value of the element or default value if conversion is not supported.
Converts map element into a value defined by specied typecode. If conversion is not possible it returns default value for the specified type.
the TypeCode that defined the type of the result
a key of element to get.
element value defined by the typecode or default if conversion is not supported.
Converts map element into a value defined by specied typecode. If conversion is not possible it returns default value.
the TypeCode that defined the type of the result
a key of element to get.
the default value
element value defined by the typecode or default value if conversion is not supported.
Converts map element into an AnyValue or returns an empty AnyValue if conversion is not possible.
a key of element to get.
AnyValue value of the element or empty AnyValue if conversion is not supported.
Gets keys of all elements stored in this map.
a list with all map keys.
Gets a number of elements stored in this map.
the number of elements in this map.
Puts a new value into map element specified by its key.
a key of the element to put.
a new value for map element.
Removes a map element specified by its key
a key of the element to remove.
Sets a new value to map element specified by its index. When the index is not defined, it resets the entire map value. This method has double purpose because method overrides are not supported in JavaScript.
(optional) a key of the element to set
a new element or map value.
Gets a string representation of the object. The result is a semicolon-separated list of key-value pairs as "key1=value1;key2=value2;key=value3"
a string representation of the object.
Creates a new AnyValueMap by merging two or more maps. Maps defined later in the list override values from previously defined maps.
an array of maps to be merged
a newly created AnyValueMap.
Creates a new AnyValueMap from a list of key-value pairs called tuples.
a list of values where odd elements are keys and the following even elements are values
a newly created AnyValueArray.
Creates a new AnyValueMap from a list of key-value pairs called tuples. The method is similar to fromTuples but tuples are passed as array instead of parameters.
a list of values where odd elements are keys and the following even elements are values
a newly created AnyValueArray.
Converts specified value into AnyValueMap.
value to be converted
a newly created AnyValueMap.
Generated using TypeDoc
Cross-language implementation of dynamic object map (dictionary) what can hold values of any type. The stored values can be converted to different types using variety of accessor methods.
Example
let value1 = new AnyValueMap({ key1: 1, key2: "123.456", key3: "2018-01-01" }); value1.getAsBoolean("key1"); // Result: true value1.getAsInteger("key2"); // Result: 123 value1.getAsFloat("key2"); // Result: 123.456 value1.getAsDateTime("key3"); // Result: new Date(2018,0,1)
StringConverter
TypeConverter
BooleanConverter
IntegerConverter
LongConverter
DoubleConverter
FloatConverter
DateTimeConverter
ICloneable