Enum Class BadiEra

java.lang.Object
java.lang.Enum<BadiEra>
net.time4j.calendar.bahai.BadiEra
All Implemented Interfaces:
Serializable, Comparable<BadiEra>, java.lang.constant.Constable, CalendarEra

public enum BadiEra extends Enum<BadiEra> implements CalendarEra

The Badi calendar only supports one single era which is related to the gregorian date of 21st of March in year 1844.

Since:
5.3
Author:
Meno Hochschild
  • Enum Constant Details

    • BAHAI

      public static final BadiEra BAHAI
      Singleton instance.
  • Method Details

    • values

      public static BadiEra[] 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 BadiEra 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
    • getDisplayName

      public String getDisplayName(Locale locale, TextWidth width)

      Gets the description text dependent on the locale.

      Parameters:
      locale - language setting
      width - text width
      Returns:
      descriptive text for given locale and width (never null)