Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
seleniumhq
GitHub Repository: seleniumhq/selenium
Path: blob/trunk/third_party/closure/goog/structs/collection.js
4506 views
1
/**
2
* @license
3
* Copyright The Closure Library Authors.
4
* SPDX-License-Identifier: Apache-2.0
5
*/
6
7
/**
8
* @fileoverview Defines the collection interface.
9
*/
10
11
goog.provide('goog.structs.Collection');
12
13
14
15
/**
16
* An interface for a collection of values.
17
* @interface
18
* @template T
19
*/
20
goog.structs.Collection = function() {};
21
22
23
/**
24
* @param {T} value Value to add to the collection.
25
*/
26
goog.structs.Collection.prototype.add;
27
28
29
/**
30
* @param {T} value Value to remove from the collection.
31
*/
32
goog.structs.Collection.prototype.remove;
33
34
35
/**
36
* @param {T} value Value to find in the collection.
37
* @return {boolean} Whether the collection contains the specified value.
38
*/
39
goog.structs.Collection.prototype.contains;
40
41
42
/**
43
* @return {number} The number of values stored in the collection.
44
*/
45
goog.structs.Collection.prototype.getCount;
46
47