Constructs a new dateline model with a long list of predefined resolutions of type ChronoUnitResolution
.
Adds a resolution to the model.
the resolution to add
Adds a ZoneId to the model.
the zone ID to add
Removes all resolutions for the given temporal unit.
the temporal unit for which to remove all resolutions
Returns all ZoneId instances that are available for the user to switch to.
the available zone IDs
Returns the maximum scale count.
the maximum scale count
Returns the minimum scale count.
the minimum scale count
Returns all resolutions that are available for the given temporal unit.
the temporal unit for which resolutions are looked up
the available resolutions for the given temporal unit
Returns the number of currently visible scales.
the scale count
Returns all temporal units that are being used by the model.
the list of temporal units used by the model
Returns the next larger temporal unit for the given temporal unit, e.g. when passing ChronoUnit.HOURS
this method
might return ChronoUnit.DAYS
.
the unit for which to return the next higher unit
the next higher temporal unit
Removes a resolution from the model.
the resolution that will be removed
Sets the maximum scale count.
the new maximum scale count
Sets the minimum scale count.
the new minimum scale count
Sets the number of currently visible scales.
the new scale count
The chrono unit dateline model is a specialization of the dateline model that works in combination with the
ChronoUnit
. The chrono unit basically represents standard calendar units ranging from milliseconds to thousands of years.1.0