| Package | com.addicted2flash.util |
| Interface | public interface IQueue extends ICollection, IDisposable |
| Implementors | ArrayQueue, LinkedQueue, SortedArrayQueue |
| Method | Defined by | ||
|---|---|---|---|
![]() |
add(o:*):void
Appends the specified element to the end of this list (optional operation).
| ICollection | |
![]() |
addAll(c:ICollection):void
Adds all of the elements in the specified collection to this collection (optional operation).
| ICollection | |
![]() |
clear():void
Removes all of the elements from this list (optional operation).
| ICollection | |
![]() |
Returns a copy of the
ICollection. | ICollection | |
![]() |
contains(o:*):Boolean
Returns true if this list contains the specified element.
| ICollection | |
![]() |
containsAll(c:ICollection):Boolean
Returns true if this collection contains all of the elements in the specified collection.
| ICollection | |
![]() |
dispose():void
free memory for garbage collection.
| IDisposable | |
![]() |
getAt(i:int):*
Returns the element at the specified position in this collection.
| ICollection | |
![]() |
isEmpty():Boolean
Returns true if this list contains no elements.
| ICollection | |
![]() |
Returns an iterator over the elements in this list.
| ICollection | |
|
peek():*
Retrieves, but does not remove, the head of this queue, or returns null if this queue is empty.
| IQueue | ||
|
poll():*
Retrieves and removes the head of this queue, or returns null if this queue is empty.
| IQueue | ||
![]() |
remove(o:*):Boolean
Removes the first occurrence in this list of the specified element (optional operation).
| ICollection | |
![]() |
removeAll(c:ICollection):Boolean
Removes a single instance of the specified element from this collection, if it is present (optional operation)
| ICollection | |
![]() |
size():int
Returns the number of elements in this list.
| ICollection | |
![]() |
toArray():Array
Converts the collection into an array.
| 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
|