| Package | com.addicted2flash.util |
| Class | public class LinkedQueue |
| Inheritance | LinkedQueue AbstractLinkedCollection |
| Implements | IQueue |
| Method | Defined by | ||
|---|---|---|---|
|
Create a new
LinkedQueue. | LinkedQueue | ||
![]() |
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. | LinkedQueue | ||
![]() |
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 | |
|
peek():*
Retrieves, but does not remove, the head of this queue, or returns null if this queue is empty.
| LinkedQueue | ||
|
poll():*
Retrieves and removes the head of this queue, or returns null if this queue is empty.
| LinkedQueue | ||
![]() |
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 | |
|
toString():String
String representation of
LinkedQueue. | LinkedQueue | ||
| LinkedQueue | () | constructor |
public function LinkedQueue()
Create a new LinkedQueue.
| clone | () | method |
public override function clone():ICollection
Returns a copy of the ICollection.
ICollection —
a copy of the ICollection
|
| peek | () | method |
public function peek():*Retrieves, but does not remove, the head of this queue, or returns null if this queue is empty.
Returns* — the head of this queue, or null if this queue is empty
|
| poll | () | method |
public function poll():*Retrieves and removes the head of this queue, or returns null if this queue is empty.
Returns* — the head of this queue, or null if this queue is empty
|
| toString | () | method |
public function toString():String
String representation of LinkedQueue.
String — String representation of LinkedQueue
|