| Package | Description |
|---|---|
| net.time4j.calendar |
Support for various regional calendars.
|
| Modifier and Type | Field and Description |
|---|---|
static Nengo |
Nengo.HEISEI
Heisei is valid from 1989-01-08 until 2019-04-30 (emperor Akihito).
|
static Nengo |
Nengo.MEIJI
Meji is valid from year 1868 until 1912-07-29.
|
static Nengo |
Nengo.NEWEST
The newest known nengo.
|
static Nengo |
Nengo.REIWA
Reiwa is valid from 2019-05-01 onwards (emperor Naruhito).
|
static Nengo |
Nengo.SHOWA
Shōwa is valid from 1926-12-25 until 1989-01-07.
|
static Nengo |
Nengo.TAISHO
Taishō is valid from 1912-07-30 until 1926-12-24.
|
| Modifier and Type | Field and Description |
|---|---|
static TextElement<Nengo> |
JapaneseCalendar.ERA
Represents the Japanese era (nengo).
|
| Modifier and Type | Method and Description |
|---|---|
Nengo |
JapaneseCalendar.getEra()
Yields the Japanese era (nengo).
|
static Nengo |
Nengo.ofKanji(String kanji)
Tries to find a suitable nengo for given japanese kanji representation.
|
static Nengo |
Nengo.ofRelatedGregorianYear(int year)
Obtains the official nengo for given related gregorian year.
|
static Nengo |
Nengo.ofRelatedGregorianYear(int year,
Nengo.Selector selector)
Obtains the nengo for given related gregorian year and selector strategy.
|
| Modifier and Type | Method and Description |
|---|---|
Optional<Nengo> |
Nengo.findNext()
Tries to find the next nengo in chronological order.
|
Optional<Nengo> |
Nengo.findPrevious()
Tries to find the previous nengo in chronological order.
|
static List<Nengo> |
Nengo.list()
Obtains a list of all official nengos in chronological ascending order.
|
static List<Nengo> |
Nengo.list(Nengo.Selector selector)
Obtains a list of all nengos in chronological ascending order selected by given selector.
|
static List<Nengo> |
Nengo.parseRomaji(String romaji)
Tries to find suitable nengos for given representation in romaji.
|
static Stream<Nengo> |
Nengo.stream()
Obtains a stream of all official nengos in chronological ascending order.
|
static Stream<Nengo> |
Nengo.stream(Nengo.Selector selector)
Obtains a stream of all nengos in chronological ascending order selected by given selector.
|
| Modifier and Type | Method and Description |
|---|---|
static JapaneseCalendar |
JapaneseCalendar.of(Nengo nengo,
int yearOfNengo,
EastAsianMonth month,
int dayOfMonth)
Equivalent to
JapaneseCalendar.of(nengo, yearOfNengo, month, dayOfMonth, Leniency.SMART). |
static JapaneseCalendar |
JapaneseCalendar.of(Nengo nengo,
int yearOfNengo,
EastAsianMonth month,
int dayOfMonth,
Leniency leniency)
Creates a new instance of a Japanese calendar date.
|
static JapaneseCalendar |
JapaneseCalendar.ofGregorian(Nengo nengo,
int yearOfNengo,
int month,
int dayOfMonth)
Creates a modern Japanese calendar for all dates since Meiji 6 (gregorian calendar rules).
|
Copyright © 2014–2021. All rights reserved.