Packagecom.sibirjak.angara.core
Classpublic class PriorityMap
InheritancePriorityMap Inheritance org.as3commons.collections.SortedMap

LoaderManager priority map.

Takes a loader item and a priority and inserts the item at the position according to the priority. Multiple items for the same priority are added at the end of the sub list of items holding the same priority.



Public Methods
 MethodDefined by
  
Creates a new PriorityMap.
PriorityMap
  
addLoaderItem(loaderItem:ILoaderItem, priority:uint):void
Adds a loader item to the map at the specified priority.
PriorityMap
  
iterator(cursor:*):IIterator
Returns an iterator over all added loaderitems in the order of their priority.
PriorityMap
  
removeLoaderItem(loaderItem:ILoaderItem):void
Removes a loader item from the map.
PriorityMap
Constructor detail
PriorityMap()constructor
public function PriorityMap()

Creates a new PriorityMap.

Method detail
addLoaderItem()method
public function addLoaderItem(loaderItem:ILoaderItem, priority:uint):void

Adds a loader item to the map at the specified priority.

Multiple items for the same priority are added at the end of the sub list of items holding the same priority.

Parameters
loaderItem:ILoaderItem — The loader item to add.
 
priority:uint — Priority of that item.
iterator()method 
public override function iterator(cursor:*):IIterator

Returns an iterator over all added loaderitems in the order of their priority.

Parameters
cursor:* — Not supported. Enumerates always starting at the begin.

Returns
IIterator — The iterator.
removeLoaderItem()method 
public function removeLoaderItem(loaderItem:ILoaderItem):void

Removes a loader item from the map.

Parameters
loaderItem:ILoaderItem — The item to remove.