/** * Compares id against id of the specified object. So this * method is inconsistent with {@link #equals(Object)}. * * @param other Object to be compared with this instance. * @return A negative integer, zero, or a positive integer as this object * is less than, equal to, or greater than the specified object. */ public int compareTo(final Object other) { return compareTo((AccessMode) other); }