Enum CalType

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<CalType>

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

      • 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 Detail

      • id

        java.lang.String id
    • Constructor Detail

      • CalType

        private CalType​(java.lang.String id)
    • Method Detail

      • values

        public static CalType[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (CalType c : CalType.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static CalType valueOf​(java.lang.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:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • getId

        public java.lang.String getId()