java.lang.Objecttelosys.objects.Map
Map class with methods like Java HashMap or Hashtable
Constructor Summary | |
Map()
|
Method Summary | |
void |
clear()
Clears all values of the map |
boolean |
containsKey(string key)
Returns true if the given key exists in the map |
object |
get(string key)
Gets the value associated with the given key |
string[] |
keysArray()
Returns an array with all keys |
string |
keysString()
Returns a string with all keys of the map separated with commas (",") |
void |
put(string key,
object value)
Puts a value in the map |
void |
remove(string key)
Removes the mapping for the given key if it is present |
void |
show()
Shows all map content (keys and values) in a standard 'alert window' |
number |
size()
Returns the size of the map |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Map()
Method Detail |
public void put(string key, object value)
key
- the keyvalue
- the value to putpublic object get(string key)
key
- the key
public void remove(string key)
key
- the value of the key to deletepublic void clear()
public number size()
public boolean containsKey(string key)
key
- the key to check
public string[] keysArray()
public string keysString()
public void show()