Package | com.sibirjak.angara.core |
Class | public class PriorityMap |
Inheritance | PriorityMap ![]() |
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.
Method | Defined 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 |
PriorityMap | () | constructor |
public function PriorityMap()
Creates a new PriorityMap.
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.
ParametersloaderItem: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.
Parameterscursor:* — Not supported. Enumerates always starting at the begin.
|
IIterator — The iterator.
|
removeLoaderItem | () | method |
public function removeLoaderItem(loaderItem:ILoaderItem):void
Removes a loader item from the map.
ParametersloaderItem:ILoaderItem — The item to remove.
|