The Pax calendar system has two eras. The current era, for years from 1 onwards, is known as 'Current Era'. All previous years, zero or earlier in the proleptic count or one and greater in the year-of-era count, are part of the 'Before Current Era' era.
The start of the Pax epoch 0001-01-01 (Pax) is 0000-12-31 (ISO).
Do not use ordinal() to obtain the numeric representation of PaxEra.
Use getValue() instead.
| Modifier and Type | Field and Description |
|---|---|
| public static final PaxEra | BCE
The singleton instance for the era before the current one, 'Before Current Era', which has the numeric value 0. |
| public static final PaxEra | CE
The singleton instance for the current era, 'Current Era', which has the numeric value 1. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public int | Returns: the era value, from 0 (BCE) to 1 (CE)Implements java. Gets the numeric era |
| public static PaxEra | Returns: the era singleton, not nullthe BCE/CE value to represent, from 0 (BCE) to 1 (CE) era)Obtains an instance of |
| public static PaxEra | |
| public static PaxEra[] |
| BCE | back to summary |
|---|---|
| public static final PaxEra BCE The singleton instance for the era before the current one, 'Before Current Era', which has the numeric value 0. | |
| CE | back to summary |
|---|---|
| public static final PaxEra CE The singleton instance for the current era, 'Current Era', which has the numeric value 1. | |
| PaxEra | back to summary |
|---|---|
| private PaxEra() | |
| getValue | back to summary |
|---|---|
| public int getValue() Implements java. Gets the numeric era The era BCE has the value 0, while the era CE has the value 1.
| |
| of | back to summary |
|---|---|
| public static PaxEra of(final int era) Obtains an instance of
| |
| valueOf | back to summary |
|---|---|
| public static PaxEra valueOf(String name) | |
| values | back to summary |
|---|---|
| public static PaxEra[] values() | |