The Hijrah calendar system has only one era covering the proleptic years greater than zero.
Do not use ordinal()
to obtain the numeric representation of HijrahEra
.
Use getValue()
instead.
Implementation Specification
This is an immutable and thread-safe enum.
Modifier and Type | Field and Description |
---|---|
public static final HijrahEra | AH
The singleton instance for the current era, 'Anno Hegirae', which has the numeric value 1. |
Access | Constructor and Description |
---|---|
private |
Modifier and Type | Method and Description |
---|---|
public String | getDisplayName(TextStyle
the style of the text required, not null style, Locale the locale to use, not null locale)Overrides default java. Gets the textual representation of this era. |
public int | Returns: the era value, 1 (AH)Implements java. Gets the numeric era |
public static HijrahEra | Returns: the HijrahEra.AH singleton, not nullthe era to represent, only 1 supported hijrahEra)Obtains an instance of |
public ValueRange | Returns: the range of valid values for the field, not nullthe field to query the range for, not null field)Overrides default java. Gets the range of valid values for the specified field. |
public static HijrahEra | |
public static HijrahEra[] |
AH | back to summary |
---|---|
public static final HijrahEra AH The singleton instance for the current era, 'Anno Hegirae', which has the numeric value 1. |
HijrahEra | back to summary |
---|---|
private HijrahEra() |
getDisplayName | back to summary |
---|---|
public String getDisplayName(TextStyle style, Locale locale) Overrides default java. Doc from java. Gets the textual representation of this era. This returns the textual name used to identify the era, suitable for presentation to the user. The parameters control the style of the returned text and the locale.
If no textual mapping is found then the |
getValue | back to summary |
---|---|
public int getValue() Implements java. Gets the numeric era The era AH has the value 1.
|
of | back to summary |
---|---|
public static HijrahEra of(int hijrahEra) Obtains an instance of The current era, which is the only accepted value, has the value 1
|
range | back to summary |
---|---|
public ValueRange range(TemporalField field) Overrides default java. Gets the range of valid values for the specified field. The range object expresses the minimum and maximum valid values for a field. This era is used to enhance the accuracy of the returned range. If it is not possible to return the range, because the field is not supported or for some other reason, an exception is thrown.
If the field is a
If the field is not a
The
|
valueOf | back to summary |
---|---|
public static HijrahEra valueOf(String name) |
values | back to summary |
---|---|
public static HijrahEra[] values() |