Package | org.as3coreaddendum.system.comparators |
Class | public class IndexComparator |
Inheritance | IndexComparator ![]() |
Implements | IComparator |
org.as3coreaddendum.system.IIndexable
interface, comparing the index
property.
See also
Method | Defined By | ||
---|---|---|---|
Constructor, creates a new IndexComparator object. | IndexComparator | ||
compare(o1:*, o2:*):int
Performs the comparison between the two arguments. | IndexComparator |
IndexComparator | () | Constructor |
public function IndexComparator()
Constructor, creates a new IndexComparator
object.
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.
|
int — A negative integer, zero, or a positive integer as the first argument is less than, equal to, or greater than the second.
|
ArgumentError — if any of the arguments does not implements the IIndexable interface.
|