Path: blob/trunk/third_party/closure/goog/structs/collection.js
4049 views
/**1* @license2* Copyright The Closure Library Authors.3* SPDX-License-Identifier: Apache-2.04*/56/**7* @fileoverview Defines the collection interface.8*/910goog.provide('goog.structs.Collection');11121314/**15* An interface for a collection of values.16* @interface17* @template T18*/19goog.structs.Collection = function() {};202122/**23* @param {T} value Value to add to the collection.24*/25goog.structs.Collection.prototype.add;262728/**29* @param {T} value Value to remove from the collection.30*/31goog.structs.Collection.prototype.remove;323334/**35* @param {T} value Value to find in the collection.36* @return {boolean} Whether the collection contains the specified value.37*/38goog.structs.Collection.prototype.contains;394041/**42* @return {number} The number of values stored in the collection.43*/44goog.structs.Collection.prototype.getCount;454647