ICU-2585 mark @draft ICU 2.4 (was @stable ICU 2.0)
X-SVN-Rev: 10732
This commit is contained in:
parent
7ef34d48c9
commit
9be5d1a24e
@ -5,8 +5,8 @@
|
||||
*******************************************************************************
|
||||
*
|
||||
* $Source: /xsrl/Nsvn/icu/icu4j/src/com/ibm/icu/util/BuddhistCalendar.java,v $
|
||||
* $Date: 2002/12/05 01:24:54 $
|
||||
* $Revision: 1.11 $
|
||||
* $Date: 2002/12/18 19:35:06 $
|
||||
* $Revision: 1.12 $
|
||||
*
|
||||
*****************************************************************************************
|
||||
*/
|
||||
@ -36,7 +36,7 @@ import java.util.Locale;
|
||||
*
|
||||
* @author Laura Werner
|
||||
* @author Alan Liu
|
||||
* @stable ICU 2.0
|
||||
* @draft ICU 2.4
|
||||
*/
|
||||
public class BuddhistCalendar extends GregorianCalendar {
|
||||
|
||||
@ -51,14 +51,14 @@ public class BuddhistCalendar extends GregorianCalendar {
|
||||
* value for the Buddhist calendar.
|
||||
*
|
||||
* @see com.ibm.icu.util.Calendar#ERA
|
||||
* @stable ICU 2.0
|
||||
* @draft ICU 2.4
|
||||
*/
|
||||
public static final int BE = 0;
|
||||
|
||||
/**
|
||||
* Constructs a <code>BuddhistCalendar</code> using the current time
|
||||
* in the default time zone with the default locale.
|
||||
* @stable ICU 2.0
|
||||
* @draft ICU 2.4
|
||||
*/
|
||||
public BuddhistCalendar() {
|
||||
super();
|
||||
@ -69,7 +69,7 @@ public class BuddhistCalendar extends GregorianCalendar {
|
||||
* in the given time zone with the default locale.
|
||||
*
|
||||
* @param zone the given time zone.
|
||||
* @stable ICU 2.0
|
||||
* @draft ICU 2.4
|
||||
*/
|
||||
public BuddhistCalendar(TimeZone zone) {
|
||||
super(zone);
|
||||
@ -80,7 +80,7 @@ public class BuddhistCalendar extends GregorianCalendar {
|
||||
* in the default time zone with the given locale.
|
||||
*
|
||||
* @param aLocale the given locale.
|
||||
* @stable ICU 2.0
|
||||
* @draft ICU 2.4
|
||||
*/
|
||||
public BuddhistCalendar(Locale aLocale) {
|
||||
super(aLocale);
|
||||
@ -93,7 +93,7 @@ public class BuddhistCalendar extends GregorianCalendar {
|
||||
* @param zone the given time zone.
|
||||
*
|
||||
* @param aLocale the given locale.
|
||||
* @stable ICU 2.0
|
||||
* @draft ICU 2.4
|
||||
*/
|
||||
public BuddhistCalendar(TimeZone zone, Locale aLocale) {
|
||||
super(zone, aLocale);
|
||||
@ -104,7 +104,7 @@ public class BuddhistCalendar extends GregorianCalendar {
|
||||
* in the default time zone with the default locale.
|
||||
*
|
||||
* @param date The date to which the new calendar is set.
|
||||
* @stable ICU 2.0
|
||||
* @draft ICU 2.4
|
||||
*/
|
||||
public BuddhistCalendar(Date date) {
|
||||
this();
|
||||
@ -121,7 +121,7 @@ public class BuddhistCalendar extends GregorianCalendar {
|
||||
* The value is 0-based. e.g., 0 for January.
|
||||
*
|
||||
* @param date The value used to set the calendar's {@link #DATE DATE} time field.
|
||||
* @stable ICU 2.0
|
||||
* @draft ICU 2.4
|
||||
*/
|
||||
public BuddhistCalendar(int year, int month, int date) {
|
||||
super(year, month, date);
|
||||
@ -143,7 +143,7 @@ public class BuddhistCalendar extends GregorianCalendar {
|
||||
* @param minute The value used to set the calendar's {@link #MINUTE MINUTE} time field.
|
||||
*
|
||||
* @param second The value used to set the calendar's {@link #SECOND SECOND} time field.
|
||||
* @stable ICU 2.0
|
||||
* @draft ICU 2.4
|
||||
*/
|
||||
public BuddhistCalendar(int year, int month, int date, int hour,
|
||||
int minute, int second)
|
||||
@ -162,7 +162,7 @@ public class BuddhistCalendar extends GregorianCalendar {
|
||||
private static final int BUDDHIST_ERA_START = -543;
|
||||
|
||||
/**
|
||||
* @stable ICU 2.0
|
||||
* @draft ICU 2.4
|
||||
*/
|
||||
protected int handleGetExtendedYear() {
|
||||
int year;
|
||||
@ -177,14 +177,14 @@ public class BuddhistCalendar extends GregorianCalendar {
|
||||
|
||||
// Return JD of start of given month/year
|
||||
/**
|
||||
* @stable ICU 2.0
|
||||
* @draft ICU 2.4
|
||||
*/
|
||||
protected int handleComputeMonthStart(int eyear, int month, boolean useMonth) {
|
||||
return super.handleComputeMonthStart(eyear + BUDDHIST_ERA_START, month, useMonth);
|
||||
}
|
||||
|
||||
/**
|
||||
* @stable ICU 2.0
|
||||
* @draft ICU 2.4
|
||||
*/
|
||||
protected void handleComputeFields(int julianDay) {
|
||||
super.handleComputeFields(julianDay);
|
||||
@ -198,7 +198,7 @@ public class BuddhistCalendar extends GregorianCalendar {
|
||||
* Override GregorianCalendar. There is only one Buddhist ERA. We
|
||||
* should really handle YEAR, YEAR_WOY, and EXTENDED_YEAR here too to
|
||||
* implement the 1..5000000 range, but it's not critical.
|
||||
* @stable ICU 2.0
|
||||
* @draft ICU 2.4
|
||||
*/
|
||||
protected int handleGetLimit(int field, int limitType) {
|
||||
if (field == ERA) {
|
||||
|
@ -3,8 +3,8 @@
|
||||
* others. All Rights Reserved.
|
||||
*********************************************************************
|
||||
* $Source: /xsrl/Nsvn/icu/icu4j/src/com/ibm/icu/util/ChineseCalendar.java,v $
|
||||
* $Date: 2002/12/05 01:25:14 $
|
||||
* $Revision: 1.13 $
|
||||
* $Date: 2002/12/18 19:35:06 $
|
||||
* $Revision: 1.14 $
|
||||
*/
|
||||
package com.ibm.icu.util;
|
||||
import com.ibm.icu.lang.*;
|
||||
@ -70,7 +70,7 @@ import java.util.Locale;
|
||||
* </ul>
|
||||
* @see com.ibm.icu.text.ChineseDateFormat
|
||||
* @author Alan Liu
|
||||
* @stable ICU 2.0
|
||||
* @draft ICU 2.4
|
||||
*/
|
||||
public class ChineseCalendar extends Calendar {
|
||||
|
||||
@ -122,7 +122,7 @@ public class ChineseCalendar extends Calendar {
|
||||
|
||||
/**
|
||||
* Construct a Chinese calendar with the default time zone and locale.
|
||||
* @stable ICU 2.0
|
||||
* @draft ICU 2.4
|
||||
*/
|
||||
public ChineseCalendar() {
|
||||
super();
|
||||
@ -132,7 +132,7 @@ public class ChineseCalendar extends Calendar {
|
||||
* Construct a Chinese calendar with the given time zone and locale.
|
||||
* @param zone time zone for this calendar
|
||||
* @param locale locale for this calendar
|
||||
* @stable ICU 2.0
|
||||
* @draft ICU 2.4
|
||||
*/
|
||||
public ChineseCalendar(TimeZone zone, Locale locale) {
|
||||
super(zone, locale);
|
||||
@ -145,7 +145,7 @@ public class ChineseCalendar extends Calendar {
|
||||
/**
|
||||
* Field indicating whether or not the current month is a leap month.
|
||||
* Should have a value of 0 for non-leap months, and 1 for leap months.
|
||||
* @stable ICU 2.0
|
||||
* @draft ICU 2.4
|
||||
*/
|
||||
public static int IS_LEAP_MONTH = BASE_FIELD_COUNT;
|
||||
|
||||
@ -160,7 +160,7 @@ public class ChineseCalendar extends Calendar {
|
||||
|
||||
/**
|
||||
* Override Calendar to allocate our additional field.
|
||||
* @stable ICU 2.0
|
||||
* @draft ICU 2.4
|
||||
*/
|
||||
protected int[] handleCreateFields() {
|
||||
return new int[FIELD_COUNT];
|
||||
@ -232,7 +232,7 @@ public class ChineseCalendar extends Calendar {
|
||||
|
||||
/**
|
||||
* Override Calendar to return the limit value for the given field.
|
||||
* @stable ICU 2.0
|
||||
* @draft ICU 2.4
|
||||
*/
|
||||
protected int handleGetLimit(int field, int limitType) {
|
||||
return LIMITS[field][limitType];
|
||||
@ -243,7 +243,7 @@ public class ChineseCalendar extends Calendar {
|
||||
* defined by the current fields. This will use either the ERA and
|
||||
* YEAR field as the cycle and year-of-cycle, or the EXTENDED_YEAR
|
||||
* field as the continuous year count, depending on which is newer.
|
||||
* @stable ICU 2.0
|
||||
* @draft ICU 2.4
|
||||
*/
|
||||
protected int handleGetExtendedYear() {
|
||||
int year;
|
||||
@ -262,7 +262,7 @@ public class ChineseCalendar extends Calendar {
|
||||
*
|
||||
* <p>Note: This method also reads the IS_LEAP_MONTH field to determine
|
||||
* whether or not the given month is a leap month.
|
||||
* @stable ICU 2.0
|
||||
* @draft ICU 2.4
|
||||
*/
|
||||
protected int handleGetMonthLength(int extendedYear, int month) {
|
||||
int thisStart = handleComputeMonthStart(extendedYear, month, true) -
|
||||
@ -276,7 +276,7 @@ public class ChineseCalendar extends Calendar {
|
||||
* using the the given pattern. This method is responsible for
|
||||
* creating the calendar- specific DateFormat and DateFormatSymbols
|
||||
* objects as needed.
|
||||
* @stable ICU 2.0
|
||||
* @draft ICU 2.4
|
||||
*/
|
||||
protected DateFormat handleGetDateFormat(String pattern, Locale locale) {
|
||||
return new ChineseDateFormat(pattern, locale);
|
||||
@ -309,7 +309,7 @@ public class ChineseCalendar extends Calendar {
|
||||
/**
|
||||
* Override Calendar to add IS_LEAP_MONTH to the field resolution
|
||||
* table.
|
||||
* @stable ICU 2.0
|
||||
* @draft ICU 2.4
|
||||
*/
|
||||
protected int[][][] getFieldResolutionTable() {
|
||||
return CHINESE_DATE_PRECEDENCE;
|
||||
@ -355,7 +355,7 @@ public class ChineseCalendar extends Calendar {
|
||||
|
||||
/**
|
||||
* Override Calendar to handle leap months properly.
|
||||
* @stable ICU 2.0
|
||||
* @draft ICU 2.4
|
||||
*/
|
||||
public void add(int field, int amount) {
|
||||
switch (field) {
|
||||
@ -375,7 +375,7 @@ public class ChineseCalendar extends Calendar {
|
||||
|
||||
/**
|
||||
* Override Calendar to handle leap months properly.
|
||||
* @stable ICU 2.0
|
||||
* @draft ICU 2.4
|
||||
*/
|
||||
public void roll(int field, int amount) {
|
||||
switch (field) {
|
||||
@ -616,7 +616,7 @@ public class ChineseCalendar extends Calendar {
|
||||
* calendar equivalents for the given Julian day.
|
||||
*
|
||||
* <p>Compute the ChineseCalendar-specific field IS_LEAP_MONTH.
|
||||
* @stable ICU 2.0
|
||||
* @draft ICU 2.4
|
||||
*/
|
||||
protected void handleComputeFields(int julianDay) {
|
||||
|
||||
@ -757,7 +757,7 @@ public class ChineseCalendar extends Calendar {
|
||||
* by reading the IS_LEAP_MONTH field.
|
||||
* @param return the Julian day number of the day before the first
|
||||
* day of the given month and year
|
||||
* @stable ICU 2.0
|
||||
* @draft ICU 2.4
|
||||
*/
|
||||
protected int handleComputeMonthStart(int eyear, int month, boolean useMonth) {
|
||||
|
||||
|
@ -5,8 +5,8 @@
|
||||
*******************************************************************************
|
||||
*
|
||||
* $Source: /xsrl/Nsvn/icu/icu4j/src/com/ibm/icu/util/HebrewCalendar.java,v $
|
||||
* $Date: 2002/12/05 01:25:25 $
|
||||
* $Revision: 1.13 $
|
||||
* $Date: 2002/12/18 19:35:07 $
|
||||
* $Revision: 1.14 $
|
||||
*
|
||||
*****************************************************************************************
|
||||
*/
|
||||
@ -65,7 +65,7 @@ import java.util.Locale;
|
||||
*
|
||||
* @author Laura Werner
|
||||
* @author Alan Liu
|
||||
* @stable ICU 2.0
|
||||
* @draft ICU 2.4
|
||||
*/
|
||||
public class HebrewCalendar extends Calendar {
|
||||
|
||||
@ -78,31 +78,31 @@ public class HebrewCalendar extends Calendar {
|
||||
|
||||
/**
|
||||
* Constant for Tishri, the 1st month of the Hebrew year.
|
||||
* @stable ICU 2.0
|
||||
* @draft ICU 2.4
|
||||
*/
|
||||
public static final int TISHRI = 0;
|
||||
|
||||
/**
|
||||
* Constant for Heshvan, the 2nd month of the Hebrew year.
|
||||
* @stable ICU 2.0
|
||||
* @draft ICU 2.4
|
||||
*/
|
||||
public static final int HESHVAN = 1;
|
||||
|
||||
/**
|
||||
* Constant for Kislev, the 3rd month of the Hebrew year.
|
||||
* @stable ICU 2.0
|
||||
* @draft ICU 2.4
|
||||
*/
|
||||
public static final int KISLEV = 2;
|
||||
|
||||
/**
|
||||
* Constant for Tevet, the 4th month of the Hebrew year.
|
||||
* @stable ICU 2.0
|
||||
* @draft ICU 2.4
|
||||
*/
|
||||
public static final int TEVET = 3;
|
||||
|
||||
/**
|
||||
* Constant for Shevat, the 5th month of the Hebrew year.
|
||||
* @stable ICU 2.0
|
||||
* @draft ICU 2.4
|
||||
*/
|
||||
public static final int SHEVAT = 4;
|
||||
|
||||
@ -110,49 +110,49 @@ public class HebrewCalendar extends Calendar {
|
||||
* Constant for Adar I, the 6th month of the Hebrew year
|
||||
* (present in leap years only). In non-leap years, the calendar
|
||||
* jumps from Shevat (5th month) to Adar (7th month).
|
||||
* @stable ICU 2.0
|
||||
* @draft ICU 2.4
|
||||
*/
|
||||
public static final int ADAR_1 = 5;
|
||||
|
||||
/**
|
||||
* Constant for the Adar, the 7th month of the Hebrew year.
|
||||
* @stable ICU 2.0
|
||||
* @draft ICU 2.4
|
||||
*/
|
||||
public static final int ADAR = 6;
|
||||
|
||||
/**
|
||||
* Constant for Nisan, the 8th month of the Hebrew year.
|
||||
* @stable ICU 2.0
|
||||
* @draft ICU 2.4
|
||||
*/
|
||||
public static final int NISAN = 7;
|
||||
|
||||
/**
|
||||
* Constant for Iyar, the 9th month of the Hebrew year.
|
||||
* @stable ICU 2.0
|
||||
* @draft ICU 2.4
|
||||
*/
|
||||
public static final int IYAR = 8;
|
||||
|
||||
/**
|
||||
* Constant for Sivan, the 10th month of the Hebrew year.
|
||||
* @stable ICU 2.0
|
||||
* @draft ICU 2.4
|
||||
*/
|
||||
public static final int SIVAN = 9;
|
||||
|
||||
/**
|
||||
* Constant for Tammuz, the 11th month of the Hebrew year.
|
||||
* @stable ICU 2.0
|
||||
* @draft ICU 2.4
|
||||
*/
|
||||
public static final int TAMUZ = 10;
|
||||
|
||||
/**
|
||||
* Constant for Av, the 12th month of the Hebrew year.
|
||||
* @stable ICU 2.0
|
||||
* @draft ICU 2.4
|
||||
*/
|
||||
public static final int AV = 11;
|
||||
|
||||
/**
|
||||
* Constant for Elul, the 13th month of the Hebrew year.
|
||||
* @stable ICU 2.0
|
||||
* @draft ICU 2.4
|
||||
*/
|
||||
public static final int ELUL = 12;
|
||||
|
||||
@ -272,7 +272,7 @@ public class HebrewCalendar extends Calendar {
|
||||
/**
|
||||
* Constructs a default <code>HebrewCalendar</code> using the current time
|
||||
* in the default time zone with the default locale.
|
||||
* @stable ICU 2.0
|
||||
* @draft ICU 2.4
|
||||
*/
|
||||
public HebrewCalendar() {
|
||||
this(TimeZone.getDefault(), Locale.getDefault());
|
||||
@ -283,7 +283,7 @@ public class HebrewCalendar extends Calendar {
|
||||
* in the given time zone with the default locale.
|
||||
*
|
||||
* @param zone The time zone for the new calendar.
|
||||
* @stable ICU 2.0
|
||||
* @draft ICU 2.4
|
||||
*/
|
||||
public HebrewCalendar(TimeZone zone) {
|
||||
this(zone, Locale.getDefault());
|
||||
@ -294,7 +294,7 @@ public class HebrewCalendar extends Calendar {
|
||||
* in the default time zone with the given locale.
|
||||
*
|
||||
* @param aLocale The locale for the new calendar.
|
||||
* @stable ICU 2.0
|
||||
* @draft ICU 2.4
|
||||
*/
|
||||
public HebrewCalendar(Locale aLocale) {
|
||||
this(TimeZone.getDefault(), aLocale);
|
||||
@ -307,7 +307,7 @@ public class HebrewCalendar extends Calendar {
|
||||
* @param zone The time zone for the new calendar.
|
||||
*
|
||||
* @param aLocale The locale for the new calendar.
|
||||
* @stable ICU 2.0
|
||||
* @draft ICU 2.4
|
||||
*/
|
||||
public HebrewCalendar(TimeZone zone, Locale aLocale) {
|
||||
super(zone, aLocale);
|
||||
@ -324,7 +324,7 @@ public class HebrewCalendar extends Calendar {
|
||||
* The value is 0-based. e.g., 0 for Tishri.
|
||||
*
|
||||
* @param date The value used to set the calendar's {@link #DATE DATE} time field.
|
||||
* @stable ICU 2.0
|
||||
* @draft ICU 2.4
|
||||
*/
|
||||
public HebrewCalendar(int year, int month, int date) {
|
||||
super(TimeZone.getDefault(), Locale.getDefault());
|
||||
@ -338,7 +338,7 @@ public class HebrewCalendar extends Calendar {
|
||||
* in the default time zone with the default locale.
|
||||
*
|
||||
* @param date The date to which the new calendar is set.
|
||||
* @stable ICU 2.0
|
||||
* @draft ICU 2.4
|
||||
*/
|
||||
public HebrewCalendar(Date date) {
|
||||
super(TimeZone.getDefault(), Locale.getDefault());
|
||||
@ -361,7 +361,7 @@ public class HebrewCalendar extends Calendar {
|
||||
* @param minute The value used to set the calendar's {@link #MINUTE MINUTE} time field.
|
||||
*
|
||||
* @param second The value used to set the calendar's {@link #SECOND SECOND} time field.
|
||||
* @stable ICU 2.0
|
||||
* @draft ICU 2.4
|
||||
*/
|
||||
public HebrewCalendar(int year, int month, int date, int hour,
|
||||
int minute, int second)
|
||||
@ -407,7 +407,7 @@ public class HebrewCalendar extends Calendar {
|
||||
*
|
||||
* @exception IllegalArgumentException if the field is invalid or refers
|
||||
* to a field that cannot be handled by this method.
|
||||
* @stable ICU 2.0
|
||||
* @draft ICU 2.4
|
||||
*/
|
||||
public void add(int field, int amount)
|
||||
{
|
||||
@ -511,7 +511,7 @@ public class HebrewCalendar extends Calendar {
|
||||
*
|
||||
* @exception IllegalArgumentException if the field is invalid or refers
|
||||
* to a field that cannot be handled by this method.
|
||||
* @stable ICU 2.0
|
||||
* @draft ICU 2.4
|
||||
*/
|
||||
public void roll(int field, int amount)
|
||||
{
|
||||
@ -683,7 +683,7 @@ public class HebrewCalendar extends Calendar {
|
||||
//-------------------------------------------------------------------------
|
||||
|
||||
/**
|
||||
* @stable ICU 2.0
|
||||
* @draft ICU 2.4
|
||||
*/
|
||||
protected int handleGetLimit(int field, int limitType) {
|
||||
return LIMITS[field][limitType];
|
||||
@ -691,7 +691,7 @@ public class HebrewCalendar extends Calendar {
|
||||
|
||||
/**
|
||||
* Returns the length of the given month in the given year
|
||||
* @stable ICU 2.0
|
||||
* @draft ICU 2.4
|
||||
*/
|
||||
protected int handleGetMonthLength(int extendedYear, int month) {
|
||||
|
||||
@ -709,7 +709,7 @@ public class HebrewCalendar extends Calendar {
|
||||
|
||||
/**
|
||||
* Returns the number of days in the given Hebrew year
|
||||
* @stable ICU 2.0
|
||||
* @draft ICU 2.4
|
||||
*/
|
||||
protected int handleGetYearLength(int eyear) {
|
||||
return (int)(startOfYear(eyear+1) - startOfYear(eyear));
|
||||
@ -738,7 +738,7 @@ public class HebrewCalendar extends Calendar {
|
||||
* <p>In addition, subclasses should compute any subclass-specific
|
||||
* fields, that is, fields from BASE_FIELD_COUNT to
|
||||
* getFieldCount() - 1.
|
||||
* @stable ICU 2.0
|
||||
* @draft ICU 2.4
|
||||
*/
|
||||
protected void handleComputeFields(int julianDay) {
|
||||
long d = julianDay - 347997;
|
||||
@ -778,7 +778,7 @@ public class HebrewCalendar extends Calendar {
|
||||
//-------------------------------------------------------------------------
|
||||
|
||||
/**
|
||||
* @stable ICU 2.0
|
||||
* @draft ICU 2.4
|
||||
*/
|
||||
protected int handleGetExtendedYear() {
|
||||
int year;
|
||||
@ -792,7 +792,7 @@ public class HebrewCalendar extends Calendar {
|
||||
|
||||
/**
|
||||
* Return JD of start of given month/year.
|
||||
* @stable ICU 2.0
|
||||
* @draft ICU 2.4
|
||||
*/
|
||||
protected int handleComputeMonthStart(int eyear, int month, boolean useMonth) {
|
||||
|
||||
|
@ -5,8 +5,8 @@
|
||||
*******************************************************************************
|
||||
*
|
||||
* $Source: /xsrl/Nsvn/icu/icu4j/src/com/ibm/icu/util/IslamicCalendar.java,v $
|
||||
* $Date: 2002/12/05 01:25:34 $
|
||||
* $Revision: 1.15 $
|
||||
* $Date: 2002/12/18 19:35:07 $
|
||||
* $Revision: 1.16 $
|
||||
*
|
||||
*****************************************************************************************
|
||||
*/
|
||||
@ -72,7 +72,7 @@ import com.ibm.icu.util.CalendarAstronomer;
|
||||
*
|
||||
* @author Laura Werner
|
||||
* @author Alan Liu
|
||||
* @stable ICU 2.0
|
||||
* @draft ICU 2.4
|
||||
*/
|
||||
public class IslamicCalendar extends Calendar {
|
||||
|
||||
@ -84,73 +84,73 @@ public class IslamicCalendar extends Calendar {
|
||||
|
||||
/**
|
||||
* Constant for Muharram, the 1st month of the Islamic year.
|
||||
* @stable ICU 2.0
|
||||
* @draft ICU 2.4
|
||||
*/
|
||||
public static final int MUHARRAM = 0;
|
||||
|
||||
/**
|
||||
* Constant for Safar, the 2nd month of the Islamic year.
|
||||
* @stable ICU 2.0
|
||||
* @draft ICU 2.4
|
||||
*/
|
||||
public static final int SAFAR = 1;
|
||||
|
||||
/**
|
||||
* Constant for Rabi' al-awwal (or Rabi' I), the 3rd month of the Islamic year.
|
||||
* @stable ICU 2.0
|
||||
* @draft ICU 2.4
|
||||
*/
|
||||
public static final int RABI_1 = 2;
|
||||
|
||||
/**
|
||||
* Constant for Rabi' al-thani or (Rabi' II), the 4th month of the Islamic year.
|
||||
* @stable ICU 2.0
|
||||
* @draft ICU 2.4
|
||||
*/
|
||||
public static final int RABI_2 = 3;
|
||||
|
||||
/**
|
||||
* Constant for Jumada al-awwal or (Jumada I), the 5th month of the Islamic year.
|
||||
* @stable ICU 2.0
|
||||
* @draft ICU 2.4
|
||||
*/
|
||||
public static final int JUMADA_1 = 4;
|
||||
|
||||
/**
|
||||
* Constant for Jumada al-thani or (Jumada II), the 6th month of the Islamic year.
|
||||
* @stable ICU 2.0
|
||||
* @draft ICU 2.4
|
||||
*/
|
||||
public static final int JUMADA_2 = 5;
|
||||
|
||||
/**
|
||||
* Constant for Rajab, the 7th month of the Islamic year.
|
||||
* @stable ICU 2.0
|
||||
* @draft ICU 2.4
|
||||
*/
|
||||
public static final int RAJAB = 6;
|
||||
|
||||
/**
|
||||
* Constant for Sha'ban, the 8th month of the Islamic year.
|
||||
* @stable ICU 2.0
|
||||
* @draft ICU 2.4
|
||||
*/
|
||||
public static final int SHABAN = 7;
|
||||
|
||||
/**
|
||||
* Constant for Ramadan, the 9th month of the Islamic year.
|
||||
* @stable ICU 2.0
|
||||
* @draft ICU 2.4
|
||||
*/
|
||||
public static final int RAMADAN = 8;
|
||||
|
||||
/**
|
||||
* Constant for Shawwal, the 10th month of the Islamic year.
|
||||
* @stable ICU 2.0
|
||||
* @draft ICU 2.4
|
||||
*/
|
||||
public static final int SHAWWAL = 9;
|
||||
|
||||
/**
|
||||
* Constant for Dhu al-Qi'dah, the 11th month of the Islamic year.
|
||||
* @stable ICU 2.0
|
||||
* @draft ICU 2.4
|
||||
*/
|
||||
public static final int DHU_AL_QIDAH = 10;
|
||||
|
||||
/**
|
||||
* Constant for Dhu al-Hijjah, the 12th month of the Islamic year.
|
||||
* @stable ICU 2.0
|
||||
* @draft ICU 2.4
|
||||
*/
|
||||
public static final int DHU_AL_HIJJAH = 11;
|
||||
|
||||
@ -164,7 +164,7 @@ public class IslamicCalendar extends Calendar {
|
||||
/**
|
||||
* Constructs a default <code>IslamicCalendar</code> using the current time
|
||||
* in the default time zone with the default locale.
|
||||
* @stable ICU 2.0
|
||||
* @draft ICU 2.4
|
||||
*/
|
||||
public IslamicCalendar()
|
||||
{
|
||||
@ -175,7 +175,7 @@ public class IslamicCalendar extends Calendar {
|
||||
* Constructs an <code>IslamicCalendar</code> based on the current time
|
||||
* in the given time zone with the default locale.
|
||||
* @param zone the given time zone.
|
||||
* @stable ICU 2.0
|
||||
* @draft ICU 2.4
|
||||
*/
|
||||
public IslamicCalendar(TimeZone zone)
|
||||
{
|
||||
@ -187,7 +187,7 @@ public class IslamicCalendar extends Calendar {
|
||||
* in the default time zone with the given locale.
|
||||
*
|
||||
* @param aLocale the given locale.
|
||||
* @stable ICU 2.0
|
||||
* @draft ICU 2.4
|
||||
*/
|
||||
public IslamicCalendar(Locale aLocale)
|
||||
{
|
||||
@ -200,7 +200,7 @@ public class IslamicCalendar extends Calendar {
|
||||
*
|
||||
* @param zone the given time zone.
|
||||
* @param aLocale the given locale.
|
||||
* @stable ICU 2.0
|
||||
* @draft ICU 2.4
|
||||
*/
|
||||
public IslamicCalendar(TimeZone zone, Locale aLocale)
|
||||
{
|
||||
@ -213,7 +213,7 @@ public class IslamicCalendar extends Calendar {
|
||||
* in the default time zone with the default locale.
|
||||
*
|
||||
* @param date The date to which the new calendar is set.
|
||||
* @stable ICU 2.0
|
||||
* @draft ICU 2.4
|
||||
*/
|
||||
public IslamicCalendar(Date date) {
|
||||
super(TimeZone.getDefault(), Locale.getDefault());
|
||||
@ -228,7 +228,7 @@ public class IslamicCalendar extends Calendar {
|
||||
* @param month the value used to set the {@link #MONTH MONTH} time field in the calendar.
|
||||
* Note that the month value is 0-based. e.g., 0 for Muharram.
|
||||
* @param date the value used to set the {@link #DATE DATE} time field in the calendar.
|
||||
* @stable ICU 2.0
|
||||
* @draft ICU 2.4
|
||||
*/
|
||||
public IslamicCalendar(int year, int month, int date)
|
||||
{
|
||||
@ -252,7 +252,7 @@ public class IslamicCalendar extends Calendar {
|
||||
* in the calendar.
|
||||
* @param second the value used to set the {@link #SECOND SECOND} time field
|
||||
* in the calendar.
|
||||
* @stable ICU 2.0
|
||||
* @draft ICU 2.4
|
||||
*/
|
||||
public IslamicCalendar(int year, int month, int date, int hour,
|
||||
int minute, int second)
|
||||
@ -272,7 +272,7 @@ public class IslamicCalendar extends Calendar {
|
||||
*
|
||||
* @param beCivil <code>true</code> to use the civil calendar,
|
||||
* <code>false</code> to use the astronomical calendar.
|
||||
* @stable ICU 2.0
|
||||
* @draft ICU 2.4
|
||||
*/
|
||||
public void setCivil(boolean beCivil)
|
||||
{
|
||||
@ -290,7 +290,7 @@ public class IslamicCalendar extends Calendar {
|
||||
* Returns <code>true</code> if this object is using the fixed-cycle civil
|
||||
* calendar, or <code>false</code> if using the religious, astronomical
|
||||
* calendar.
|
||||
* @stable ICU 2.0
|
||||
* @draft ICU 2.4
|
||||
*/
|
||||
public boolean isCivil() {
|
||||
return civil;
|
||||
@ -328,7 +328,7 @@ public class IslamicCalendar extends Calendar {
|
||||
};
|
||||
|
||||
/**
|
||||
* @stable ICU 2.0
|
||||
* @draft ICU 2.4
|
||||
*/
|
||||
protected int handleGetLimit(int field, int limitType) {
|
||||
return LIMITS[field][limitType];
|
||||
@ -489,7 +489,7 @@ public class IslamicCalendar extends Calendar {
|
||||
*
|
||||
* @param year The hijri year
|
||||
* @param year The hijri month, 0-based
|
||||
* @stable ICU 2.0
|
||||
* @draft ICU 2.4
|
||||
*/
|
||||
protected int handleGetMonthLength(int extendedYear, int month) {
|
||||
|
||||
@ -509,7 +509,7 @@ public class IslamicCalendar extends Calendar {
|
||||
|
||||
/**
|
||||
* Return the number of days in the given Islamic year
|
||||
* @stable ICU 2.0
|
||||
* @draft ICU 2.4
|
||||
*/
|
||||
protected int handleGetYearLength(int extendedYear) {
|
||||
if (civil) {
|
||||
@ -526,7 +526,7 @@ public class IslamicCalendar extends Calendar {
|
||||
|
||||
// Return JD of start of given month/year
|
||||
/**
|
||||
* @stable ICU 2.0
|
||||
* @draft ICU 2.4
|
||||
*/
|
||||
protected int handleComputeMonthStart(int eyear, int month, boolean useMonth) {
|
||||
return (int) monthStart(eyear, month) + 1948439;
|
||||
@ -537,7 +537,7 @@ public class IslamicCalendar extends Calendar {
|
||||
//-------------------------------------------------------------------------
|
||||
|
||||
/**
|
||||
* @stable ICU 2.0
|
||||
* @draft ICU 2.4
|
||||
*/
|
||||
protected int handleGetExtendedYear() {
|
||||
int year;
|
||||
@ -563,7 +563,7 @@ public class IslamicCalendar extends Calendar {
|
||||
* The DAY_OF_WEEK and DOW_LOCAL fields are already set when this
|
||||
* method is called. The getGregorianXxx() methods return Gregorian
|
||||
* calendar equivalents for the given Julian day.
|
||||
* @stable ICU 2.0
|
||||
* @draft ICU 2.4
|
||||
*/
|
||||
protected void handleComputeFields(int julianDay) {
|
||||
int year, month, dayOfMonth, dayOfYear;
|
||||
|
@ -5,8 +5,8 @@
|
||||
*******************************************************************************
|
||||
*
|
||||
* $Source: /xsrl/Nsvn/icu/icu4j/src/com/ibm/icu/util/JapaneseCalendar.java,v $
|
||||
* $Date: 2002/12/05 01:25:38 $
|
||||
* $Revision: 1.12 $
|
||||
* $Date: 2002/12/18 19:35:07 $
|
||||
* $Revision: 1.13 $
|
||||
*
|
||||
*****************************************************************************************
|
||||
*/
|
||||
@ -44,7 +44,7 @@ import java.util.Locale;
|
||||
*
|
||||
* @author Laura Werner
|
||||
* @author Alan Liu
|
||||
* @stable ICU 2.0
|
||||
* @draft ICU 2.4
|
||||
*/
|
||||
public class JapaneseCalendar extends GregorianCalendar {
|
||||
|
||||
@ -57,7 +57,7 @@ public class JapaneseCalendar extends GregorianCalendar {
|
||||
/**
|
||||
* Constructs a default <code>JapaneseCalendar</code> using the current time
|
||||
* in the default time zone with the default locale.
|
||||
* @stable ICU 2.0
|
||||
* @draft ICU 2.4
|
||||
*/
|
||||
public JapaneseCalendar() {
|
||||
super();
|
||||
@ -67,7 +67,7 @@ public class JapaneseCalendar extends GregorianCalendar {
|
||||
* Constructs a <code>JapaneseCalendar</code> based on the current time
|
||||
* in the given time zone with the default locale.
|
||||
* @param zone the given time zone.
|
||||
* @stable ICU 2.0
|
||||
* @draft ICU 2.4
|
||||
*/
|
||||
public JapaneseCalendar(TimeZone zone) {
|
||||
super(zone);
|
||||
@ -77,7 +77,7 @@ public class JapaneseCalendar extends GregorianCalendar {
|
||||
* Constructs a <code>JapaneseCalendar</code> based on the current time
|
||||
* in the default time zone with the given locale.
|
||||
* @param aLocale the given locale.
|
||||
* @stable ICU 2.0
|
||||
* @draft ICU 2.4
|
||||
*/
|
||||
public JapaneseCalendar(Locale aLocale) {
|
||||
super(aLocale);
|
||||
@ -90,7 +90,7 @@ public class JapaneseCalendar extends GregorianCalendar {
|
||||
* @param zone the given time zone.
|
||||
*
|
||||
* @param aLocale the given locale.
|
||||
* @stable ICU 2.0
|
||||
* @draft ICU 2.4
|
||||
*/
|
||||
public JapaneseCalendar(TimeZone zone, Locale aLocale) {
|
||||
super(zone, aLocale);
|
||||
@ -101,7 +101,7 @@ public class JapaneseCalendar extends GregorianCalendar {
|
||||
* in the default time zone with the default locale.
|
||||
*
|
||||
* @param date The date to which the new calendar is set.
|
||||
* @stable ICU 2.0
|
||||
* @draft ICU 2.4
|
||||
*/
|
||||
public JapaneseCalendar(Date date) {
|
||||
this();
|
||||
@ -128,7 +128,7 @@ public class JapaneseCalendar extends GregorianCalendar {
|
||||
* The value is 0-based. e.g., 0 for January.
|
||||
*
|
||||
* @param date The value used to set the calendar's DATE field.
|
||||
* @stable ICU 2.0
|
||||
* @draft ICU 2.4
|
||||
*/
|
||||
public JapaneseCalendar(int era, int year, int month, int date) {
|
||||
super(year, month, date);
|
||||
@ -147,7 +147,7 @@ public class JapaneseCalendar extends GregorianCalendar {
|
||||
* The value is 0-based. e.g., 0 for January.
|
||||
*
|
||||
* @param date The value used to set the calendar's {@link #DATE DATE} field.
|
||||
* @stable ICU 2.0
|
||||
* @draft ICU 2.4
|
||||
*/
|
||||
public JapaneseCalendar(int year, int month, int date) {
|
||||
super(year, month, date);
|
||||
@ -172,7 +172,7 @@ public class JapaneseCalendar extends GregorianCalendar {
|
||||
* @param minute The value used to set the calendar's {@link #MINUTE MINUTE} time field.
|
||||
*
|
||||
* @param second The value used to set the calendar's {@link #SECOND SECOND} time field.
|
||||
* @stable ICU 2.0
|
||||
* @draft ICU 2.4
|
||||
*/
|
||||
public JapaneseCalendar(int year, int month, int date, int hour,
|
||||
int minute, int second)
|
||||
@ -184,7 +184,7 @@ public class JapaneseCalendar extends GregorianCalendar {
|
||||
//-------------------------------------------------------------------------
|
||||
|
||||
/**
|
||||
* @stable ICU 2.0
|
||||
* @draft ICU 2.4
|
||||
*/
|
||||
protected int handleGetExtendedYear() {
|
||||
int year;
|
||||
@ -200,7 +200,7 @@ public class JapaneseCalendar extends GregorianCalendar {
|
||||
}
|
||||
|
||||
/**
|
||||
* @stable ICU 2.0
|
||||
* @draft ICU 2.4
|
||||
*/
|
||||
protected void handleComputeFields(int julianDay) {
|
||||
super.handleComputeFields(julianDay);
|
||||
@ -495,31 +495,31 @@ public class JapaneseCalendar extends GregorianCalendar {
|
||||
|
||||
// Constant for the current era. This must be regularly updated.
|
||||
/**
|
||||
* @stable ICU 2.0
|
||||
* @draft ICU 2.4
|
||||
*/
|
||||
static public final int CURRENT_ERA = (ERAS.length / 3) - 1;
|
||||
|
||||
/**
|
||||
* Constant for the era starting on Sept. 8, 1868 AD.
|
||||
* @stable ICU 2.0
|
||||
* @draft ICU 2.4
|
||||
*/
|
||||
static public final int MEIJI = CURRENT_ERA - 3;
|
||||
|
||||
/**
|
||||
* Constant for the era starting on July 30, 1912 AD.
|
||||
* @stable ICU 2.0
|
||||
* @draft ICU 2.4
|
||||
*/
|
||||
static public final int TAISHO = CURRENT_ERA - 2;
|
||||
|
||||
/**
|
||||
* Constant for the era starting on Dec. 25, 1926 AD.
|
||||
* @stable ICU 2.0
|
||||
* @draft ICU 2.4
|
||||
*/
|
||||
static public final int SHOWA = CURRENT_ERA - 1;
|
||||
|
||||
/**
|
||||
* Constant for the era starting on Jan. 7, 1989 AD.
|
||||
* @stable ICU 2.0
|
||||
* @draft ICU 2.4
|
||||
*/
|
||||
static public final int HEISEI = CURRENT_ERA;
|
||||
|
||||
@ -540,7 +540,7 @@ public class JapaneseCalendar extends GregorianCalendar {
|
||||
* Override GregorianCalendar. We should really handle YEAR_WOY and
|
||||
* EXTENDED_YEAR here too to implement the 1..5000000 range, but it's
|
||||
* not critical.
|
||||
* @stable ICU 2.0
|
||||
* @draft ICU 2.4
|
||||
*/
|
||||
protected int handleGetLimit(int field, int limitType) {
|
||||
switch (field) {
|
||||
|
Loading…
Reference in New Issue
Block a user