abstract class BasicGJChronology extends BasicChronology
BasicGJChronology is thread-safe and immutable, and all subclasses must be as well.
AssembledChronology.Fields| Modifier and Type | Field and Description |
|---|---|
private static long |
FEB_29 |
private static int[] |
MAX_DAYS_PER_MONTH_ARRAY |
private static long[] |
MAX_TOTAL_MILLIS_BY_MONTH_ARRAY |
private static int[] |
MIN_DAYS_PER_MONTH_ARRAY |
private static long[] |
MIN_TOTAL_MILLIS_BY_MONTH_ARRAY |
private static long |
serialVersionUID
Serialization lock
|
| Constructor and Description |
|---|
BasicGJChronology(Chronology base,
java.lang.Object param,
int minDaysInFirstWeek)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
(package private) int |
getDaysInMonthMax(int month)
Gets the maximum days in the specified month.
|
(package private) int |
getDaysInMonthMaxForSet(long instant,
int value)
Gets the maximum number of days in the month specified by the instant.
|
(package private) int |
getDaysInYearMonth(int year,
int month)
Gets the number of days in the specified month and year.
|
(package private) int |
getMonthOfYear(long millis,
int year) |
(package private) long |
getTotalMillisByYearMonth(int year,
int month)
Gets the total number of millis elapsed in this year at the start
of the specified month, such as zero for month 1.
|
(package private) long |
getYearDifference(long minuendInstant,
long subtrahendInstant)
Gets the difference between the two instants in years.
|
(package private) boolean |
isLeapDay(long instant)
Is the specified instant a leap day?
|
(package private) long |
setYear(long instant,
int year)
Sets the year from an instant and year.
|
assemble, calculateFirstDayOfYearMillis, equals, getApproxMillisAtEpochDividedByTwo, getAverageMillisPerMonth, getAverageMillisPerYear, getAverageMillisPerYearDividedByTwo, getDateMidnightMillis, getDateTimeMillis, getDateTimeMillis, getDayOfMonth, getDayOfMonth, getDayOfMonth, getDayOfWeek, getDayOfYear, getDayOfYear, getDaysInMonthMax, getDaysInMonthMax, getDaysInYear, getDaysInYearMax, getFirstWeekOfYearMillis, getMaxMonth, getMaxMonth, getMaxYear, getMillisOfDay, getMinimumDaysInFirstWeek, getMinYear, getMonthOfYear, getWeekOfWeekyear, getWeekOfWeekyear, getWeeksInYear, getWeekyear, getYear, getYearMillis, getYearMonthDayMillis, getYearMonthMillis, getZone, hashCode, isLeapYear, toStringcenturies, centuryOfEra, clockhourOfDay, clockhourOfHalfday, dayOfMonth, dayOfWeek, dayOfYear, days, era, eras, getBase, getDateTimeMillis, getParam, halfdayOfDay, halfdays, hourOfDay, hourOfHalfday, hours, millis, millisOfDay, millisOfSecond, minuteOfDay, minuteOfHour, minutes, monthOfYear, months, secondOfDay, secondOfMinute, seconds, weekOfWeekyear, weeks, weekyear, weekyearOfCentury, weekyears, year, yearOfCentury, yearOfEra, yearsprivate static final long serialVersionUID
private static final int[] MIN_DAYS_PER_MONTH_ARRAY
private static final int[] MAX_DAYS_PER_MONTH_ARRAY
private static final long[] MIN_TOTAL_MILLIS_BY_MONTH_ARRAY
private static final long[] MAX_TOTAL_MILLIS_BY_MONTH_ARRAY
private static final long FEB_29
BasicGJChronology(Chronology base, java.lang.Object param, int minDaysInFirstWeek)
boolean isLeapDay(long instant)
BasicChronologyisLeapDay in class BasicChronologyinstant - the instant to testint getMonthOfYear(long millis,
int year)
getMonthOfYear in class BasicChronologymillis - from 1970-01-01T00:00:00Zyear - precalculated year of millisint getDaysInYearMonth(int year,
int month)
getDaysInYearMonth in class BasicChronologyyear - the yearmonth - the monthint getDaysInMonthMax(int month)
BasicChronologygetDaysInMonthMax in class BasicChronologymonth - the monthint getDaysInMonthMaxForSet(long instant,
int value)
BasicChronologygetDaysInMonthMaxForSet in class BasicChronologyinstant - millis from 1970-01-01T00:00:00Zvalue - the value being setlong getTotalMillisByYearMonth(int year,
int month)
BasicChronologygetTotalMillisByYearMonth in class BasicChronologyyear - the yearmonth - the monthlong getYearDifference(long minuendInstant,
long subtrahendInstant)
BasicChronologygetYearDifference in class BasicChronologyminuendInstant - the first instantsubtrahendInstant - the second instantlong setYear(long instant,
int year)
BasicChronologysetYear in class BasicChronologyinstant - millis from 1970-01-01T00:00:00Zyear - the year to set