public final class EraPreference extends Object
Determines the preferred historic era to be used for printing a historic date.
| Modifier and Type | Method and Description |
|---|---|
static EraPreference |
abUrbeCondita()
Determines the era Ab Urbe Condita to be preferred.
|
static EraPreference |
abUrbeConditaBetween(PlainDate start,
PlainDate end)
Determines the era Ab Urbe Condita to be preferred within given date range.
|
static EraPreference |
abUrbeConditaUntil(PlainDate end)
Determines the era Ab Urbe Condita to be preferred until given date.
|
static EraPreference |
byzantineBetween(PlainDate start,
PlainDate end)
Determines the era Anno Mundi to be preferred within given date range.
|
static EraPreference |
byzantineUntil(PlainDate end)
Determines the era Anno Mundi to be preferred until given date.
|
boolean |
equals(Object obj) |
int |
hashCode() |
static EraPreference |
hispanicBetween(PlainDate start,
PlainDate end)
Determines the hispanic era to be preferred within given date range.
|
static EraPreference |
hispanicUntil(PlainDate end)
Determines the hispanic era to be preferred until given date.
|
String |
toString()
For debugging purposes.
|
public static EraPreference hispanicUntil(PlainDate end)
Determines the hispanic era to be preferred until given date.
end - last date when the hispanic era shall be used (inclusive)HistoricEra.HISPANICpublic static EraPreference hispanicBetween(PlainDate start, PlainDate end)
Determines the hispanic era to be preferred within given date range.
start - first date when the hispanic era shall be used (inclusive)end - last date when the hispanic era shall be used (inclusive)HistoricEra.HISPANICpublic static EraPreference byzantineUntil(PlainDate end)
Determines the era Anno Mundi to be preferred until given date.
end - last date when the era Anno Mundi shall be used (inclusive)HistoricEra.BYZANTINEpublic static EraPreference byzantineBetween(PlainDate start, PlainDate end)
Determines the era Anno Mundi to be preferred within given date range.
start - first date when the era Anno Mundi shall be used (inclusive)end - last date when the era Anno Mundi shall be used (inclusive)HistoricEra.BYZANTINEpublic static EraPreference abUrbeCondita()
Determines the era Ab Urbe Condita to be preferred.
HistoricEra.AB_URBE_CONDITApublic static EraPreference abUrbeConditaUntil(PlainDate end)
Determines the era Ab Urbe Condita to be preferred until given date.
end - last date when the era A.U.C. shall be used (inclusive)HistoricEra.AB_URBE_CONDITApublic static EraPreference abUrbeConditaBetween(PlainDate start, PlainDate end)
Determines the era Ab Urbe Condita to be preferred within given date range.
start - first date when the era A.U.C. shall be used (inclusive)end - last date when the era A.U.C. shall be used (inclusive)HistoricEra.AB_URBE_CONDITACopyright © 2014–2017. All rights reserved.