|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--org.chronicj.impl.AbstractTemporalExpression
|
+--org.chronicj.impl.RangeEachDayTE
Implements support for temporal expressions that describe a recurring span of time each day or across multiple days. In pseudocode, this looks like: "starting at 11:34am and ending at 3:50pm" or "From 11pm to 2am". Expression syntax is specified using constructors.
This class is based directly on patterns described in a paper by Martin Fowler which can be found here.
| Constructor Summary | |
RangeEachDayTE(int startHour,
int startMinute,
int endHour,
int endMinute)
Creates a new RangeEachDayTE object. |
|
| Method Summary | |
boolean |
includes(org.chronicj.TimePoint aTimePoint)
Used to check whether a given date is occurs within the current range expressed by this TemporalExpression. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public RangeEachDayTE(int startHour,
int startMinute,
int endHour,
int endMinute)
startHour - int 0 to 23startMinute - int 0 to 59endHour - int 0 to 23endMinute - int 0 to 59| Method Detail |
public boolean includes(org.chronicj.TimePoint aTimePoint)
TemporalExpressionTemporalExpression.
includes in interface TemporalExpressionincludes in class AbstractTemporalExpressionaTimePoint - the TimePoint to be checked for inclusion in the
current set
public java.lang.String toString()
toString in class java.lang.Object
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||