Enum CalType

java.lang.Object
java.lang.Enum<CalType>
com.ibm.icu.impl.CalType
All Implemented Interfaces:
Serializable, Comparable<CalType>, java.lang.constant.Constable

public enum CalType extends Enum<CalType>
Calendar type enum, moved from com.ibm.icu.util.Calendar.
  • Enum Constant Details

    • GREGORIAN

      public static final CalType GREGORIAN
    • ISO8601

      public static final CalType ISO8601
    • BUDDHIST

      public static final CalType BUDDHIST
    • CHINESE

      public static final CalType CHINESE
    • COPTIC

      public static final CalType COPTIC
    • DANGI

      public static final CalType DANGI
    • ETHIOPIC

      public static final CalType ETHIOPIC
    • ETHIOPIC_AMETE_ALEM

      public static final CalType ETHIOPIC_AMETE_ALEM
    • HEBREW

      public static final CalType HEBREW
    • INDIAN

      public static final CalType INDIAN
    • ISLAMIC

      public static final CalType ISLAMIC
    • ISLAMIC_CIVIL

      public static final CalType ISLAMIC_CIVIL
    • ISLAMIC_RGSA

      public static final CalType ISLAMIC_RGSA
    • ISLAMIC_TBLA

      public static final CalType ISLAMIC_TBLA
    • ISLAMIC_UMALQURA

      public static final CalType ISLAMIC_UMALQURA
    • JAPANESE

      public static final CalType JAPANESE
    • PERSIAN

      public static final CalType PERSIAN
    • ROC

      public static final CalType ROC
  • Field Details

  • Constructor Details

    • CalType

      private CalType(String id)
  • Method Details

    • values

      public static CalType[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static CalType valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
      NullPointerException - if the argument is null
    • getId

      public String getId()