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.
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionANSI date, days since 1601-01-01Dublin Julian Day, Julian Day less 2415020 (from 1900)Julian Day, days since noon 4713 BC (proleptic Julian)Lilian date, days since the Gregorian reform (1582-10-15)Modified Julian Day, Julian Day less 2400000.5 (from 1858)Rata Die, days since the proleptic Gregorian epoch (0001-01-01)Reduced Julian Day, Julian Day less 2400000Truncated Julian Day, Julian Day less 2440000.5 (from 1968)Unix time, seconds since 1970-01-01 UTC (a day count plus a UTC time of day) -
Method Summary
Modifier and TypeMethodDescriptionClass<? extends CalendarInfo> Gets the CalendarInfo class (in calendaring/counting) that implements this calendar, ornullif none is provided.getType()Gets the Type.booleanTests whether this calendar's rule is deterministic -- a complete, proleptic algorithm -- as opposed to one that depends on observation, sidereal positions, or fiction.static CountingCalendarTypesReturns the enum constant of this class with the specified name.static CountingCalendarTypes[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ANSI
ANSI date, days since 1601-01-01 -
DUBLIN_JULIAN_DAY
Dublin Julian Day, Julian Day less 2415020 (from 1900) -
JULIAN_DAY
Julian Day, days since noon 4713 BC (proleptic Julian) -
LILIAN
Lilian date, days since the Gregorian reform (1582-10-15) -
MODIFIED_JULIAN_DAY
Modified Julian Day, Julian Day less 2400000.5 (from 1858) -
REDUCED_JULIAN_DAY
Reduced Julian Day, Julian Day less 2400000 -
RATA_DIE
Rata Die, days since the proleptic Gregorian epoch (0001-01-01) -
TRUNCATED_JULIAN_DAY
Truncated Julian Day, Julian Day less 2440000.5 (from 1968) -
UNIX
Unix time, seconds since 1970-01-01 UTC (a day count plus a UTC time of day)
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-
getType
Gets the Type.- Specified by:
getTypein interfacenet.okapia.osid.torrefacto.collect.TypeEnum- Returns:
- the Type
-
getDefinitionClass
Gets the CalendarInfo class (in calendaring/counting) that implements this calendar, ornullif 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 byDateTimeConverter.- Returns:
trueif the calendar's rule is deterministic
-