Enum Class CalendarField

java.lang.Object
java.lang.Enum<CalendarField>
com.landawn.abacus.util.CalendarField
All Implemented Interfaces:
Serializable, Comparable<CalendarField>, Constable

public enum CalendarField extends Enum<CalendarField>
The Enum CalendarUnit.
Since:
0.8
Author:
Haiyang Li
  • Nested Class Summary

    Nested classes/interfaces inherited from class java.lang.Enum

    Enum.EnumDesc<E extends Enum<E>>
  • Enum Constant Summary

    Enum Constants
    Enum Constant
    Description
    it has the same int value (5) as Calendar.DATE and Calendar.DAY_OF_MONTH
    it has the same int value as Calendar.HOUR_OF_DAY
    it has the same int value as Calendar.MILLISECOND
    it has the same int value as Calendar.MINUTE
    it has the same int value as Calendar.MONTH
    it has the same int value as Calendar.SECOND
    it has the same int value as Calendar.WEEK_OF_YEAR
    it has the same int value as Calendar.YEAR
  • Method Summary

    Modifier and Type
    Method
    Description
    int
     
    valueOf(int intValue)
    Returns the enum constant of this class with the specified name.
    Returns the enum constant of this class with the specified name.
    static CalendarField[]
    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 class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

  • Method Details

    • values

      public static CalendarField[] 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 CalendarField 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
    • valueOf

      public static CalendarField valueOf(int intValue)
      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:
      intValue - 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
    • value

      public int value()
      Returns: