|
|
|
|
The Comparable interface imposes a total ordering on the objects of each class that implements it. This ordering is referred to as the class's natural ordering, and the class's compareTo method is referred to as its natural comparison method.
Comparable defines the following methods:
where the compareTo method returns:
|
|
This page was last modified on 02 October, 2007 |