Constructor and Description |
---|
LetoGeneric(java.lang.String id,
java.util.Map<java.lang.String,java.lang.Object> map) |
Modifier and Type | Method and Description |
---|---|
LetoPeriodType[] |
getCalendarPeriodTypes()
All inheriting classes should define the supported calendar period types.
|
java.lang.String |
getDescription(java.util.Locale locale)
Long description of this calendar system.
|
protected LocaleStringId |
getDescriptionTranslationIndex() |
java.lang.String |
getName(java.util.Locale locale)
Short name of this calendar system.
|
protected LocaleStringId |
getNameTranslationIndex() |
long |
getStartOfCalendarBeforeUnixEpoch()
Get the start of the calendar before unix epoch in days.
|
long |
startOfCalendarInDaysBeforeJavaEpoch()
All inheriting classes should define the beginning of their calendar in days before the java EPOCH.
|
calculateCalendarPeriods, calculateDaysFromPeriods, calculateDaysFronStartOfCalendar, checkCorrectness, getDescription, getDescriptionTranslations, getName, getNameTranslations, getToday, main, toJson, toMap
public LetoGeneric(java.lang.String id, java.util.Map<java.lang.String,java.lang.Object> map)
public java.lang.String getName(java.util.Locale locale)
Leto
public java.lang.String getDescription(java.util.Locale locale)
Leto
getDescription
in interface Leto
getDescription
in class LetoBase
locale
- The localization to be used.public long getStartOfCalendarBeforeUnixEpoch()
Leto
public long startOfCalendarInDaysBeforeJavaEpoch()
LetoBase
startOfCalendarInDaysBeforeJavaEpoch
in class LetoBase
public LetoPeriodType[] getCalendarPeriodTypes()
LetoBase
getCalendarPeriodTypes
in interface Leto
getCalendarPeriodTypes
in class LetoBase
protected LocaleStringId getNameTranslationIndex()
getNameTranslationIndex
in class LetoBase
protected LocaleStringId getDescriptionTranslationIndex()
getDescriptionTranslationIndex
in class LetoBase