it.amattioli.encapsulate.dates
Class RangeEachYear
java.lang.Object
it.amattioli.encapsulate.dates.RangeEachYear
- All Implemented Interfaces:
- DayExpression, TemporalExpression
public class RangeEachYear
- extends Object
- implements TemporalExpression, DayExpression
A TemporalExpression like this check if a date is between two days of
the year independently of the year.
For example it can check if the date is between June 15th and August 31th.
|
Method Summary |
boolean |
includes(Date d)
Verifies if a date satisfies this expression |
boolean |
includes(Day d)
Verifies if a Day satisfies this expression |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RangeEachYear
public RangeEachYear(int month)
RangeEachYear
public RangeEachYear(int startMonth,
int endMonth)
RangeEachYear
public RangeEachYear(int startMonth,
int startDay,
int endMonth,
int endDay)
includes
public boolean includes(Date d)
- Description copied from interface:
TemporalExpression
- Verifies if a date satisfies this expression
- Specified by:
includes in interface TemporalExpression
- Parameters:
d - the date to be checked
- Returns:
- true if the date satisfies this expression, false otherwise
includes
public boolean includes(Day d)
- Description copied from interface:
DayExpression
- Verifies if a
Day satisfies this expression
- Specified by:
includes in interface DayExpression
- Parameters:
d - the day to be checked
- Returns:
- true if the day satisfies this expression, false otherwise
Copyright © 2011. All Rights Reserved.