/** defines an interface with one abstract method,
 which is public and abstract by default */
public interface Compare {

  /** compare the invoking object with object x and
    return -1, 0, or 1, depending on if the invoking
    object is, respectively, smaller, equal, or larger */
  int compare(Object x);
}
