| Package | system.data.maps |
| Class | public class TypedMap |
| Inheritance | TypedMap Object |
| Implements | Map, Typeable, Validator |
| Property | Defined By | ||
|---|---|---|---|
| type : *
Indicates the type of the Typeable object. | TypedMap | ||
| Method | Defined By | ||
|---|---|---|---|
Creates a new TypedMap instance. | TypedMap | ||
clear():void
Removes all mappings from this map (optional operation). | TypedMap | ||
clone():*
Returns a shallow copy of the map. | TypedMap | ||
containsKey(key:*):Boolean
Returns true if this map contains a mapping for the specified key. | TypedMap | ||
containsValue(value:*):Boolean
Returns true if this map maps one or more keys to the specified value. | TypedMap | ||
get(key:*):*
Returns the value to which this map maps the specified key. | TypedMap | ||
getKeys():Array
Returns an Array of all the keys in the map. | TypedMap | ||
getValues():Array
Returns an Array of all the values in the map. | TypedMap | ||
isEmpty():Boolean
Returns true if this map contains no key-value mappings. | TypedMap | ||
Returns the iterator reference of the object. | TypedMap | ||
Returns the keys iterator of this map. | TypedMap | ||
put(key:*, value:*):*
Associates the specified value with the specified key in this map (optional operation). | TypedMap | ||
Copies all of the mappings from the specified map to this one. | TypedMap | ||
remove(o:*):*
Removes the mapping for this key from this map if it is present (optional operation). | TypedMap | ||
size():uint
Returns the number of key-value mappings in this map. | TypedMap | ||
supports(value:*):Boolean
Returns true if the specific value is valid. | TypedMap | ||
toSource(indent:int = 0):String
Returns the source code string representation of the object. | TypedMap | ||
toString():String
Returns the String representation of the object. | TypedMap | ||
validate(value:*):void
Evaluates the condition it checks and updates the IsValid property. | TypedMap | ||
| type | property |
type:*Indicates the type of the Typeable object.
If the type change the clear() method is invoked.
public function get type():* public function set type(value:any):void| TypedMap | () | Constructor |
public function TypedMap(type:*, map:Map)Creates a new TypedMap instance.
Parameterstype:* — the type of this Typeable object (a Class or a Function).
| |
map:Map — The Map reference of this wrapper.
|
ArgumentError — if the type is null or undefined.
| |
TypeError — if a value in the init object isn't valid.
|
| clear | () | method |
public function clear():voidRemoves all mappings from this map (optional operation).
| clone | () | method |
public function clone():*Returns a shallow copy of the map.
Returns* — a shallow copy of the map.
|
| containsKey | () | method |
public function containsKey(key:*):Boolean
Returns true if this map contains a mapping for the specified key.
Parameters
key:* |
Boolean — true if this map contains a mapping for the specified key.
|
| containsValue | () | method |
public function containsValue(value:*):Boolean
Returns true if this map maps one or more keys to the specified value.
Parameters
value:* |
Boolean — true if this map maps one or more keys to the specified value.
|
| get | () | method |
public function get(key:*):*Returns the value to which this map maps the specified key.
Parameters
key:* |
* — the value to which this map maps the specified key.
|
| getKeys | () | method |
public function getKeys():ArrayReturns an Array of all the keys in the map.
ReturnsArray — an Array of all the keys in the map.
|
| getValues | () | method |
public function getValues():ArrayReturns an Array of all the values in the map.
ReturnsArray — an Array of all the values in the map.
|
| isEmpty | () | method |
public function isEmpty():Boolean
Returns true if this map contains no key-value mappings.
Boolean — true if this map contains no key-value mappings.
|
| iterator | () | method |
public function iterator():IteratorReturns the iterator reference of the object.
ReturnsIterator — the iterator reference of the object.
|
| keyIterator | () | method |
public function keyIterator():IteratorReturns the keys iterator of this map.
ReturnsIterator — the keys iterator of this map.
|
| put | () | method |
public function put(key:*, value:*):*Associates the specified value with the specified key in this map (optional operation).
Parameters
key:* | |
value:* |
* |
| putAll | () | method |
public function putAll(m:Map):voidCopies all of the mappings from the specified map to this one.
Parameters
m:Map |
| remove | () | method |
public function remove(o:*):*Removes the mapping for this key from this map if it is present (optional operation).
Parameters
o:* |
* |
| size | () | method |
public function size():uintReturns the number of key-value mappings in this map.
Returnsuint — the number of key-value mappings in this map.
|
| supports | () | method |
public function supports(value:*):Boolean
Returns true if the specific value is valid.
Parameters
value:* |
Boolean — true if the specific value is valid.
|
| toSource | () | method |
public function toSource(indent:int = 0):StringReturns the source code string representation of the object.
Parameters
indent:int (default = 0) |
String — the source code string representation of the object.
|
| toString | () | method |
public function toString():StringReturns the String representation of the object.
ReturnsString — the String representation of the object.
|
| validate | () | method |
public function validate(value:*):voidEvaluates the condition it checks and updates the IsValid property.
Parameters
value:* |