Enum Class CountingCalendarTypes

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

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

    • ANSI

      public static final CountingCalendarTypes ANSI
      ANSI date, days since 1601-01-01
    • DUBLIN_JULIAN_DAY

      public static final CountingCalendarTypes DUBLIN_JULIAN_DAY
      Dublin Julian Day, Julian Day less 2415020 (from 1900)
    • JULIAN_DAY

      public static final CountingCalendarTypes JULIAN_DAY
      Julian Day, days since noon 4713 BC (proleptic Julian)
    • LILIAN

      public static final CountingCalendarTypes LILIAN
      Lilian date, days since the Gregorian reform (1582-10-15)
    • MODIFIED_JULIAN_DAY

      public static final CountingCalendarTypes MODIFIED_JULIAN_DAY
      Modified Julian Day, Julian Day less 2400000.5 (from 1858)
    • REDUCED_JULIAN_DAY

      public static final CountingCalendarTypes REDUCED_JULIAN_DAY
      Reduced Julian Day, Julian Day less 2400000
    • RATA_DIE

      public static final CountingCalendarTypes RATA_DIE
      Rata Die, days since the proleptic Gregorian epoch (0001-01-01)
    • TRUNCATED_JULIAN_DAY

      public static final CountingCalendarTypes TRUNCATED_JULIAN_DAY
      Truncated Julian Day, Julian Day less 2440000.5 (from 1968)
    • UNIX

      public static final CountingCalendarTypes UNIX
      Unix time, seconds since 1970-01-01 UTC (a day count plus a UTC time of day)
  • Method Details

    • values

      public static CountingCalendarTypes[] 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 CountingCalendarTypes 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/counting) 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 -- as opposed to one that depends on observation, sidereal positions, or fiction. A deterministic calendar is a candidate for day-number conversion; whether a converter exists for it is answered by DateTimeConverter.
      Returns:
      true if the calendar's rule is deterministic