|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Era
An era of the time-line.
Most calendar systems have a single epoch dividing the time-line into two eras.
However, some calendar systems, have multiple eras, such as one for the reign
of each leader.
In all cases, the era is conceptually the largest division of the time-line.
Each chronology defines the Era's that are known Eras and a
Chrono.eras to get the valid eras.
For example, the Thai Buddhist calendar system divides time into two eras, before and after a single date. By contrast, the Japanese calendar system has one era for the reign of each Emperor.
Instances of Era may be compared using the == operator.
| Method Summary | |
|---|---|
String |
getDisplayName(TextStyle style,
Locale locale)
Gets the textual representation of this era. |
int |
getValue()
Gets the numeric value associated with the era as defined by the chronology. |
| Methods inherited from interface org.threeten.bp.temporal.TemporalAccessor |
|---|
get, getLong, isSupported, query, range |
| Methods inherited from interface org.threeten.bp.temporal.TemporalAdjuster |
|---|
adjustInto |
| Method Detail |
|---|
int getValue()
All fields, including eras, have an associated numeric value. The meaning of the numeric value for era is determined by the chronology according to these principles:
String getDisplayName(TextStyle style,
Locale locale)
This returns the textual name used to identify the era. The parameters control the style of the returned text and the locale.
If no textual mapping is found then the numeric value is returned.
style - the style of the text required, not nulllocale - the locale to use, not null
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||