abstract DynamicAccess<T>(Dynamic<T>)
package haxe
from Dynamic<T> to Dynamic<T>
Available on all targets
DynamicAccess is an abstract type for working with anonymous structures that are intended to hold collections of objects by the string key.
For example, these types of structures are often created from JSON.
Static methods
staticinlineget(this:Dynamic<T>, key:String):Null<T>
Returns a value by specified key
.
If the structure does not contain the given key, null
is returned.
If key
is null
, the result is unspecified.
staticinlineset(this:Dynamic<T>, key:String, value:T):T
Sets a value
for a specified key
.
If the structure contains the given key, its value will be overwritten.
Returns the given value.
If key
is null
, the result is unspecified.
staticinlineexists(this:Dynamic<T>, key:String):Bool
Tells if the structure contains a specified key
.
If key
is null
, the result is unspecified.
staticinlineremove(this:Dynamic<T>, key:String):Bool
Removes a specified key
from the structure.
Returns true, if key
was present in structure, or false otherwise.
If key
is null
, the result is unspecified.
staticinlinekeyValueIterator(this:Dynamic<T>):DynamicAccessKeyValueIterator<T>
Returns an Iterator over the keys and values of this DynamicAccess
.
The order of values is undefined.