|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.icu.util.Holiday
public abstract class Holiday
An abstract class representing a holiday.
Constructor Summary | |
---|---|
protected |
Holiday(String name,
DateRule rule)
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. |
String |
getDisplayName()
Deprecated. This is a draft API and might change in a future release of ICU. |
String |
getDisplayName(Locale locale)
Deprecated. This is a draft API and might change in a future release of ICU. |
String |
getDisplayName(ULocale locale)
Deprecated. This is a draft API and might change in a future release of ICU. |
static Holiday[] |
getHolidays()
Deprecated. This is a draft API and might change in a future release of ICU. |
static Holiday[] |
getHolidays(Locale locale)
Deprecated. This is a draft API and might change in a future release of ICU. |
static Holiday[] |
getHolidays(ULocale locale)
Deprecated. This is a draft API and might change in a future release of ICU. |
DateRule |
getRule()
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. |
void |
setRule(DateRule rule)
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 |
---|
protected Holiday(String name, DateRule rule)
name
- The name of this holiday. The getDisplayName method
uses this string as a key to look up the holiday's name a
resource bundle object named HolidayBundle.rule
- The date rules used for determining when this holiday
falls. Holiday's implementation of the DateRule inteface
simply delegates to this DateRule object.Method Detail |
---|
public static Holiday[] getHolidays()
public static Holiday[] getHolidays(Locale locale)
public static Holiday[] getHolidays(ULocale locale)
public Date firstAfter(Date start)
firstAfter
in interface DateRule
start
- Only holidays 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
public String getDisplayName()
public String getDisplayName(Locale locale)
name
parameter passed to this object's constructor is used
as a key to look up the holiday's localized name in a ResourceBundle object
named HolidayBundle.
locale
- A locale specifying the language in which the name is desired.ResourceBundle
public String getDisplayName(ULocale locale)
name
parameter passed to this object's constructor is used
as a key to look up the holiday's localized name in a ResourceBundle object
named HolidayBundle.
locale
- A locale specifying the language in which the name is desired.ResourceBundle
public DateRule getRule()
public void setRule(DateRule rule)
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |