Packageorg.as3coreaddendum.system.comparators
Classpublic class IndexComparator
InheritanceIndexComparator Inheritance Object
Implements IComparator

A comparator for objects that implements the org.as3coreaddendum.system.IIndexable interface, comparing the index property.

See also

IComparator
IIndexable


Public Methods
 MethodDefined By
  
Constructor, creates a new IndexComparator object.
IndexComparator
  
compare(o1:*, o2:*):int
Performs the comparison between the two arguments.
IndexComparator
Constructor Detail
IndexComparator()Constructor
public function IndexComparator()

Constructor, creates a new IndexComparator object.

Method Detail
compare()method
public function compare(o1:*, o2:*):int

Performs the comparison between the two arguments.

Parameters

o1:* — The first Number object to be compared.
 
o2:* — The second Number object to be compared.

Returns
int — A negative integer, zero, or a positive integer as the first argument is less than, equal to, or greater than the second.

Throws
ArgumentError — if any of the arguments does not implements the IIndexable interface.