| Index: third_party/google_input_tools/third_party/closure_library/closure/goog/structs/set.js
|
| diff --git a/third_party/google_input_tools/third_party/closure_library/closure/goog/structs/set.js b/third_party/google_input_tools/third_party/closure_library/closure/goog/structs/set.js
|
| index 8f68298bff11783436d714468432669d9cf616a2..334ecae7a82224e0ff9b2af114b1b8d2d56b6a3c 100644
|
| --- a/third_party/google_input_tools/third_party/closure_library/closure/goog/structs/set.js
|
| +++ b/third_party/google_input_tools/third_party/closure_library/closure/goog/structs/set.js
|
| @@ -16,7 +16,6 @@
|
| * @fileoverview Datastructure: Set.
|
| *
|
| * @author arv@google.com (Erik Arvidsson)
|
| - * @author pallosp@google.com (Peter Pallos)
|
| *
|
| * This class implements a set data structure. Adding and removing is O(1). It
|
| * supports both object and primitive values. Be careful because you can add
|
| @@ -43,9 +42,9 @@ goog.require('goog.structs.Map');
|
| * 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.
|
| - * @param {Array.<T>|Object.<?,T>=} opt_values Initial values to start with.
|
| + * @param {Array<T>|Object<?,T>=} opt_values Initial values to start with.
|
| * @constructor
|
| - * @implements {goog.structs.Collection.<T>}
|
| + * @implements {goog.structs.Collection<T>}
|
| * @final
|
| * @template T
|
| */
|
| @@ -96,7 +95,7 @@ goog.structs.Set.prototype.add = function(element) {
|
|
|
| /**
|
| * Adds all the values in the given collection to this set.
|
| - * @param {Array.<T>|goog.structs.Collection.<T>|Object.<?,T>} col A collection
|
| + * @param {Array<T>|goog.structs.Collection<T>|Object<?,T>} col A collection
|
| * containing the elements to add.
|
| */
|
| goog.structs.Set.prototype.addAll = function(col) {
|
| @@ -110,7 +109,7 @@ goog.structs.Set.prototype.addAll = function(col) {
|
|
|
| /**
|
| * Removes all values in the given collection from this set.
|
| - * @param {Array.<T>|goog.structs.Collection.<T>|Object.<?,T>} col A collection
|
| + * @param {Array<T>|goog.structs.Collection<T>|Object<?,T>} col A collection
|
| * containing the elements to remove.
|
| */
|
| goog.structs.Set.prototype.removeAll = function(col) {
|
| @@ -165,7 +164,7 @@ goog.structs.Set.prototype.contains = function(element) {
|
| * Tests whether this set contains all the values in a given collection.
|
| * Repeated elements in the collection are ignored, e.g. (new
|
| * goog.structs.Set([1, 2])).containsAll([1, 1]) is True.
|
| - * @param {goog.structs.Collection.<T>|Object} col A collection-like object.
|
| + * @param {goog.structs.Collection<T>|Object} col A collection-like object.
|
| * @return {boolean} True if the set contains all elements.
|
| */
|
| goog.structs.Set.prototype.containsAll = function(col) {
|
| @@ -175,8 +174,8 @@ goog.structs.Set.prototype.containsAll = function(col) {
|
|
|
| /**
|
| * Finds all values that are present in both this set and the given collection.
|
| - * @param {Array.<S>|Object.<?,S>} col A collection.
|
| - * @return {!goog.structs.Set.<T|S>} A new set containing all the values
|
| + * @param {Array<S>|Object<?,S>} col A collection.
|
| + * @return {!goog.structs.Set<T|S>} A new set containing all the values
|
| * (primitives or objects) present in both this set and the given
|
| * collection.
|
| * @template S
|
| @@ -199,7 +198,7 @@ goog.structs.Set.prototype.intersection = function(col) {
|
| /**
|
| * Finds all values that are present in this set and not in the given
|
| * collection.
|
| - * @param {Array.<T>|goog.structs.Collection.<T>|Object.<?,T>} col A collection.
|
| + * @param {Array<T>|goog.structs.Collection<T>|Object<?,T>} col A collection.
|
| * @return {!goog.structs.Set} A new set containing all the values
|
| * (primitives or objects) present in this set but not in the given
|
| * collection.
|
| @@ -213,7 +212,7 @@ goog.structs.Set.prototype.difference = function(col) {
|
|
|
| /**
|
| * Returns an array containing all the elements in this set.
|
| - * @return {!Array.<T>} An array containing all the elements in this set.
|
| + * @return {!Array<T>} An array containing all the elements in this set.
|
| */
|
| goog.structs.Set.prototype.getValues = function() {
|
| return this.map_.getValues();
|
| @@ -222,7 +221,7 @@ goog.structs.Set.prototype.getValues = function() {
|
|
|
| /**
|
| * Creates a shallow clone of this set.
|
| - * @return {!goog.structs.Set.<T>} A new set containing all the same elements as
|
| + * @return {!goog.structs.Set<T>} A new set containing all the same elements as
|
| * this set.
|
| */
|
| goog.structs.Set.prototype.clone = function() {
|
| @@ -235,7 +234,7 @@ goog.structs.Set.prototype.clone = function() {
|
| * regardless of order, without repetition. Primitives are treated as equal if
|
| * they have the same type and convert to the same string; objects are treated
|
| * as equal if they are references to the same object. This operation is O(n).
|
| - * @param {goog.structs.Collection.<T>|Object} col A collection.
|
| + * @param {goog.structs.Collection<T>|Object} col A collection.
|
| * @return {boolean} True if the given collection consists of the same elements
|
| * as this set, regardless of order, without repetition.
|
| */
|
| @@ -249,7 +248,7 @@ goog.structs.Set.prototype.equals = function(col) {
|
| * Primitives are treated as equal if they have the same type and convert to the
|
| * same string; objects are treated as equal if they are references to the same
|
| * object. This operation is O(n).
|
| - * @param {goog.structs.Collection.<T>|Object} col A collection.
|
| + * @param {goog.structs.Collection<T>|Object} col A collection.
|
| * @return {boolean} True if this set is a subset of the given collection.
|
| */
|
| goog.structs.Set.prototype.isSubsetOf = function(col) {
|
|
|