Enum Class Nengo.Selector
- All Implemented Interfaces:
Serializable
,Comparable<Nengo.Selector>
,java.lang.constant.Constable
,Predicate<Nengo>
,ChronoCondition<Nengo>
- Enclosing class:
- Nengo
Represents a strategy how to select nengos.
- Since:
- 3.30/4.26
- Author:
- Meno Hochschild
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionSelects all nengos of the Asuka period (538-710).Selects all nengos of the Azuchi-Momoyama period (1573-1603).Selects all nengos of the Edo period (1603-1868).Selects all nengos of the Heian period (794-1185).Selects all nengos of the Kamakura period (1185-1332).Selects only nengos from Meiji onwards (introduction of japanese-gregorian calendar in year 1873 = Meiji 6).Selects all nengos of the Muromachi period (1336-1573).Selects all nengos of the Nara period (710-794).Selects the nengos of the northern court only (during the Nanboku-chō period 1336-1392 and in addition, the nengo Shōkei (1332)).Selects all nengos with the exception of those of the northern court in the Nanboku-chō period (1336-1392).Selects the nengos of the southern court only (during the Nanboku-chō period 1336-1392). -
Method Summary
Modifier and TypeMethodDescriptionstatic Nengo.Selector
Returns the enum constant of this class with the specified name.static Nengo.Selector[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
Methods inherited from interface net.time4j.engine.ChronoCondition
test
-
Enum Constant Details
-
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.
-
MODERN
Selects only nengos from Meiji onwards (introduction of japanese-gregorian calendar in year 1873 = Meiji 6).
-
EDO_PERIOD
Selects all nengos of the Edo period (1603-1868).
See also Wikipedia.
-
AZUCHI_MOMOYAMA_PERIOD
Selects all nengos of the Azuchi-Momoyama period (1573-1603).
See also Wikipedia.
-
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.
-
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.
-
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.
-
KAMAKURA_PERIOD
Selects all nengos of the Kamakura period (1185-1332).
See also Wikipedia
-
HEIAN_PERIOD
Selects all nengos of the Heian period (794-1185).
See also Wikipedia
-
NARA_PERIOD
Selects all nengos of the Nara period (710-794).
See also Wikipedia
-
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.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-