it.amattioli.encapsulate.dates
Interface TemporalExpression

Show UML class diagram
All Known Implementing Classes:
Easter, GenericTimeInterval, RangeEachDay, RangeEachYear

public interface TemporalExpression

A TemporalExpression is a boolean expression that can be satisfied or not by a time point. For example such an expression could check if a date is a holiday or not.


Method Summary
 boolean includes(Date d)
          Verifies if a date satisfies this expression
 

Method Detail

includes

boolean includes(Date d)
Verifies if a date satisfies this expression

Parameters:
d - the date to be checked
Returns:
true if the date satisfies this expression, false otherwise


Copyright © 2011. All Rights Reserved.