|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.ibm.icu.util.RangeDateRule
public class RangeDateRule
Note: The Holiday framework is a technology preview. Despite its age, is still draft API, and clients should treat it as such. Implementation of DateRule that takes a range.
Constructor Summary | |
---|---|
RangeDateRule()
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RangeDateRule()
Method Detail |
---|
public void add(DateRule rule)
public void add(Date start, 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
isOn
in interface DateRule
date
- The date to check.
public boolean isBetween(Date start, Date end)
isBetween
in interface DateRule
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |