public class RangeDateRule extends Object implements DateRule
Constructor and Description |
---|
RangeDateRule() |
Modifier and Type | Method and Description |
---|---|
void |
add(Date start,
DateRule rule) |
void |
add(DateRule rule) |
Date |
firstAfter(Date start)
Return the first occurrance of the event represented by this rule
that is on or after the given start date.
|
Date |
firstBetween(Date start,
Date end)
Return the first occurrance of the event represented by this rule
that is on or after the given start date and before the given
end date.
|
boolean |
isBetween(Date start,
Date end)
Check whether this event occurs at least once between the two
dates given.
|
boolean |
isOn(Date date)
Checks whether this event occurs on the given date.
|
public void add(DateRule rule)
public Date firstAfter(Date start)
DateRule
firstAfter
in interface DateRule
start
- Only occurrances on or after this date are returned.DateRule.firstBetween(java.util.Date, java.util.Date)
public Date firstBetween(Date start, Date end)
DateRule
firstBetween
in interface DateRule
start
- Only occurrances on or after this date are returned.end
- Only occurrances before this date are returned.DateRule.firstAfter(java.util.Date)
public boolean isOn(Date date)
DateRule
Copyright © 2016 Unicode, Inc. and others.