-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCollection.js
More file actions
65 lines (50 loc) · 1.42 KB
/
Copy pathCollection.js
File metadata and controls
65 lines (50 loc) · 1.42 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
import Iterator from './Iterator'
/**
* @see http://download.oracle.com/javase/6/docs/api/java/util/Collection.html
*
* @constructor
* @private
*/
export default function Collection() {};
/**
* Ensures that this collection contains the specified element (optional
* operation).
* @param {Object} e
* @return {boolean}
*/
Collection.prototype.add = function() {};
/**
* Appends all of the elements in the specified collection to the end of this
* list, in the order that they are returned by the specified collection's
* iterator (optional operation).
* @param {javascript.util.Collection} c
* @return {boolean}
*/
Collection.prototype.addAll = function() {};
/**
* Returns true if this collection contains no elements.
* @return {boolean}
*/
Collection.prototype.isEmpty = function() {};
/**
* Returns an iterator over the elements in this collection.
* @return {javascript.util.Iterator}
*/
Collection.prototype.iterator = function() {};
/**
* Returns an iterator over the elements in this collection.
* @return {number}
*/
Collection.prototype.size = function() {};
/**
* Returns an array containing all of the elements in this collection.
* @return {Array}
*/
Collection.prototype.toArray = function() {};
/**
* Removes a single instance of the specified element from this collection if it
* is present. (optional)
* @param {Object} e
* @return {boolean}
*/
Collection.prototype.remove = function() {};