Packageorg.granite.collections
Classpublic class ComparatorArrayList
InheritanceComparatorArrayList Inheritance mx.collections.ArrayList
SubclassesUIDArrayList, UIDArraySet

ArrayList with modified getItemIndex that can compare values with a comparator class



Public Properties
 PropertyDefined by
  comparator : IComparator
ComparatorArrayList
Public Methods
 MethodDefined by
  
ComparatorArrayList(source:Array = null, comparator:IComparator = null)
ComparatorArrayList
  
getItemIndex(item:Object):int
ComparatorArrayList
Property detail
comparatorproperty
comparator:IComparator  [read-write]Implementation
    public function get comparator():IComparator
    public function set comparator(value:IComparator):void
Constructor detail
ComparatorArrayList()constructor
public function ComparatorArrayList(source:Array = null, comparator:IComparator = null)Parameters
source:Array (default = null)
 
comparator:IComparator (default = null)
Method detail
getItemIndex()method
public override function getItemIndex(item:Object):intParameters
item:Object

Returns
int