<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">/**
 * The requirements of objects that can be ordered.
 *
 * @author  Prof. David Bernstein, James Madison University
 * @version 1.0
 */
public interface Ordered
{
    /**
     * Compare this object to the given object. Return -1 if this
     * is "less than" other, 0 if they are "equal", and 1 if this 
     * is "greater than" other.
     *
     * @return -1, 0, or 1 as appropriate
     */
    public abstract int compareTo(Ordered other);
}</pre></body></html>