org.chronicj.impl
Class ArbitraryDateRangeTE
java.lang.Object
|
+--org.chronicj.impl.ArbitraryDateRangeTE
- All Implemented Interfaces:
- TemporalExpression
- public class ArbitraryDateRangeTE
- extends java.lang.Object
- implements TemporalExpression
Implements support for matching arbitrary dates using a DateRange supplied
to the constructor. Obviously, this class is not useful in the context of
recurring events, and, perhaps, it is introduction is the begining of a code
smell. :-P
This class is inspired by patterns described in a paper by Martin Fowler
which can be found here.
- Author:
- Matthew Lipper
- See Also:
- Recurring
Events for Calendars by Martin Fowler
|
Method Summary |
boolean |
includes(org.chronicj.TimePoint arg)
Used to check whether a given date is occurs within the current range
expressed by this TemporalExpression. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ArbitraryDateRangeTE
public ArbitraryDateRangeTE(org.chronicj.DateRange aDateRange)
includes
public boolean includes(org.chronicj.TimePoint arg)
- Description copied from interface:
TemporalExpression
- Used to check whether a given date is occurs within the current range
expressed by this
TemporalExpression.
- Specified by:
includes in interface TemporalExpression
- Parameters:
arg - the TimePoint to be checked for inclusion in the
current set
- Returns:
- true or false, indicating whether the supplied TimePoint occurs
within the current range
Copyright © 2003-2004 Digital Clash Software. All Rights Reserved.