枚举 Month

java.lang.Object
java.lang.Enum<Month>
cn.vorbote.core.constants.Month
所有已实现的接口:
IConstant<Integer>, Serializable, Comparable<Month>, java.lang.constant.Constable

public enum Month extends Enum<Month> implements IConstant<Integer>
Month constant values.
作者:
vorbote
  • 枚举常量详细资料

    • JANUARY

      public static final Month JANUARY
      Constant value January
    • FEBRUARY

      public static final Month FEBRUARY
      Constant value FEBRUARY
    • MARCH

      public static final Month MARCH
      Constant value MARCH
    • APRIL

      public static final Month APRIL
      Constant value APRIL
    • MAY

      public static final Month MAY
      Constant value MAY
    • JUNE

      public static final Month JUNE
      Constant value JUNE
    • JULY

      public static final Month JULY
      Constant value JULY
    • AUGUST

      public static final Month AUGUST
      Constant value AUGUST
    • SEPTEMBER

      public static final Month SEPTEMBER
      Constant value SEPTEMBER
    • OCTOBER

      public static final Month OCTOBER
      Constant value OCTOBER
    • NOVEMBER

      public static final Month NOVEMBER
      Constant value NOVEMBER
    • DECEMBER

      public static final Month DECEMBER
      Constant value DECEMBER
  • 方法详细资料

    • values

      public static Month[] values()
      按照声明该枚举类型的常量的顺序, 返回一个包含这些常量的数组。
      返回:
      按照声明该枚举类型的常量的顺序返回的包含这些常量的数组
    • valueOf

      public static Month valueOf(String name)
      返回带有指定名称的该类型的枚举常量。 字符串必须与用于声明该类型的枚举常量的 标识符完全匹配。(不允许有多余 的空格字符。)
      参数:
      name - 要返回的枚举常量的名称。
      返回:
      返回带有指定名称的枚举常量
      抛出:
      IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量
      NullPointerException - 如果参数为空值
    • getValue

      public int getValue()
      Get the month value.
      返回:
      The month value.
    • get

      public Integer get()
      Get the instance value of this constant value.
      指定者:
      get 在接口中 IConstant<Integer>
      返回:
      The instance value of this constant value.
    • isCorrectValue

      public boolean isCorrectValue(Integer value)
      Check whether the provided value is a correct value of this enumeration.
      指定者:
      isCorrectValue 在接口中 IConstant<Integer>
      参数:
      value - The value to check.
      返回:
      Value true if the value is one of these enumerations.