Packageorg.servebox.commons.map
Interfacepublic interface IMap extends IBasicObject
SubinterfacesISortedMap
ImplementorsDictionaryTable, Hashtable

Maps keys to values. Each key can map to one value, and a Map cannot contain duplicate keys.



Public Methods
 MethodDefined by
  
clear():void
Removes all mappings from this map (optional operation).
IMap
  
containsKey(key:Object):Boolean
Returns true if this map contains a mapping for the specified key.
IMap
  
containsValue(value:IBasicObject):Boolean
Returns true if this map maps one or more keys to the specified value.
IMap
 Inherited
equals(value:IBasicObject):Boolean
Object comparison mechanism.
IBasicObject
  
get(key:Object):IBasicObject
Returns the value to which this map maps the specified key.
IMap
 Inherited
hashCode():int
Returns the hashcode of the object.
IBasicObject
  
isEmpty():Boolean
Returns true if this map contains no key-value mappings.
IMap
  
keys():Array
Returns a view of the keys contained in this map.
IMap
  
keySet():Array
Returns a view of the keys contained in this map.
IMap
  
needleMap(neededKeys:Array):IMap
Copies the key/values pair using the specified set of keys to a new map instance.
IMap
  
put(key:Object, v:IBasicObject):Object
Associates the specified value with the specified key in this map (optional operation).
IMap
  
putAll(t:IMap):void
Copies all of the mappings from the specified map to this map (optional operation).
IMap
  
remove(key:Object):Object
Removes the mapping for this key from this map if present (optional operation).
IMap
  
size():int
Returns the number of key-value mappings in this map.
IMap
 Inherited
toString():String
Returns the string representation of the specified object.
IBasicObject
  
values():Array
Returns a collection view of the values contained in this map.
IMap
Method detail
clear()method
public function clear():void

Removes all mappings from this map (optional operation).

containsKey()method 
public function containsKey(key:Object):Boolean

Returns true if this map contains a mapping for the specified key.

Parameters
key:Object

Returns
Boolean
containsValue()method 
public function containsValue(value:IBasicObject):Boolean

Returns true if this map maps one or more keys to the specified value.

Parameters
value:IBasicObject

Returns
Boolean
get()method 
public function get(key:Object):IBasicObject

Returns the value to which this map maps the specified key.

Parameters
key:Object

Returns
IBasicObject
isEmpty()method 
public function isEmpty():Boolean

Returns true if this map contains no key-value mappings.

Returns
Boolean
keys()method 
public function keys():Array

Returns a view of the keys contained in this map.

Returns
Array
keySet()method 
public function keySet():Array

Returns a view of the keys contained in this map.

Returns
Array
needleMap()method 
public function needleMap(neededKeys:Array):IMap

Copies the key/values pair using the specified set of keys to a new map instance.

Parameters
neededKeys:Array

Returns
IMap
put()method 
public function put(key:Object, v:IBasicObject):Object

Associates the specified value with the specified key in this map (optional operation).

Parameters
key:Object
 
v:IBasicObject

Returns
Object
putAll()method 
public function putAll(t:IMap):void

Copies all of the mappings from the specified map to this map (optional operation).

Parameters
t:IMap
remove()method 
public function remove(key:Object):Object

Removes the mapping for this key from this map if present (optional operation).

Parameters
key:Object

Returns
Object
size()method 
public function size():int

Returns the number of key-value mappings in this map.

Returns
int
values()method 
public function values():Array

Returns a collection view of the values contained in this map.

Returns
Array