Packageorg.as3collections
Interfacepublic interface ISortedQueue extends IQueue, org.as3coreaddendum.system.ISortable, ICollection, IIterable, org.as3coreaddendum.system.ICloneable, org.as3coreaddendum.system.IEquatable
Implementors SortedQueue

A queue that provides a total ordering on its elements. The queue is ordered according to the natural ordering of its elements, by a IComparator typically provided at sorted queue creation time, or by the arguments provided to the sort or sortOn methods.



Public Properties
 PropertyDefined By
 InheritedallEquatable : Boolean
[read-only] Indicates whether all elements in this collection implement the interface org.as3coreaddendum.system.IEquatable.
ICollection
Public Methods
 MethodDefined By
 Inherited
add(element:*):Boolean
Ensures that this collection contains the specified element (optional operation).
ICollection
 Inherited
addAll(collection:ICollection):Boolean
Adds all of the elements in the specified collection to this collection (optional operation).
ICollection
 Inherited
clear():void
Removes all of the elements from this collection (optional operation).
ICollection
 Inherited
contains(o:*):Boolean
Returns true if this collection contains the specified object.
ICollection
 Inherited
containsAll(collection:ICollection):Boolean
Returns true if this collection contains all of the elements in the specified collection.
ICollection
 Inherited
Retrieves and removes the head of this queue.
IQueue
 Inherited
Retrieves, but does not remove, the head of this queue.
IQueue
 Inherited
isEmpty():Boolean
Returns true if this collection contains no elements.
ICollection
 Inherited
Returns an iterator over a set of elements.
IIterable
 Inherited
offer(element:*):Boolean
Inserts the specified element into this queue if it is possible to do so immediately without violating restrictions.
IQueue
 Inherited
peek():*
Retrieves, but does not remove, the head of this queue, or returns null if this queue is empty.
IQueue
 Inherited
poll():*
Retrieves and removes the head of this queue, or returns null if this queue is empty.
IQueue
 Inherited
remove(o:*):Boolean
Removes a single instance (only one occurrence) of the specified object from this collection, if it is present (optional operation).
ICollection
 Inherited
removeAll(collection:ICollection):Boolean
Removes all elements of this collection that are also contained in the specified collection (optional operation).
ICollection
 Inherited
retainAll(collection:ICollection):Boolean
Retains only the elements in this collection that are contained in the specified collection (optional operation).
ICollection
 Inherited
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
 Inherited
toArray():Array
Returns an array containing all of the elements in this collection.
ICollection
Method Detail
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)

Returns
Array

See also