@FunctionalInterface public interface EastAsianYear
Represents a way to specify the year used in Chinese calendar and its derivates.
CyclicYear.inQingDynasty(ChineseEra),
CyclicYear.inCycle(int)| Modifier and Type | Method and Description |
|---|---|
static EastAsianYear |
forDangi(int dangiYear)
Determines the East Asian year corresponding to given dangi year
which starts counting in year BC 2333 or later.
|
static EastAsianYear |
forGregorian(int relatedGregorianYear)
Determines the East Asian year corresponding to given related gregorian year.
|
static EastAsianYear |
forJuche(int jucheYear)
Determines the East Asian year corresponding to given Juche year
which starts counting in gregorian year 1912 or later.
|
static EastAsianYear |
forMinguo(int minguoYear)
Determines the East Asian year corresponding to given minguo year
which starts counting in gregorian year 1912 or later.
|
default int |
getCycle()
Determines the number of associated sexagesimal year cycle.
|
int |
getElapsedCyclicYears()
Marks the traditional introduction date of sexagesimal cyclic years in Julian year 2637 BCE
by the legendary yellow emperor Huang-di.
|
default CyclicYear |
getYearOfCycle()
Determines the cyclic year.
|
static EastAsianYear forGregorian(int relatedGregorianYear)
Determines the East Asian year corresponding to given related gregorian year.
relatedGregorianYear - the gregorian calendar year which contains the first day of East Asian yearstatic EastAsianYear forMinguo(int minguoYear)
Determines the East Asian year corresponding to given minguo year which starts counting in gregorian year 1912 or later.
Used in Taiwan.
minguoYear - the minguo year which contains the first day of East Asian yearIllegalArgumentException - if the year is smaller than 1static EastAsianYear forDangi(int dangiYear)
Determines the East Asian year corresponding to given dangi year which starts counting in year BC 2333 or later.
dangiYear - the dangi year which contains the first day of East Asian yearIllegalArgumentException - if the year is smaller than 1KoreanErastatic EastAsianYear forJuche(int jucheYear)
Determines the East Asian year corresponding to given Juche year which starts counting in gregorian year 1912 or later.
Used in North Korea.
jucheYear - the Juche year which contains the first day of East Asian yearIllegalArgumentException - if the year is smaller than 1KoreanEradefault int getCycle()
Determines the number of associated sexagesimal year cycle.
default CyclicYear getYearOfCycle()
Determines the cyclic year.
int getElapsedCyclicYears()
Copyright © 2014–2021. All rights reserved.