Class StringObjectDictionary

A StringObjectDictionary is a collection of key-value pairs. The key is a string and the value can be an integer, float, string, boolean or datetime.

Constructors

StringObjectDictionary()

Initializes a new instance of the StringObjectDictionary class.

Declaration

StringObjectDictionary

Methods

getInteger(String)

Returns Integer value for key

Declaration

Integer getInteger(String key)

Examples

StringObjectDictionary dict;
printLine(dict.getInteger("foobar").toString());

Parameters

Type Name Description
String key The key to look up a value for

Returns

Type Description
Integer The value for the given key.

getFloat(String)

Returns Float value for key

Declaration

Float getFloat(String key)

Examples

StringObjectDictionary dict;
printLine(dict.getFloat("foobar").toString(2));

Parameters

Type Name Description
String key The key to look up a value for

Returns

Type Description
Float The value for the given key.

getString(String)

Returns String value for key

Declaration

String getFloat(String key)

Examples

StringObjectDictionary dict;
printLine(dict.getString("foobar"));

Parameters

Type Name Description
String key The key to look up a value for

Returns

Type Description
String The value for the given key.

getBool(String)

Returns boolean value for key

Declaration

Bool getBool(String key)

Examples

StringObjectDictionary dict;
printLine(dict.getBool("foobar").toString());

Parameters

Type Name Description
String key The key to look up a value for

Returns

Type Description
Bool The value for the given key.

getDateTime(String)

Returns value for key

Declaration

DateTime getDateTime(String key)

Examples

StringObjectDictionary dict;
printLine(dict.getDateTime("foobar").toString());

Parameters

Type Name Description
String key The key to look up a value for

Returns

Type Description
DateTime The value for the given key.

insertInteger(String,Integer)

Inserts or updates value for given key

Declaration

Void insertInteger(String key,Integer value)

Examples

StringObjectDictionary dict;
dict.insertInteger("foobar", 200);

Parameters

Type Name Description
String key The key.
Integer value The value for the given key.

Returns

Type Description
Void

insertString(String,String)

Inserts or updates value for given key

Declaration

Void insertString(String key,String value)

Examples

StringObjectDictionary dict;
dict.insertString("foo", "bar");

Parameters

Type Name Description
String key The key.
String value The value for the given key.

Returns

Type Description
Void

insertFloat(String,Float)

Inserts or updates value for given key

Declaration

Void insertFloat(String key,Float value)

Examples

StringObjectDictionary dict;
dict.insertFloat("foo", 2.0);

Parameters

Type Name Description
String key The key.
Float value The value for the given key.

Returns

Type Description
Void

insertBool(String,Bool)

Inserts or updates value for given key

Declaration

Void insertBool(String key,Bool value)

Examples

StringObjectDictionary dict;
dict.insertBool("foo", false);

Parameters

Type Name Description
String key The key.
Bool value The value for the given key.

Returns

Type Description
Void

insertDateTime(String,DateTime)

Inserts or updates value for given key

Declaration

Void insertDateTime(String key,DateTime value)

Examples

StringObjectDictionary dict;
dict.insertDateTime("foo", getCurrentDateTime());

Parameters

Type Name Description
String key The key.
DateTime value The value for the given key.

Returns

Type Description
Void