Map_Impl_

private class Map_Impl_import MapAvailable in flash8, flash, neko, js, php, cpp, cs, java static function _new<V, K>() : IMap<KV>Available in javaCreates a new Map.
This becomes a constructor call to one of the specialization types in the output. The rules for that are as follows: 1. if K is a String, haxe.ds.StringMap is used 2. if K is an Int, haxe.ds.IntMap is used 3. if K is a class or structure that has a hashCode() function which returns an Int, haxe.ds.HashMap is used 4. if K is any other class or structure, haxe.ds.ObjectMap is used 5. if K is any other type, it causes a compile-time error
(Cpp) Map does not use weak keys on ObjectMap by default.
static function _new() : IMap<KV>Available in flash8, flash, neko, js, php, cpp, csCreates a new Map.
This becomes a constructor call to one of the specialization types in the output. The rules for that are as follows: 1. if K is a String, haxe.ds.StringMap is used 2. if K is an Int, haxe.ds.IntMap is used 3. if K is a class or structure that has a hashCode() function which returns an Int, haxe.ds.HashMap is used 4. if K is any other class or structure, haxe.ds.ObjectMap is used 5. if K is any other type, it causes a compile-time error
(Cpp) Map does not use weak keys on ObjectMap by default.
static inline function arrayWrite<V, K>( this : IMap<KV>, k : K, v : V ) : VAvailable in java static inline function arrayWrite( this : IMap<KV>, k : K, v : V ) : VAvailable in flash8, flash, neko, js, php, cpp, cs static inline function exists<V, K>( this : IMap<KV>, key : K ) : BoolAvailable in javaReturns true if key has a mapping, false otherwise.
If key is null, the result is unspecified.
static inline function exists( this : IMap<KV>, key : K ) : BoolAvailable in flash8, flash, neko, js, php, cpp, csReturns true if key has a mapping, false otherwise.
If key is null, the result is unspecified.
static inline function get<V, K>( this : IMap<KV>, key : K ) : Null<V>Available in javaReturns the current mapping of key.
If no such mapping exists, null is returned.
Note that a check like map.get(key) == null can hold for two reasons: 1. the map has no mapping for key 2. the map has a mapping with a value of null If it is important to distinguish these cases, exists() should be used.
If key is null, the result is unspecified.
static inline function get( this : IMap<KV>, key : K ) : Null<V>Available in flash8, flash, neko, js, php, cpp, csReturns the current mapping of key.
If no such mapping exists, null is returned.
Note that a check like map.get(key) == null can hold for two reasons: 1. the map has no mapping for key 2. the map has a mapping with a value of null If it is important to distinguish these cases, exists() should be used.
If key is null, the result is unspecified.
static inline function iterator<V, K>( this : IMap<KV> ) : Iterator<V>Available in javaReturns an Iterator over the values of this Map.
The order of values is undefined.
static inline function iterator( this : IMap<KV> ) : Iterator<V>Available in flash8, flash, neko, js, php, cpp, csReturns an Iterator over the values of this Map.
The order of values is undefined.
static inline function keys<V, K>( this : IMap<KV> ) : Iterator<K>Available in javaReturns an Iterator over the keys of this Map.
The order of keys is undefined.
static inline function keys( this : IMap<KV> ) : Iterator<K>Available in flash8, flash, neko, js, php, cpp, csReturns an Iterator over the keys of this Map.
The order of keys is undefined.
static inline function remove<V, K>( this : IMap<KV>, key : K ) : BoolAvailable in javaRemoves the mapping of key and returns true if such a mapping existed, false otherwise.
If key is null, the result is unspecified.
static inline function remove( this : IMap<KV>, key : K ) : BoolAvailable in flash8, flash, neko, js, php, cpp, csRemoves the mapping of key and returns true if such a mapping existed, false otherwise.
If key is null, the result is unspecified.
static inline function set<V, K>( this : IMap<KV>, key : K, value : V ) : VoidAvailable in javaMaps key to value.
If key already has a mapping, the previous value disappears.
If key is null, the result is unspecified.
static inline function set( this : IMap<KV>, key : K, value : V ) : VoidAvailable in flash8, flash, neko, js, php, cpp, csMaps key to value.
If key already has a mapping, the previous value disappears.
If key is null, the result is unspecified.
static inline function toString<V, K>( this : IMap<KV> ) : StringAvailable in javaReturns a String representation of this Map.
The exact representation depends on the platform and key-type.
static inline function toString( this : IMap<KV> ) : StringAvailable in flash8, flash, neko, js, php, cpp, csReturns a String representation of this Map.
The exact representation depends on the platform and key-type.
version #18418, modified 2013-05-08 10:41:54 by api
0 comment