| Package | com.yworks.bridge.util |
| Interface | public interface Map |
| Implementors | AbstractMap, HashMap |
| Property | Defined By | ||
|---|---|---|---|
| empty : Boolean [read-only]
Answers if this Map has no elements, a size of zero. | Map | ||
| Method | Defined By | ||
|---|---|---|---|
clear():void
Removes all elements from this Map, leaving it empty. | Map | ||
containsKey(key:Object):Boolean
Searches this Map for the specified key. | Map | ||
containsValue(value:Object):Boolean
Searches this Map for the specified value. | Map | ||
Returns a Set whose elements comprise all of the mappings that are to be found in this Map. | Map | ||
getValue(key:Object):Object
Answers the value of the mapping with the specified key. | Map | ||
Answers a Set of the keys contained in this Map. | Map | ||
Copies every mapping in the specified Map to this Map. | Map | ||
putValue(key:Object, value:Object):Object
Maps the specified key to the specified value. | Map | ||
remove(key:Object):Object
Removes a mapping with the specified key from this Map. | Map | ||
size():int
Answers the number of elements in this Map. | Map | ||
Returns all of the current Map values in a Collection. | Map | ||
| empty | property |
empty:Boolean [read-only] Answers if this Map has no elements, a size of zero.
public function get empty():BooleanSee also
| clear | () | method |
public function clear():voidRemoves all elements from this Map, leaving it empty.
flash.errors:IllegalOperationError — when removing from this Map is not supported
|
See also
| containsKey | () | method |
public function containsKey(key:Object):BooleanSearches this Map for the specified key.
Parameters
key:Object — the object to search for
|
Boolean — true if key is a key of this Map, false otherwise
|
| containsValue | () | method |
public function containsValue(value:Object):BooleanSearches this Map for the specified value.
Parameters
value:Object — the object to search for
|
Boolean — true if value is a value of this Map, false otherwise
|
| entrySet | () | method |
public function entrySet():Set
Returns a Set whose elements comprise all of the mappings that are to be found in this Map.
Information on each of the mappings is encapsulated in a separate com.yworks.bridge.util.MapEntry instance. As the Set is backed by this Map, users should be aware that changes in one will be immediately visible in the other.
Set — a Set of the mappings
|
See also
| getValue | () | method |
public function getValue(key:Object):ObjectAnswers the value of the mapping with the specified key.
Parameters
key:Object — the key
|
Object — the value of the mapping with the specified key
|
| keySet | () | method |
public function keySet():SetAnswers a Set of the keys contained in this Map. The set is backed by this Map so changes to one are reflected by the other. The set does not support adding.
ReturnsSet — a Set of the keys
|
| putAll | () | method |
public function putAll(map:Map):voidCopies every mapping in the specified Map to this Map.
Parameters
map:Map — the Map to copy mappings from
|
flash.errors:IllegalOperationError — when adding to this Map is not supported
| |
TypeError — when the class of a key or value is inappropriate for this Map
| |
IllegalArgumentException — when a key or value cannot be added to this Map
| |
ReferenceError — when a key or value is null and this Map does not support null keys or values
|
| putValue | () | method |
public function putValue(key:Object, value:Object):ObjectMaps the specified key to the specified value.
Parameters
key:Object — the key
| |
value:Object — the value
|
Object — the value of any previous mapping with the specified key or null if there was no mapping
|
flash.errors:IllegalOperationError — when adding to this Map is not supported
| |
TypeError — when the class of the key or value is inappropriate for this Map
| |
IllegalArgumentException — when the key or value cannot be added to this Map
| |
ReferenceError — when the key or value is null and this Map does not support null keys or values
|
| remove | () | method |
public function remove(key:Object):ObjectRemoves a mapping with the specified key from this Map.
Parameters
key:Object — the key of the mapping to remove
|
Object — the value of the removed mapping or null if key is not a key in this Map
|
flash.errors:IllegalOperationError — when removing from this Map is not supported
|
| size | () | method |
public function size():intAnswers the number of elements in this Map.
Returnsint — the number of elements in this Map
|
| values | () | method |
public function values():Collection
Returns all of the current Map values in a Collection.
As the returned Collection is backed by this Map, users should be aware that changes in one will be immediately visible in the other.
Collection — a Collection of the values
|