Constructor Summary |
---|
CollectionBase()
Initializes a new instance of the CollectionBase class with the default initial capacity. |
CollectionBase(capacity)
Initializes a new instance of the CollectionBase class with the specified capacity. |
Method Summary | ||
---|---|---|
function | add(o) | |
Adds an item to the CollectionBase instance.
|
||
function | clear() | |
Removes all objects from the CollectionBase instance.
|
||
function | contains(o) | |
Return whether instance contains this object
|
||
function | get(index) | |
Get an item at specified position.
|
||
function | getCount() | |
Gets the number of elements contained in the CollectionBase instance.
|
||
function | indexOf(o) | |
Determines the index of a specific item in the CollectionBase instance.
|
||
function | iterator() | |
Returns an enumerator that iterates through the CollectionBase instance.
|
||
function | removeAt(index) | |
Removes the item at the specified index.
|
function CollectionBase()
function CollectionBase(capacity)
capacity: Number
- The number of elements that the new list can initially store.function iterator()
function getCount()
function clear()
function add(o)
o: Object
- The Object to add to the CollectionBase instance.function get(index)
index: Number
- Specified position index.function contains(o)
o: Object
- test objectfunction removeAt(index)
index: Number
- The zero-based index of the item to remove.function indexOf(o)
o: Object
- Determines the index of a specific item in the CollectionBase instance.