AlarmInstanceBuilder

public class AlarmInstanceBuilder extends IndexableBuilder<AlarmInstanceBuilder>

Builder to construct an Indexable for an alarm instance.

Constant Summary

String DISMISSED The alarm has been dismissed.
String FIRED The alarm has fired.
String MISSED The alarm has been missed.
String SCHEDULED The alarm is scheduled to fire at some point in the future.
String SNOOZED The alarm has been snoozed.
String UNKNOWN The alarm is in an unknown error state.

Public Method Summary

AlarmInstanceBuilder
setAlarmStatus(String status)
Sets the current status of the instance.
AlarmInstanceBuilder
setScheduledTime(Calendar scheduledTime)
Sets the time an alarm instance is scheduled to fire.

Inherited Method Summary

Constants

public static final String DISMISSED

The alarm has been dismissed.

Constant Value: "Dismissed"

public static final String FIRED

The alarm has fired.

Constant Value: "Fired"

public static final String MISSED

The alarm has been missed.

Constant Value: "Missed"

public static final String SCHEDULED

The alarm is scheduled to fire at some point in the future.

Constant Value: "Scheduled"

public static final String SNOOZED

The alarm has been snoozed.

Constant Value: "Snoozed"

public static final String UNKNOWN

The alarm is in an unknown error state.

Constant Value: "Unknown"

Public Methods

public AlarmInstanceBuilder setAlarmStatus (String status)

Sets the current status of the instance.

Parameters
status Must be one of { FIRED, SNOOZED, MISSED, DISMISSED, SCHEDULED }. A status change does not imply a change in scheduledTime.

public AlarmInstanceBuilder setScheduledTime (Calendar scheduledTime)

Sets the time an alarm instance is scheduled to fire.