Package | org.as3collections |
Interface | public interface ISortedQueue extends IQueue, org.as3coreaddendum.system.ISortable, ICollection, IIterable, org.as3coreaddendum.system.ICloneable, org.as3coreaddendum.system.IEquatable |
Implementors | SortedQueue |
sort
or sortOn
methods.
Method | Defined By | ||
---|---|---|---|
add(element:*):Boolean
Ensures that this collection contains the specified element (optional operation). | ICollection | ||
addAll(collection:ICollection):Boolean
Adds all of the elements in the specified collection to this collection (optional operation). | ICollection | ||
clear():void
Removes all of the elements from this collection (optional operation). | ICollection | ||
contains(o:*):Boolean
Returns true if this collection contains the specified object. | ICollection | ||
containsAll(collection:ICollection):Boolean
Returns true if this collection contains all of the elements in the specified collection. | ICollection | ||
dequeue():*
Retrieves and removes the head of this queue. | IQueue | ||
element():*
Retrieves, but does not remove, the head of this queue. | IQueue | ||
isEmpty():Boolean
Returns true if this collection contains no elements. | ICollection | ||
Returns an iterator over a set of elements. | IIterable | ||
offer(element:*):Boolean
Inserts the specified element into this queue if it is possible to do so immediately without violating restrictions. | IQueue | ||
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 a single instance (only one occurrence) of the specified object from this collection, if it is present (optional operation). | ICollection | ||
removeAll(collection:ICollection):Boolean
Removes all elements of this collection that are also contained in the specified collection (optional operation). | ICollection | ||
retainAll(collection:ICollection):Boolean
Retains only the elements in this collection that are contained in the specified collection (optional operation). | ICollection | ||
size():int
Returns the number of elements in this collection. | ICollection | ||
sortOn(fieldName:*, options:* = null):Array
Sorts the elements in an array according to one or more fields in the array. | ISortedQueue | ||
toArray():Array
Returns an array containing all of the elements in this collection. | ICollection |
sortOn | () | method |
public function sortOn(fieldName:*, options:* = null):Array
Sorts the elements in an array according to one or more fields in the array.
Consult Array.sortOn
in the ActionScript 3.0 Language Reference in the link below for more info.
Parameters
fieldName:* | |
options:* (default = null )
|
Array —
|
See also