public class AbsoluteSchedule extends java.lang.Object implements Schedule, java.io.Serializable
This implementation of Schedule represents a Schedule for an job that occurs once, at a specific time.
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CLASS_VERSION
Class version string
|
| Constructor and Description |
|---|
AbsoluteSchedule(long pJobTime)
Constructs a new AbsoluteSchedule for a job that will occur
at the specified time.
|
AbsoluteSchedule(java.lang.String pValue,
java.util.Locale pLocale)
Attempts to parse the String parameter pValue into an absolute schedule.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object pObject)
Returns true if the given object is an AbsoluteSchedule with the
same job time as this schedule.
|
long |
getNextJobTime(long pLastOccurrenceTime)
Returns the next time that the job Scheduled by this will take
place.
|
static java.util.ResourceBundle |
getResources(java.util.Locale pLocale) |
int |
hashCode()
Returns a hash code value for this object.
|
boolean |
isRepeating()
Returns true if this is a repeating job, false if this is a
one-shot job.
|
boolean |
mustKnowFirstTime()
If true, then the first time getNextJobTime is called it will be
called with -1.
|
java.lang.String |
scheduleString()
Returns a Parseable representation of this Schedule.
|
java.lang.String |
scheduleString(java.util.Locale pLocale)
Returns a Parseable representation of this Schedule.
|
java.lang.String |
toString()
Returns a String value of this
|
java.lang.String |
toString(java.util.Locale pLocale) |
public AbsoluteSchedule(java.lang.String pValue,
java.util.Locale pLocale)
throws java.lang.IllegalArgumentException
pValue - a String valuepLocale - a Locale valuejava.lang.IllegalArgumentException - if the string can not be parsedpublic AbsoluteSchedule(long pJobTime)
public static java.util.ResourceBundle getResources(java.util.Locale pLocale)
public long getNextJobTime(long pLastOccurrenceTime)
getNextJobTime in interface SchedulepLastOccurrenceTime - the last time the job occurred,
or -1 if it has not yet occurred.public boolean mustKnowFirstTime()
mustKnowFirstTime in interface Schedulepublic boolean isRepeating()
isRepeating in interface Schedulepublic java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String toString(java.util.Locale pLocale)
public java.lang.String scheduleString()
SchedulescheduleString in interface Schedulepublic java.lang.String scheduleString(java.util.Locale pLocale)
scheduleString in interface Schedulepublic boolean equals(java.lang.Object pObject)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object