api/jar/src/main/java/javax/slee/management/Alarm.java
public int compareTo(Object obj) {
        if (obj == this) return 0;
        if (!(obj instanceof Alarm)) throw new ClassCastException("Not a javax.slee.management.Alarm: " + obj);

        Alarm that = (Alarm)obj;
        // compare alarm identifiers
        return this.alarmID.compareTo(that.alarmID);
    }
public int compareTo(Object obj) {
        if (obj == this) return 0;
        if (!(obj instanceof Alarm)) throw new ClassCastException("Not a javax.slee.management.Alarm: " + obj);

        Alarm that = (Alarm)obj;
        // compare alarm identifiers
        return this.alarmID.compareTo(that.alarmID);
    }
Compare this alarm with the specified object for order.
Returns a negative integer, zero, or a positive integer if this object
is less than, equal to, or greater than the specified object.
<p>
Alarm ordering is determined by comparing unique the alarm identifier.
@param obj the object to compare this with.
@return a negative integer, zero, or a positive integer if this alarm
object is considered less than, equal to, or greater than the
specified object.
@throws ClassCastException if <code>obj</code> is not an instance of this
class.
@see Comparable#compareTo(Object)