/**
 * Imposes a total ordering on the objects of any class that implements this interface.  
 * 
 * Note: there is an interface with the same name in the Java API and it serves the same
 * purpose as this one. The library version has a type parameter, but we will start with
 * this custom version that does not involve the use of generics.
 * 
 * @author Drue Coles
 */
public interface Comparable {
    
    /**
     * Compares this object with a given object for order. Returns a negative integer, 
     * zero, or a positive integer depending on whether this object is less than, equal
     * to, or greater than the given object.
     */
    int compareTo(Object o);    
}