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 EraPreference
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
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.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.
-