| Package | system.comparators |
| Class | public class PriorityComparator |
| Inheritance | PriorityComparator Object |
| Implements | Comparator |
| Method | Defined By | ||
|---|---|---|---|
Creates a new PriorityComparator instance. | PriorityComparator | ||
compare(o1:*, o2:*, options:* = null):int
Returns an integer value to compare two Number objects. | PriorityComparator | ||
| PriorityComparator | () | Constructor |
public function PriorityComparator()Creates a new PriorityComparator instance.
| compare | () | method |
public function compare(o1:*, o2:*, options:* = null):intReturns an integer value to compare two Number objects.
Parameters
o1:* — the first Number object to compare.
| |
o2:* — the second Number object to compare.
| |
options:* (default = null) |
int —
|
ArgumentError — if compare(a, b) and 'a' and 'b' must be Priority objects.
|