Enum Class AncientCalendarTypes

java.lang.Object
java.lang.Enum<AncientCalendarTypes>
net.okapia.osid.primordium.types.calendar.AncientCalendarTypes
All Implemented Interfaces:
Serializable, Comparable<AncientCalendarTypes>, Constable, net.okapia.osid.torrefacto.collect.TypeEnum

public enum AncientCalendarTypes extends Enum<AncientCalendarTypes> implements net.okapia.osid.torrefacto.collect.TypeEnum
An enumeration of very old Calendar Types.
  • Enum Constant Details

  • Method Details

    • values

      public static AncientCalendarTypes[] 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 AncientCalendarTypes 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
    • getType

      public Type getType()
      Gets the Type.
      Specified by:
      getType in interface net.okapia.osid.torrefacto.collect.TypeEnum
      Returns:
      the Type
    • getDefinitionClass

      public Class<? extends CalendarInfo> getDefinitionClass()
      Gets the CalendarInfo class (in calendaring/historical) that implements this calendar, or null if none is provided.
      Returns:
      the definition class, or null
    • isDeterministic

      public boolean isDeterministic()
      Tests whether this calendar's rule is deterministic -- a complete, proleptic algorithm. Most ancient calendars are false -- observational or reconstructed with gaps -- but the arithmetic ones (a fixed vague year, a Julian-based reckoning, or a continuous count) are true. A deterministic calendar is a candidate for day-number conversion; whether a converter exists is answered by DateTimeConverter.
      Returns:
      true if the calendar's rule is deterministic