goog.labs.structs.Map
Classgoog.labs.structs.Map()
Creates a new map.
goog.labs.structs.Map.BrowserFeature
EnumBrowser feature enum necessary for map. … more
.addAll(map)
Adds the content of the map to this map. If a new entry uses a key that already exists in this map, the existing key is replaced.
map
{!goog.labs.structs.Map
}
.clear()
Clears the map to the initial state.
.clone()
Clones this map.
goog.labs.structs.Map
}
.containsKey(key)
key
{string
}
boolean
}
.containsValue(value)
Whether the map contains the given value. The comparison is done using !== comparator. Also returns true if the passed value is NaN and a NaN value exists in the map.
value
{*}
boolean
}
.get(key, opt_default)
Gets the value for the given key.
key
{string
}
opt_default
{*=}
.getCount()
number
}
.getEntries()
Array
.<Array
>}
.getKeys()
Array
.<string
>}
.getValues()
Array
.<*>}
.isEmpty()
boolean
}
.remove(key)
Removes the map entry with the given key.
key
{string
}
boolean
}
.set(key, value)
Adds the (key, value) pair, overriding previous entry with the same key, if any.
key
{string
}
value
{*}