public interface LetoPeriodType
Characteristic | Description |
Name | The name of the period type. Examples: "day", "month", "year", "century", ... |
Description | Human readable description about the period type. |
Possible Structures | This is an array of possibilities which show how exactly the period is
structured and what sub-periods it contains. For example for the period
type "month" in Gregorian calendar, this array would show 4 possibilities
(an array of 4 elements):
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getDescription()
Get the human readable description of this period type in the default locale.
|
java.lang.String |
getDescription(java.util.Locale locale)
Longer human readable description of the period type.
|
java.util.Map<java.util.Locale,java.lang.String> |
getDescriptionTranslations()
Get the available translations in human spoken languages of this period type description.
|
java.lang.String |
getName()
Get the name of this period type in the default locale.
|
java.lang.String |
getName(java.util.Locale locale)
The name of the period type.
|
java.util.Map<java.util.Locale,java.lang.String> |
getNameTranslations()
Get the available translations of the name of this period type in different human spoken languages.
|
LetoPeriodStructure[] |
getPossibleStructures()
Return the possible structures for this period type.
|
java.lang.String getName()
java.lang.String getName(java.util.Locale locale)
locale
- The localization to be used.java.util.Map<java.util.Locale,java.lang.String> getNameTranslations()
java.lang.String getDescription()
java.lang.String getDescription(java.util.Locale locale)
locale
- The localization to be used.java.util.Map<java.util.Locale,java.lang.String> getDescriptionTranslations()
LetoPeriodStructure[] getPossibleStructures()
Number | Duration in days | Description |
1-st | duration - 28 days | February in non leap year |
2-nd | duration - 29 days | February in a leap year |
3-rd | duration - 30 days | April, June, September, November |
4-th | duration - 31 days | January, March, May, July, August, October, December |