Package | com.ericfeminella.collections |
Interface | public interface IMap |
Implementors | HashMap, LocalPersistenceMap, ResourceMap |
Method | Defined by | ||
---|---|---|---|
clear():void
Clears all key / values defined in the HashMap instance
| IMap | ||
clearAllExcept(key:*):void
Clears all key / values defined in the HashMap instance
with the exception of the specified key
| IMap | ||
containsKey(key:*):Boolean
Determines if a key exists in the HashMap instance
| IMap | ||
containsValue(value:*):Boolean
Determines if a value exists in the HashMap instance
| IMap | ||
getEntries():IList
getEntries() returns all key/value pairs in as an
IList of HashMapEntry objects
implementation. | IMap | ||
getKey(value:*):*
Returns a key value from the HashMap instance
| IMap | ||
getKeys():Array
Returns each key added to the HashMap instance
| IMap | ||
getValue(key:*):*
Returns a key value from the HashMap instance
| IMap | ||
getValues():Array
Returns each value assigned to each key in the HashMap instance
| IMap | ||
isEmpty():Boolean
Determines if the HashMap instance is empty
| IMap | ||
put(key:*, value:*):void
Adds a key / value pair to the current Map
| IMap | ||
putAll(table:Dictionary):void
[new]
putAll places all name / value pairs defined in an Object or Dictionary instance into the IMap instance. | IMap | ||
putEntry(entry:IHashMapEntry):void
[new]
putEntry is intended as a pseudo-overloaded
put implementation whereby clients may call
putEntry to pass an IHashMapEntry
implementation. | IMap | ||
remove(key:*):void
Removes a key / value from the HashMap instance
| IMap | ||
reset():void
Resets all key value assignments in the HashMap instance to null
| IMap | ||
resetAllExcept(key:*):void
Resets all key / values defined in the HashMap instance to null
| IMap | ||
size():int
Retrieves the size of the HashMap instance
| IMap |
clear | () | method |
public function clear():void
Clears all key / values defined in the HashMap instance
clearAllExcept | () | method |
public function clearAllExcept(key:*):void
Clears all key / values defined in the HashMap instance with the exception of the specified key
Parameterskey:* |
containsKey | () | method |
public function containsKey(key:*):Boolean
Determines if a key exists in the HashMap instance
Parameterskey:* — the key in which to determine existance in the map
|
Boolean — true if the key exisits, false if not
|
containsValue | () | method |
public function containsValue(value:*):Boolean
Determines if a value exists in the HashMap instance
Parametersvalue:* — the value in which to determine existance in the map
|
Boolean — true if the value exisits, false if not
|
getEntries | () | method |
public function getEntries():IList
returns an IList
of HashMapEntry
objects.
IList |
getKey | () | method |
public function getKey(value:*):*
Returns a key value from the HashMap instance
Parametersvalue:* — the key in which to retrieve the value of
|
String — the value of the specified key
|
getKeys | () | method |
public function getKeys():Array
Returns each key added to the HashMap instance
ReturnsArray — String Array of key identifiers
|
getValue | () | method |
public function getValue(key:*):*
Returns a key value from the HashMap instance
Parameterskey:* — the key in which to retrieve the value of
|
* — the value of the specified key
|
getValues | () | method |
public function getValues():Array
Returns each value assigned to each key in the HashMap instance
ReturnsArray — Array of values assigned for all keys in the map
|
isEmpty | () | method |
public function isEmpty():Boolean
Determines if the HashMap instance is empty
ReturnsBoolean — true if the current map is empty, false if not
|
put | () | method |
public function put(key:*, value:*):void
Adds a key / value pair to the current Map
Parameterskey:* — key to add to the map
|
|
value:* — value of the specified key
|
putAll | () | method |
public function putAll(table:Dictionary):void
Places all name / value pairs into the current
IMap
instance.
table:Dictionary — Object of name / value pairs
|
putEntry | () | method |
public function putEntry(entry:IHashMapEntry):void
adds an IHashMapEntry
object to the map.
entry:IHashMapEntry — IHashMapEntry implementation
|
remove | () | method |
public function remove(key:*):void
Removes a key / value from the HashMap instance
Parameterskey:* — key to remove from the map
|
reset | () | method |
public function reset():void
Resets all key value assignments in the HashMap instance to null
resetAllExcept | () | method |
public function resetAllExcept(key:*):void
Resets all key / values defined in the HashMap instance to null
Parameterskey:* |
size | () | method |
public function size():int
Retrieves the size of the HashMap instance
Returnsint — the current size of the map instance
|