public static enum Nengo.Selector extends Enum<Nengo.Selector> implements ChronoCondition<Nengo>
Represents a strategy how to select nengos.
| Enum Constant and Description |
|---|
ASUKA_PERIOD
Selects all nengos of the Asuka period (538-710).
|
AZUCHI_MOMOYAMA_PERIOD
Selects all nengos of the Azuchi-Momoyama period (1573-1603).
|
EDO_PERIOD
Selects all nengos of the Edo period (1603-1868).
|
HEIAN_PERIOD
Selects all nengos of the Heian period (794-1185).
|
KAMAKURA_PERIOD
Selects all nengos of the Kamakura period (1185-1332).
|
MODERN
Selects only nengos from Meiji onwards (introduction of japanese-gregorian
calendar in year 1873 = Meiji 6).
|
MUROMACHI_PERIOD
Selects all nengos of the Muromachi period (1336-1573).
|
NARA_PERIOD
Selects all nengos of the Nara period (710-794).
|
NORTHERN_COURT
Selects the nengos of the northern court only (during the Nanboku-chō period 1336-1392
and in addition, the nengo Shōkei (1332)).
|
OFFICIAL
Selects all nengos with the exception of those of the northern court
in the Nanboku-chō period (1336-1392).
|
SOUTHERN_COURT
Selects the nengos of the southern court only (during the Nanboku-chō period 1336-1392).
|
| Modifier and Type | Method and Description |
|---|---|
static Nengo.Selector |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Nengo.Selector[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOftestpublic static final Nengo.Selector OFFICIAL
Selects all nengos with the exception of those of the northern court in the Nanboku-chō period (1336-1392).
This selector is the default.
public static final Nengo.Selector MODERN
Selects only nengos from Meiji onwards (introduction of japanese-gregorian calendar in year 1873 = Meiji 6).
public static final Nengo.Selector EDO_PERIOD
Selects all nengos of the Edo period (1603-1868).
See also Wikipedia.
public static final Nengo.Selector AZUCHI_MOMOYAMA_PERIOD
Selects all nengos of the Azuchi-Momoyama period (1573-1603).
See also Wikipedia.
public static final Nengo.Selector MUROMACHI_PERIOD
Selects all nengos of the Muromachi period (1336-1573).
See also Wikipedia. The nengos of the Kenmu-restoration do not belong to this period. Furthermore, all nengos of the northern court are excluded because otherwise a historical order of generated lists is hard to achieve.
public static final Nengo.Selector NORTHERN_COURT
Selects the nengos of the northern court only (during the Nanboku-chō period 1336-1392 and in addition, the nengo Shōkei (1332)).
The northern variant of the Nengo Kenmu (Kenmu restoration) is also matched by this selector.
public static final Nengo.Selector SOUTHERN_COURT
Selects the nengos of the southern court only (during the Nanboku-chō period 1336-1392).
The southern variant of the Nengo Kenmu (Kenmu restoration) is also matched by this selector. Historical note: The last year 10 of nengo Genchū was then replaced by Meitoku 4.
public static final Nengo.Selector KAMAKURA_PERIOD
Selects all nengos of the Kamakura period (1185-1332).
See also Wikipedia
public static final Nengo.Selector HEIAN_PERIOD
Selects all nengos of the Heian period (794-1185).
See also Wikipedia
public static final Nengo.Selector NARA_PERIOD
Selects all nengos of the Nara period (710-794).
See also Wikipedia
public static final Nengo.Selector ASUKA_PERIOD
Selects all nengos of the Asuka period (538-710).
See also Wikipedia. Time4J only supports the last three nengos of this period because the historical data are not exactly known and there were also historical gaps in nengo counting.
public static Nengo.Selector[] values()
for (Nengo.Selector c : Nengo.Selector.values()) System.out.println(c);
public static Nengo.Selector valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2014–2021. All rights reserved.