|
WebCab Options and Futures Demo v2.5 (J2SE Edition) |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--webcab.lib.calendar.BusinessCalendarUtilities
Utility class. It serves for finding out several religious, astronomical important dates specific to different regions of the globe.
| Field Summary | |
static String |
DEFAULT_CALENDAR_NAME
A string constant which identifies the DefaultBusinessCalendar implementation.
|
static String |
LONDON_CALENDAR_NAME
A string constant which identifies the LondonBusinessCalendar implementation.
|
static String |
NEWYORK_CALENDAR_NAME
A string constant which identifies the NewYorkBusinessCalendar implementation.
|
static String |
TOKYO_CALENDAR_NAME
A string constant which identifies the TokyoBusinessCalendar implementation.
|
| Method Summary | |
static int |
autumnalEquinox(int year)
Returns the Autumnal Equinox day as a day of year. |
static int |
catholicEasterMonday(int year)
Returns the Catholic Easter Monday day as a day of year. |
static Calendar |
dateToCalendar(Date date)
Gets the Calendar instance equivalent to Date instance, date. |
static BusinessCalendar |
getInstance(String cityCalendarName)
Factory method for getting specific business calendars. |
static int |
vernalEquinox(int year)
Returns the Vernal Equinox day as a day of year. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final String DEFAULT_CALENDAR_NAME
DefaultBusinessCalendar implementation.
The value of this constant is DEFAULT.
public static final String NEWYORK_CALENDAR_NAME
NewYorkBusinessCalendar implementation.
The value of this constant is NEW_YORK.
public static final String LONDON_CALENDAR_NAME
LondonBusinessCalendar implementation.
The value of this constant is LONDON.
public static final String TOKYO_CALENDAR_NAME
TokyoBusinessCalendar implementation.
The value of this constant is TOKYO.
| Method Detail |
public static int catholicEasterMonday(int year)
year - the year we are interested in
IllegalArgumentException - if year is less than 1900
or greater than 2100public static int vernalEquinox(int year)
year - the year we are interested in
IllegalArgumentException - if year is less than 1900
or greater than 2100public static int autumnalEquinox(int year)
year - the year we are interested in
IllegalArgumentException - if year is less than 1900
or greater than 2100public static Calendar dateToCalendar(Date date)
Calendar instance equivalent to Date instance, date.
date - the date to transform
Calendar instance equivalent to Date instance, datepublic static BusinessCalendar getInstance(String cityCalendarName)
|
WebCab Options and Futures Demo v2.5 (J2SE Edition) |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||