org.chronicj.impl
Class ArbitraryTimePointTE

java.lang.Object
  |
  +--org.chronicj.impl.ArbitraryTimePointTE
All Implemented Interfaces:
TemporalExpression

public class ArbitraryTimePointTE
extends java.lang.Object
implements TemporalExpression

Implements support for matching arbitrary dates using a TimePoint 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

Constructor Summary
ArbitraryTimePointTE(org.chronicj.TimePoint aTimePoint)
           
 
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
 

Constructor Detail

ArbitraryTimePointTE

public ArbitraryTimePointTE(org.chronicj.TimePoint aTimePoint)
Method Detail

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.