| Package | com.addicted2flash.util |
| Interface | public interface IMap extends IDisposable |
| Implementors | HashMap |
| Method | Defined by | ||
|---|---|---|---|
|
clear():void
Removes all of the mappings from this map (optional operation).
| IMap | ||
|
Returns a copy of the
IMap. | IMap | ||
|
containsKey(key:*):Boolean
Returns true if this map contains a mapping for the specified key.
| IMap | ||
|
containsValue(value:*):Boolean
Returns true if this map maps one or more keys to the specified value.
| IMap | ||
![]() |
dispose():void
free memory for garbage collection.
| IDisposable | |
|
Returns a Set view of the mappings contained in this map.
| IMap | ||
|
getValue(key:*):*
Returns the value to which the specified key is mapped, or null if this map contains no mapping for the key.
| IMap | ||
|
isEmpty():Boolean
Returns true if this map contains no key-value mappings.
| IMap | ||
|
Returns a Set view of the keys contained in this map.
| IMap | ||
|
put(key:*, value:*):*
Associates the specified value with the specified key in this map (optional operation).
| IMap | ||
|
remove(key:*):*
Removes the mapping for a key from this map if it is present (optional operation).
| IMap | ||
|
size():int
Returns the number of key-value mappings in this map.
| IMap | ||
|
Returns a Collection view of the values contained in this map.
| IMap | ||
| clear | () | method |
public function clear():voidRemoves all of the mappings from this map (optional operation). The map will be empty after this call returns.
| clone | () | method |
| containsKey | () | method |
public function containsKey(key:*):BooleanReturns true if this map contains a mapping for the specified key.
Parameterskey:* — key whose presence in this map is to be tested
|
Boolean — true if this map contains a mapping for the specified key
|
| containsValue | () | method |
public function containsValue(value:*):BooleanReturns true if this map maps one or more keys to the specified value.
Parametersvalue:* — value whose presence in this map is to be tested
|
Boolean — true if this map maps one or more keys to the specified value
|
| entrySet | () | method |
public function entrySet():ISetReturns a Set view of the mappings contained in this map. The set is backed by the map, so changes to the map are reflected in the set, and vice-versa.
NOTE: Entry objects removed with an IIterator are not removed from the IMap.
ISet —
a set view of the Entry objects contained in this map
|
| getValue | () | method |
public function getValue(key:*):*Returns the value to which the specified key is mapped, or null if this map contains no mapping for the key.
Parameterskey:* — the key whose associated value is to be returned
|
* — the value to which the specified key is mapped, or null if this map contains no mapping for the key
|
| isEmpty | () | method |
public function isEmpty():BooleanReturns true if this map contains no key-value mappings.
ReturnsBoolean — true if this map contains no key-value mappings
|
| keySet | () | method |
public function keySet():ISetReturns a Set view of the keys contained in this map. The set is backed by the map, so changes to the map are reflected in the set, and vice-versa.
NOTE: keys removed with an IIterator are not removed from the IMap.
ISet —
a set view of the keys contained in this map
|
| put | () | method |
public function put(key:*, value:*):*Associates the specified value with the specified key in this map (optional operation). If the map previously contained a mapping for the key, the old value is replaced by the specified value
Parameterskey:* — key with which the specified value is to be associated
|
|
value:* — value to be associated with the specified key
|
* — the previous value associated with key, or null if there was no mapping for key
|
| remove | () | method |
public function remove(key:*):*Removes the mapping for a key from this map if it is present (optional operation). Returns the value to which this map previously associated the key, or null if the map contained no mapping for the key.
Parameterskey:* — key whose mapping is to be removed from the map
|
* — the previous value associated with key, or null if there was no mapping for key
|
| size | () | method |
public function size():intReturns the number of key-value mappings in this map.
Returnsint — the number of key-value mappings in this map
|
| values | () | method |
public function values():ICollectionReturns a Collection view of the values contained in this map. The collection is backed by the map, so changes to the map are reflected in the collection, and vice-versa.
NOTE: values removed with an IIterator are not removed from the IMap.
ICollection —
a collection view of the values contained in this map
|