View source
abstract DynamicAccess<T>(Dynamic<T>)
package haxe
from Dynamic<T> to Dynamic<T>
Available on all platforms
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.
Methods
inlineexists(key:String):Bool
Tells if the structure contains a specified key
.
If key
is null
, the result is unspecified.
inlineget(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.
inlineiterator():DynamicAccessIterator<T>
Returns an Iterator over the values of this DynamicAccess
.
The order of values is undefined.
inlinekeyValueIterator():DynamicAccessKeyValueIterator<T>
Returns an Iterator over the keys and values of this DynamicAccess
.
The order of values is undefined.