Package net.time4j.history
Class EraPreference
java.lang.Object
net.time4j.history.EraPreference
Determines the preferred historic era to be used for printing a historic date.
- Since:
- 3.14/4.11
- Author:
- Meno Hochschild
-
Method Summary
Modifier and TypeMethodDescriptionstatic EraPreferenceDetermines the era Ab Urbe Condita to be preferred.static EraPreferenceabUrbeConditaBetween(PlainDate start, PlainDate end)Determines the era Ab Urbe Condita to be preferred within given date range.static EraPreferenceabUrbeConditaUntil(PlainDate end)Determines the era Ab Urbe Condita to be preferred until given date.static EraPreferencebyzantineBetween(PlainDate start, PlainDate end)Determines the era Anno Mundi to be preferred within given date range.static EraPreferencebyzantineUntil(PlainDate end)Determines the era Anno Mundi to be preferred until given date.booleaninthashCode()static EraPreferencehispanicBetween(PlainDate start, PlainDate end)Determines the hispanic era to be preferred within given date range.static EraPreferencehispanicUntil(PlainDate end)Determines the hispanic era to be preferred until given date.toString()For debugging purposes.
-
Method Details
-
hispanicUntil
Determines the hispanic era to be preferred until given date.
- Parameters:
end- last date when the hispanic era shall be used (inclusive)- Returns:
- EraPreference
- Since:
- 3.14/4.11
- See Also:
HistoricEra.HISPANIC
-
hispanicBetween
Determines the hispanic era to be preferred within given date range.
- Parameters:
start- first date when the hispanic era shall be used (inclusive)end- last date when the hispanic era shall be used (inclusive)- Returns:
- EraPreference
- Since:
- 3.14/4.11
- See Also:
HistoricEra.HISPANIC
-
byzantineUntil
Determines the era Anno Mundi to be preferred until given date.
- Parameters:
end- last date when the era Anno Mundi shall be used (inclusive)- Returns:
- EraPreference
- Since:
- 3.14/4.11
- See Also:
HistoricEra.BYZANTINE
-
byzantineBetween
Determines the era Anno Mundi to be preferred within given date range.
- Parameters:
start- first date when the era Anno Mundi shall be used (inclusive)end- last date when the era Anno Mundi shall be used (inclusive)- Returns:
- EraPreference
- Since:
- 3.14/4.11
- See Also:
HistoricEra.BYZANTINE
-
abUrbeCondita
Determines the era Ab Urbe Condita to be preferred.
- Returns:
- EraPreference
- Since:
- 3.14/4.11
- See Also:
HistoricEra.AB_URBE_CONDITA
-
abUrbeConditaUntil
Determines the era Ab Urbe Condita to be preferred until given date.
- Parameters:
end- last date when the era A.U.C. shall be used (inclusive)- Returns:
- EraPreference
- Since:
- 3.14/4.11
- See Also:
HistoricEra.AB_URBE_CONDITA
-
abUrbeConditaBetween
Determines the era Ab Urbe Condita to be preferred within given date range.
- Parameters:
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)- Returns:
- EraPreference
- Since:
- 3.14/4.11
- See Also:
HistoricEra.AB_URBE_CONDITA
-
equals
-
hashCode
public int hashCode() -
toString
For debugging purposes.
-