com.ibm.icu.util
Class RangeDateRule
java.lang.Object
com.ibm.icu.util.RangeDateRule
- All Implemented Interfaces:
- DateRule
Deprecated. This is a draft API and might change in a future release of ICU.
- public class RangeDateRule
- extends Object
- implements DateRule
Implementation of DateRule that takes a range.
- Status:
- Draft ICU 2.8.
- Status:
- Deprecated in This is a draft API and might change in a future release of ICU..
Constructor Summary |
RangeDateRule()
Deprecated. This is a draft API and might change in a future release of ICU. |
Method Summary |
void |
add(Date start,
DateRule rule)
Deprecated. This is a draft API and might change in a future release of ICU. |
void |
add(DateRule rule)
Deprecated. This is a draft API and might change in a future release of ICU. |
Date |
firstAfter(Date start)
Deprecated. 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)
Deprecated. 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)
Deprecated. This is a draft API and might change in a future release of ICU. |
boolean |
isOn(Date date)
Deprecated. 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 |
RangeDateRule
public RangeDateRule()
- Deprecated. This is a draft API and might change in a future release of ICU.
- Status:
- Draft ICU 2.8.
- Status:
- Deprecated in This is a draft API and might change in a future release of ICU..
add
public void add(DateRule rule)
- Deprecated. This is a draft API and might change in a future release of ICU.
- Status:
- Draft ICU 2.8.
- Status:
- Deprecated in This is a draft API and might change in a future release of ICU..
add
public void add(Date start,
DateRule rule)
- Deprecated. This is a draft API and might change in a future release of ICU.
- Status:
- Draft ICU 2.8.
- Status:
- Deprecated in This is a draft API and might change in a future release of ICU..
firstAfter
public Date firstAfter(Date start)
- Deprecated. This is a draft API and might change in a future release of ICU.
- Description copied from interface:
DateRule
- Return the first occurrance of the event represented by this rule
that is on or after the given start date.
- Specified by:
firstAfter
in interface DateRule
- Parameters:
start
- Only occurrances on or after this date are returned.
- Returns:
- The date on which this event occurs, or null if it
does not occur on or after the start date.
- See Also:
DateRule.firstBetween(java.util.Date, java.util.Date)
- Status:
- Draft ICU 2.8.
- Status:
- Deprecated in This is a draft API and might change in a future release of ICU..
firstBetween
public Date firstBetween(Date start,
Date end)
- Deprecated. This is a draft API and might change in a future release of ICU.
- Description copied from interface:
DateRule
- 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.
- Specified by:
firstBetween
in interface DateRule
- Parameters:
start
- Only occurrances on or after this date are returned.end
- Only occurrances before this date are returned.
- Returns:
- The date on which this event occurs, or null if it
does not occur between the start and end dates.
- See Also:
DateRule.firstAfter(java.util.Date)
- Status:
- Draft ICU 2.8.
- Status:
- Deprecated in This is a draft API and might change in a future release of ICU..
isOn
public boolean isOn(Date date)
- Deprecated. This is a draft API and might change in a future release of ICU.
- Description copied from interface:
DateRule
- Checks whether this event occurs on the given date. This does
not take time of day into account; instead it checks
whether this event and the given date are on the same day.
This is useful for applications such as determining whether a given
day is a holiday.
- Specified by:
isOn
in interface DateRule
- Parameters:
date
- The date to check.
- Returns:
- true if this event occurs on the given date.
- Status:
- Draft ICU 2.8.
- Status:
- Deprecated in This is a draft API and might change in a future release of ICU..
isBetween
public boolean isBetween(Date start,
Date end)
- Deprecated. This is a draft API and might change in a future release of ICU.
- Check whether this event occurs at least once between the two
dates given.
- Specified by:
isBetween
in interface DateRule
- Status:
- Draft ICU 2.8.
- Status:
- Deprecated in This is a draft API and might change in a future release of ICU..
Copyright (c) 2004 IBM Corporation and others.