Enum Class DateMonth

java.lang.Object
java.lang.Enum<DateMonth>
org.gnome.glib.DateMonth
All Implemented Interfaces:
Serializable, Comparable<DateMonth>, Constable, Enumeration

@Generated("org.javagi.JavaGI") public enum DateMonth extends Enum<DateMonth> implements Enumeration
Enumeration representing a month; values are JANUARY, FEBRUARY, etc. BAD_MONTH is the invalid value.
  • Enum Constant Details

    • BAD_MONTH

      public static final DateMonth BAD_MONTH
      invalid value
    • JANUARY

      public static final DateMonth JANUARY
      January
    • FEBRUARY

      public static final DateMonth FEBRUARY
      February
    • MARCH

      public static final DateMonth MARCH
      March
    • APRIL

      public static final DateMonth APRIL
      April
    • MAY

      public static final DateMonth MAY
      May
    • JUNE

      public static final DateMonth JUNE
      June
    • JULY

      public static final DateMonth JULY
      July
    • AUGUST

      public static final DateMonth AUGUST
      August
    • SEPTEMBER

      public static final DateMonth SEPTEMBER
      September
    • OCTOBER

      public static final DateMonth OCTOBER
      October
    • NOVEMBER

      public static final DateMonth NOVEMBER
      November
    • DECEMBER

      public static final DateMonth DECEMBER
      December
  • Method Details

    • values

      public static DateMonth[] 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 DateMonth 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
    • of

      public static DateMonth of(int value)
      Create a new DateMonth for the provided value
      Parameters:
      value - the enum value
      Returns:
      the enum for the provided value
    • getValue

      public int getValue()
      Get the numeric value of this enum
      Specified by:
      getValue in interface Enumeration
      Returns:
      the enum value
    • of

      public static DateMonth of(MemorySegment address)
      Create a new DateMonth for the value in the provided memory address.
      Parameters:
      address - the memory address holding a enum value
      Returns:
      the enum for the value in the provided memory address