Product Site

5.4.13. Orderable Class

The Orderable class can be inherited by classes which wish to provide each of the comparison operator methods without needing to implement each of the individual methods. The inheriting class need only implement the Comparable compareTo method.

The Orderable class is defined as a MIXIN class.
Table 5.48. Orderable Class
Object
Methods inherited from the Object class
Class (Metaclass)
Methods inherited from the Class class
Orderable (Mixin Class)
Comparison Methods = == < <= << <<= <> > >= >< >> >>= \= \== \< \<< \> \>>
compareTo