set.js
No description.

File Location

/goog/structs/set.js

Classes

goog.structs.Set
A set that can contain both primitives and objects. Adding and removing elements is O(1). Primitives are treated as identical if they have the same type and convert to the same string. Objects are treated as identical only if they are references to the same object. WARNING: A goog.structs.Set can contain both 1 and (new Number(1)), because they are not the same. WARNING: Adding (new Number(1)) twice will yield two distinct elements, because they are two different objects. WARNING: Any object that is added to a goog.structs.Set will be modified! Because goog.getUid() is used to identify objects, every object in the set will be mutated.

Public Protected Private

Global Functions

goog.structs.Set.getKey_(val) string
Obtains a unique key for an element of the set. Primitives will yield the same key if they have the same type and convert to the same string. Object references will yield the same key only if they refer to the same object.
Arguments:
val : *
Object or primitive value to get a key for.
Returns: string  A unique key for this value/object.
code »

Directory structs

File Reference