|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.oddjob.schedules.SimpleScheduleResult
public class SimpleScheduleResult
A simple ScheduleResult
Field Summary |
---|
Fields inherited from interface org.oddjob.schedules.Interval |
---|
END_OF_TIME, START_OF_TIME |
Constructor Summary | |
---|---|
SimpleScheduleResult(Interval interval)
|
|
SimpleScheduleResult(Interval interval,
Date useNext)
|
Method Summary | |
---|---|
boolean |
equals(Object other)
Test if two intervals are equivalent. |
Date |
getFromDate()
The date the interval is from which includes this date. |
Date |
getToDate()
The date the interval is up to but excluding. |
Date |
getUseNext()
For recurring schedules this property provide the date that should be used for the next call to Schedule.nextDue(ScheduleContext) by using
the ScheduleContext.move(Date) method. |
int |
hashCode()
Crude implementation of hashCode, so intervals could be stored in HashSets. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SimpleScheduleResult(Interval interval)
public SimpleScheduleResult(Interval interval, Date useNext)
Method Detail |
---|
public Date getFromDate()
Interval
getFromDate
in interface Interval
public Date getToDate()
Interval
getToDate
in interface Interval
public Date getUseNext()
ScheduleResult
Schedule.nextDue(ScheduleContext)
by using
the ScheduleContext.move(Date)
method. For most schedules this
date will be identical to the Interval.getToDate()
but for some
schedules such AfterSchedule
this will not be the case.
getUseNext
in interface ScheduleResult
public int hashCode()
hashCode
in class Object
public boolean equals(Object other)
Intervals are equivalent if there start and end times are the same.
equals
in class Object
other
- The interval to test against.
public String toString()
toString
in class Object
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |