public class StaleAlarmsContainer.StaleAlarm extends java.lang.Object implements java.lang.Comparable<StaleAlarmsContainer.StaleAlarm>
Comparable orders by activation time.
| Modifier and Type | Field and Description |
|---|---|
java.sql.Timestamp |
activationTime
The time when the alarm has been activated
|
java.lang.String |
ID
The ID of the alarm
|
| Constructor and Description |
|---|
StaleAlarm(java.lang.String id,
java.sql.Timestamp time)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
activationDuration()
Return a string with the time that the alarm is active
|
int |
compareTo(StaleAlarmsContainer.StaleAlarm o) |
public final java.lang.String ID
public final java.sql.Timestamp activationTime
public StaleAlarm(java.lang.String id,
java.sql.Timestamp time)
id - The ID of the alarmtime - The time when the alarm has been activatedpublic java.lang.String activationDuration()
public int compareTo(StaleAlarmsContainer.StaleAlarm o)
compareTo in interface java.lang.Comparable<StaleAlarmsContainer.StaleAlarm>