org.oddjob.schedules
Interface Interval

All Known Subinterfaces:
ScheduleResult
All Known Implementing Classes:
IntervalTo, SimpleInterval, SimpleScheduleResult

public interface Interval

An interval of time. An interval extends from and including the from date up to but excluding the millisecond of the to date.

The smallest an interval can be is a millisecond.

Author:
rob

Field Summary
static Date END_OF_TIME
          The end of time.
static Date START_OF_TIME
          The start of time.
 
Method Summary
 Date getFromDate()
          The date the interval is from which includes this date.
 Date getToDate()
          The date the interval is up to but excluding.
 

Field Detail

END_OF_TIME

static final Date END_OF_TIME
The end of time. 31st December 9999 GMT


START_OF_TIME

static final Date START_OF_TIME
The start of time. 1st January -9999 GMT

Method Detail

getFromDate

Date getFromDate()
The date the interval is from which includes this date.

Returns:
Never null and alway less than the to date.

getToDate

Date getToDate()
The date the interval is up to but excluding.

Returns:
A date. Never and always greater than the from date.