Enum Class Nengo.Selector

java.lang.Object
java.lang.Enum<Nengo.Selector>
net.time4j.calendar.Nengo.Selector
All Implemented Interfaces:
Serializable, Comparable<Nengo.Selector>, java.lang.constant.Constable, Predicate<Nengo>, ChronoCondition<Nengo>
Enclosing class:
Nengo

public static enum Nengo.Selector extends Enum<Nengo.Selector> implements ChronoCondition<Nengo>

Represents a strategy how to select nengos.

Since:
3.30/4.26
Author:
Meno Hochschild
  • Enum Constant Details

    • OFFICIAL

      public 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.

    • MODERN

      public static final Nengo.Selector MODERN

      Selects only nengos from Meiji onwards (introduction of japanese-gregorian calendar in year 1873 = Meiji 6).

    • EDO_PERIOD

      public static final Nengo.Selector EDO_PERIOD

      Selects all nengos of the Edo period (1603-1868).

      See also Wikipedia.

    • AZUCHI_MOMOYAMA_PERIOD

      public static final Nengo.Selector AZUCHI_MOMOYAMA_PERIOD

      Selects all nengos of the Azuchi-Momoyama period (1573-1603).

      See also Wikipedia.

    • MUROMACHI_PERIOD

      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.

    • NORTHERN_COURT

      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.

    • SOUTHERN_COURT

      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.

    • KAMAKURA_PERIOD

      public static final Nengo.Selector KAMAKURA_PERIOD

      Selects all nengos of the Kamakura period (1185-1332).

      See also Wikipedia

    • HEIAN_PERIOD

      public static final Nengo.Selector HEIAN_PERIOD

      Selects all nengos of the Heian period (794-1185).

      See also Wikipedia

    • NARA_PERIOD

      public static final Nengo.Selector NARA_PERIOD

      Selects all nengos of the Nara period (710-794).

      See also Wikipedia

    • ASUKA_PERIOD

      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.

  • Method Details

    • values

      public static Nengo.Selector[] 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

      public static Nengo.Selector valueOf(String name)
      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 name
      NullPointerException - if the argument is null