Properties
Private _length
_length: number = 0
Methods
Private add
- add(key: K, entry: Entry<K, V>): V
-
Parameters
-
key: K
-
entry: Entry<K, V>
Returns V
containsKey
- containsKey(key: K): boolean
-
Parameters
Returns boolean
containsValue
- containsValue(value: V): boolean
-
Parameters
Returns boolean
entrySet
- entrySet(): Array<Entry<K, V>>
-
Returns Array<Entry<K, V>>
filter
- filter<U>(predicate: function): Map<K, V>
-
Type parameters
Parameters
-
predicate: function
-
- (entry: Entry<K, V>): boolean
-
Parameters
Returns boolean
Returns Map<K, V>
forEach
- forEach<T>(callback: function): boolean
-
Type parameters
Parameters
-
callback: function
-
- (item: V, key?: K): void | boolean
-
Parameters
Returns void
|
boolean
Returns boolean
getOrDefault
- getOrDefault(key: K, def: V): V
map
- map<U>(callback: function): Array<U>
-
Type parameters
Parameters
Returns Array<U>
putAll
- putAll(map: Map<K, V> | MapItems<V> | Array<V>): Array<V>
-
Parameters
Returns Array<V>
remove
-
Parameters
Returns boolean
Returns the number of key-value mappings in this map.