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