com.ibm.icu.util

Class SimpleHoliday

public class SimpleHoliday extends Holiday

A holiday whose date can be represented by a month, day, and optionally day of week in the Gregorian calendar.

UNKNOWN: ICU 2.8 (retainAll) This API might change or be removed in a future release.

Field Summary
static SimpleHolidayALL_SAINTS_DAY
All Saints' Day, November 1st
static SimpleHolidayALL_SOULS_DAY
All Souls' Day, November 1st
static SimpleHolidayASSUMPTION
Assumption, August 15th
static SimpleHolidayBOXING_DAY
Boxing Day, December 26th
static SimpleHolidayCHRISTMAS
Christmas, December 25th
static SimpleHolidayCHRISTMAS_EVE
Christmas Eve, December 24th
static SimpleHolidayEPIPHANY
Epiphany, January 6th
static SimpleHolidayIMMACULATE_CONCEPTION
Immaculate Conception, December 8th
static SimpleHolidayMAY_DAY
May Day, May 1st
static SimpleHolidayNEW_YEARS_DAY
New Year's Day - January 1st
static SimpleHolidayNEW_YEARS_EVE
New Year's Eve, December 31st
static SimpleHolidayST_STEPHENS_DAY
Saint Stephen's Day, December 26th
Constructor Summary
SimpleHoliday(int month, int dayOfMonth, String name)
Construct an object representing a holiday
SimpleHoliday(int month, int dayOfMonth, String name, int startYear)
Construct an object representing a holiday
SimpleHoliday(int month, int dayOfMonth, String name, int startYear, int endYear)
Construct an object representing a holiday
SimpleHoliday(int month, int dayOfMonth, int dayOfWeek, String name)
// TODO: remove Construct an object representing a holiday
SimpleHoliday(int month, int dayOfMonth, int dayOfWeek, String name, int startYear)
SimpleHoliday(int month, int dayOfMonth, int dayOfWeek, String name, int startYear, int endYear)

Field Detail

ALL_SAINTS_DAY

public static final SimpleHoliday ALL_SAINTS_DAY
All Saints' Day, November 1st

UNKNOWN: ICU 2.8 This API might change or be removed in a future release.

ALL_SOULS_DAY

public static final SimpleHoliday ALL_SOULS_DAY
All Souls' Day, November 1st

UNKNOWN: ICU 2.8 This API might change or be removed in a future release.

ASSUMPTION

public static final SimpleHoliday ASSUMPTION
Assumption, August 15th

UNKNOWN: ICU 2.8 This API might change or be removed in a future release.

BOXING_DAY

public static final SimpleHoliday BOXING_DAY
Boxing Day, December 26th

UNKNOWN: ICU 2.8 This API might change or be removed in a future release.

CHRISTMAS

public static final SimpleHoliday CHRISTMAS
Christmas, December 25th

UNKNOWN: ICU 2.8 This API might change or be removed in a future release.

CHRISTMAS_EVE

public static final SimpleHoliday CHRISTMAS_EVE
Christmas Eve, December 24th

UNKNOWN: ICU 2.8 This API might change or be removed in a future release.

EPIPHANY

public static final SimpleHoliday EPIPHANY
Epiphany, January 6th

UNKNOWN: ICU 2.8 This API might change or be removed in a future release.

IMMACULATE_CONCEPTION

public static final SimpleHoliday IMMACULATE_CONCEPTION
Immaculate Conception, December 8th

UNKNOWN: ICU 2.8 This API might change or be removed in a future release.

MAY_DAY

public static final SimpleHoliday MAY_DAY
May Day, May 1st

UNKNOWN: ICU 2.8 This API might change or be removed in a future release.

NEW_YEARS_DAY

public static final SimpleHoliday NEW_YEARS_DAY
New Year's Day - January 1st

UNKNOWN: ICU 2.8 This API might change or be removed in a future release.

NEW_YEARS_EVE

public static final SimpleHoliday NEW_YEARS_EVE
New Year's Eve, December 31st

UNKNOWN: ICU 2.8 This API might change or be removed in a future release.

ST_STEPHENS_DAY

public static final SimpleHoliday ST_STEPHENS_DAY
Saint Stephen's Day, December 26th

UNKNOWN: ICU 2.8 This API might change or be removed in a future release.

Constructor Detail

SimpleHoliday

public SimpleHoliday(int month, int dayOfMonth, String name)
Construct an object representing a holiday

Parameters: month The month in which this holiday occurs (0-based) dayOfMonth The date within the month (1-based). name The name of this holiday. This string is used as a key to look up the holiday's name a resource bundle. If the name is not found in the resource bundle, getDisplayName will return this string instead.

See Also: getDisplayName

UNKNOWN: ICU 2.8 This API might change or be removed in a future release.

SimpleHoliday

public SimpleHoliday(int month, int dayOfMonth, String name, int startYear)
Construct an object representing a holiday

Parameters: month The month in which this holiday occurs (0-based) dayOfMonth The date within the month (1-based). name The name of this holiday. This string is used as a key to look up the holiday's name a resource bundle. If the name is not found in the resource bundle, getDisplayName will return this string instead.

See Also: getDisplayName

UNKNOWN: ICU 2.8 This API might change or be removed in a future release.

SimpleHoliday

public SimpleHoliday(int month, int dayOfMonth, String name, int startYear, int endYear)
Construct an object representing a holiday

Parameters: month The month in which this holiday occurs (0-based) dayOfMonth The date within the month (1-based). name The name of this holiday. This string is used as a key to look up the holiday's name a resource bundle. If the name is not found in the resource bundle, getDisplayName will return this string instead.

See Also: getDisplayName

UNKNOWN: ICU 2.8 This API might change or be removed in a future release.

SimpleHoliday

public SimpleHoliday(int month, int dayOfMonth, int dayOfWeek, String name)
// TODO: remove Construct an object representing a holiday

Parameters: month The month in which this holiday occurs (0-based) dayOfMonth A date within the month (1-based). The interpretation of this parameter depends on the value of dayOfWeek. dayOfWeek The day of the week on which this holiday occurs. The following values are legal:

name The name of this holiday. This string is used as a key to look up the holiday's name a resource bundle. If the name is not found in the resource bundle, getDisplayName will return this string instead.

See Also: getDisplayName

UNKNOWN: ICU 2.8 This API might change or be removed in a future release.

SimpleHoliday

public SimpleHoliday(int month, int dayOfMonth, int dayOfWeek, String name, int startYear)

UNKNOWN: ICU 2.8 This API might change or be removed in a future release.

SimpleHoliday

public SimpleHoliday(int month, int dayOfMonth, int dayOfWeek, String name, int startYear, int endYear)

UNKNOWN: ICU 2.8 This API might change or be removed in a future release.

Copyright (c) 2006 IBM Corporation and others.