Enum DateCalendarEnum

java.lang.Object
java.lang.Enum<DateCalendarEnum>
org.apache.calcite.util.format.postgresql.DateCalendarEnum
All Implemented Interfaces:
Serializable, Comparable<DateCalendarEnum>, Constable

public enum DateCalendarEnum extends Enum<DateCalendarEnum>
Calendar types that can be used in PostgreSQL datetime formats.
  • Enum Constant Details

  • Method Details

    • values

      public static DateCalendarEnum[] 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 DateCalendarEnum 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
    • isCalendarCompatible

      public boolean isCalendarCompatible(DateCalendarEnum otherCalendar)
      Tests if the provided calendar is compatible with this calendar.
      Parameters:
      otherCalendar - calendar to test with this
      Returns:
      whether the provided calendar is compatible with this