| Package | com.addicted2flash.util |
| Class | public class AbstractArrayCollection |
| Implements | ICollection |
| Subclasses | AbstractArrayList, AbstractArraySet, ArrayQueue, ArrayStack |
| Property | Defined by | ||
|---|---|---|---|
| list : Array [read-only]
return the internal list.
| AbstractArrayCollection | ||
| Property | Defined by | ||
|---|---|---|---|
| _list : Array | AbstractArrayCollection | ||
| Method | Defined by | ||
|---|---|---|---|
|
AbstractArrayCollection(field:Array = null)
Create a new
AbstractArrayCollection
| AbstractArrayCollection | ||
|
add(o:*):void
Appends the specified element to the end of this list (optional operation).
| AbstractArrayCollection | ||
|
addAll(c:ICollection):void
Adds all of the elements in the specified collection to this collection (optional operation).
| AbstractArrayCollection | ||
|
clear():void
Removes all of the elements from this list (optional operation).
| AbstractArrayCollection | ||
|
Returns a copy of the
ICollection. | AbstractArrayCollection | ||
|
contains(o:*):Boolean
Returns true if this list contains the specified element.
| AbstractArrayCollection | ||
|
containsAll(c:ICollection):Boolean
Returns true if this collection contains all of the elements in the specified collection.
| AbstractArrayCollection | ||
|
dispose():void
free memory for garbage collection.
| AbstractArrayCollection | ||
|
getAt(i:int):*
Returns the element at the specified position in this collection.
| AbstractArrayCollection | ||
|
isEmpty():Boolean
Returns true if this list contains no elements.
| AbstractArrayCollection | ||
|
Returns an iterator over the elements in this list.
| AbstractArrayCollection | ||
|
remove(o:*):Boolean
Removes the first occurrence in this list of the specified element (optional operation).
| AbstractArrayCollection | ||
|
removeAll(c:ICollection):Boolean
Removes a single instance of the specified element from this collection, if it is present (optional operation)
| AbstractArrayCollection | ||
|
size():int
Returns the number of elements in this list.
| AbstractArrayCollection | ||
|
toArray():Array
Converts the collection into an array.
| AbstractArrayCollection | ||
| _list | property |
protected var _list:Array
| list | property |
list:Array [read-only]return the internal list.
Implementation public function get list():Array
| AbstractArrayCollection | () | constructor |
public function AbstractArrayCollection(field:Array = null)
Create a new AbstractArrayCollection
field:Array (default = null) — (optional) an existing Array
|
| add | () | method |
public function add(o:*):voidAppends the specified element to the end of this list (optional operation).
Parameterso:* |
| addAll | () | method |
public function addAll(c:ICollection):voidAdds all of the elements in the specified collection to this collection (optional operation).
Parametersc:ICollection — Collection containing elements to be added to this collection
|
| clear | () | method |
public function clear():voidRemoves all of the elements from this list (optional operation).
| clone | () | method |
public function clone():ICollection
Returns a copy of the ICollection.
ICollection —
a copy of the ICollection
|
| contains | () | method |
public function contains(o:*):BooleanReturns true if this list contains the specified element.
Parameterso:* |
Boolean — true if this list contains the specified element.
|
| containsAll | () | method |
public function containsAll(c:ICollection):BooleanReturns true if this collection contains all of the elements in the specified collection.
Parametersc:ICollection — Collection collection to be checked for containment in this collection
|
Boolean — true if this collection contains all of the elements in the specified collection
|
| dispose | () | method |
public function dispose():voidfree memory for garbage collection.
| getAt | () | method |
public function getAt(i:int):*Returns the element at the specified position in this collection.
Parametersi:int — index
|
* |
| isEmpty | () | method |
public function isEmpty():BooleanReturns true if this list contains no elements.
ReturnsBoolean — true if this list contains no elements.
|
| iterator | () | method |
public function iterator():IIteratorReturns an iterator over the elements in this list.
ReturnsIIterator —
IIterator
|
| remove | () | method |
public function remove(o:*):BooleanRemoves the first occurrence in this list of the specified element (optional operation).
Parameterso:* |
Boolean — true if this collection changed as a result of the call
|
| removeAll | () | method |
public function removeAll(c:ICollection):BooleanRemoves a single instance of the specified element from this collection, if it is present (optional operation)
Parametersc:ICollection — Collection containing elements to be removed from this collection
|
Boolean — true if this collection changed as a result of the call
|
| size | () | method |
public function size():intReturns the number of elements in this list.
Returnsint — number of elements in this list.
|
| toArray | () | method |
public function toArray():ArrayConverts the collection into an array.
ReturnsArray — an array.
|