Enum Class BadiMonth
- All Implemented Interfaces:
Serializable
,Comparable<BadiMonth>
,java.lang.constant.Constable
,BadiDivision
Represents the months used in the Badi calendar.
- Since:
- 5.3
- Author:
- Meno Hochschild
- See Also:
BadiDivision.comparator()
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionThe nineteenth month.The ninth month.The fourth month.The first month starting at vernal equinox in March.The twelvth month.The tenth month.The second month.The third month.The seventh month.The eight month.The fifteenth month.The eleventh month.The eighteenth month.The fifth month.The fourteenth month.The thirteenth month.The sixth month.The sixteenth month.The seventeenth month. -
Method Summary
Modifier and TypeMethodDescriptiongetDisplayName(Locale locale)
Gets the description text dependent on the locale.getMeaning(Locale locale)
Gets the meaning dependent on the locale.int
getValue()
Gets the corresponding numerical value.static BadiMonth
valueOf(int month)
Gets the enum-constant which corresponds to the given numerical value.static BadiMonth
Returns the enum constant of this class with the specified name.static BadiMonth[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
BAHA
The first month starting at vernal equinox in March.
-
JALAL
The second month.
-
JAMAL
The third month.
-
AZAMAT
The fourth month.
-
NUR
The fifth month.
-
RAHMAT
The sixth month.
-
KALIMAT
The seventh month.
-
KAMAL
The eight month.
-
ASMA
The ninth month.
-
IZZAT
The tenth month.
-
MASHIYYAT
The eleventh month.
-
ILM
The twelvth month.
-
QUDRAT
The thirteenth month.
-
QAWL
The fourteenth month.
-
MASAIL
The fifteenth month.
-
SHARAF
The sixteenth month.
-
SULTAN
The seventeenth month.
-
MULK
The eighteenth month.
-
ALA
The nineteenth month.
-
-
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
-
valueOf
Gets the enum-constant which corresponds to the given numerical value.
- Parameters:
month
- badi month in the range [1-19]- Returns:
- badi month of year as enum
- Throws:
IllegalArgumentException
- if given argument is out of range
-
getValue
public int getValue()Gets the corresponding numerical value.
- Returns:
- number of badi month in the range [1-19]
-
getDisplayName
Gets the description text dependent on the locale.
- Parameters:
locale
- language setting- Returns:
- descriptive text for given locale (never
null
)
-
getMeaning
Gets the meaning dependent on the locale.
If a meaning is unavailable then this method will fall back to the transcription given by
getDisplayName(Locale)
.- Parameters:
locale
- language setting- Returns:
- meaning for given locale (never
null
)
-