The 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. This class is defined as a mixin class.

The class Orderable subclasses (specializes) The Object Class and is a mixin class (it can be inherited by other classes). The following classes inherit (specialize) this class: