| Package | com.addicted2flash.util |
| Class | public class AbstractLinkedCollection |
| Implements | ICollection |
| Subclasses | AbstractLinkedList, AbstractLinkedSet, LinkedQueue, LinkedStack |
| Property | Defined by | ||
|---|---|---|---|
| firstNode : LinkedNode
[read-only]
return first
LinkedNode. | AbstractLinkedCollection | ||
| lastNode : LinkedNode
[read-only]
return last
LinkedNode. | AbstractLinkedCollection | ||
| Property | Defined by | ||
|---|---|---|---|
| _first : LinkedNode | AbstractLinkedCollection | ||
| _last : LinkedNode | AbstractLinkedCollection | ||
| _length : int | AbstractLinkedCollection | ||
| Method | Defined by | ||
|---|---|---|---|
|
Create a new
AbstractLinkedCollection. | AbstractLinkedCollection | ||
|
add(o:*):void
Appends the specified element to the end of this list (optional operation).
| AbstractLinkedCollection | ||
|
addAll(c:ICollection):void
Adds all of the elements in the specified collection to this collection (optional operation).
| AbstractLinkedCollection | ||
|
clear():void
Removes all of the elements from this list (optional operation).
| AbstractLinkedCollection | ||
|
Returns a copy of the
ICollection. | AbstractLinkedCollection | ||
|
contains(o:*):Boolean
Returns true if this list contains the specified element.
| AbstractLinkedCollection | ||
|
containsAll(c:ICollection):Boolean
Returns true if this collection contains all of the elements in the specified collection.
| AbstractLinkedCollection | ||
|
dispose():void
free memory for garbage collection.
| AbstractLinkedCollection | ||
|
getAt(i:int):*
Returns the element at the specified position in this collection.
| AbstractLinkedCollection | ||
|
getNodeAt(i:int):LinkedNode
return
LinkedNode at given index. | AbstractLinkedCollection | ||
|
isEmpty():Boolean
Returns true if this list contains no elements.
| AbstractLinkedCollection | ||
|
Returns an iterator over the elements in this list.
| AbstractLinkedCollection | ||
|
remove(o:*):Boolean
Removes the first occurrence in this list of the specified element (optional operation).
| AbstractLinkedCollection | ||
|
removeAll(c:ICollection):Boolean
Removes a single instance of the specified element from this collection, if it is present (optional operation)
| AbstractLinkedCollection | ||
|
removeNode(n:LinkedNode):void
remove
LinkedNode. | AbstractLinkedCollection | ||
|
size():int
Returns the number of elements in this list.
| AbstractLinkedCollection | ||
|
toArray():Array
Converts the collection into an array.
| AbstractLinkedCollection | ||
| _first | property |
protected var _first:LinkedNode
| firstNode | property |
firstNode:LinkedNode [read-only]
return first LinkedNode.
NOTE: this method should be only used for traversal of the list. It is not recommended to change data with direct access to the nodes.
Implementation public function get firstNode():LinkedNode
| _last | property |
protected var _last:LinkedNode
| lastNode | property |
lastNode:LinkedNode [read-only]
return last LinkedNode.
NOTE: this method should be only used for traversal of the list. It is not recommended to change data with direct access to the nodes.
Implementation public function get lastNode():LinkedNode
| _length | property |
protected var _length:int
| AbstractLinkedCollection | () | constructor |
public function AbstractLinkedCollection()
Create a new AbstractLinkedCollection.
| 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
|
* |
| getNodeAt | () | method |
public function getNodeAt(i:int):LinkedNode
return LinkedNode at given index.
i:int — index
|
LinkedNode —
indexed LinkedNode ( null if i >= size() )
|
| 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
|
| removeNode | () | method |
public function removeNode(n:LinkedNode):void
remove LinkedNode.
n:LinkedNode — LinkedNode
|
| 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.
|