Modifier and Type | Method and Description |
---|---|
SimpleTime |
AlarmClock.getAlarm()
Get the alarm time.
|
SimpleTime |
AlarmClock.getClock()
Get the clock time.
|
Modifier and Type | Method and Description |
---|---|
int |
SimpleTime.compareTo(SimpleTime other)
Compares this
SimpleTime object to another
SimpleTime object. |
void |
AlarmClock.setAlarm(SimpleTime newTime)
Set the alarm time.
|
void |
AlarmClock.setClock(SimpleTime newTime)
Set the clock time.
|
Constructor and Description |
---|
AlarmClock(SimpleTime clockTime,
SimpleTime alarmTime)
Create an alarm clock with the given clock time and alarm time.
|
SimpleTime(SimpleTime other)
Create a
SimpleTime object that represents the same time
as another SimpleTime object. |