|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.icu.util.SimpleDateRule
public class SimpleDateRule
Simple implementation of DateRule.
Constructor Summary | |
---|---|
SimpleDateRule(int month,
int dayOfMonth)
Deprecated. This is a draft API and might change in a future release of ICU. |
|
SimpleDateRule(int month,
int dayOfMonth,
int dayOfWeek,
boolean after)
Deprecated. This is a draft API and might change in a future release of ICU. |
Method Summary | |
---|---|
Date |
firstAfter(Date start)
Deprecated. This is a draft API and might change in a future release of ICU. |
Date |
firstBetween(Date start,
Date end)
Deprecated. This is a draft API and might change in a future release of ICU. |
boolean |
isBetween(Date start,
Date end)
Deprecated. This is a draft API and might change in a future release of ICU. |
boolean |
isOn(Date date)
Deprecated. This is a draft API and might change in a future release of ICU. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SimpleDateRule(int month, int dayOfMonth)
month
- The month in which this rule occurs (0-based).dayOfMonth
- The date in that month (1-based).public SimpleDateRule(int month, int dayOfMonth, int dayOfWeek, boolean after)
month
- The month in which this rule occurs (0-based).dayOfMonth
- A date within that month (1-based).dayOfWeek
- The day of the week on which this rule occurs.after
- If true, this rule selects the first dayOfWeek
on or after dayOfMonth. If false, the rule selects
the first dayOfWeek on or before dayOfMonth.Method Detail |
---|
public Date firstAfter(Date start)
firstAfter
in interface DateRule
start
- Only occurrances on or after this date are returned.
firstBetween(java.util.Date, java.util.Date)
public Date firstBetween(Date start, Date end)
firstBetween
in interface DateRule
start
- Only occurrances on or after this date are returned.end
- Only occurrances before this date are returned.
firstAfter(java.util.Date)
public boolean isOn(Date date)
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 |