Tabnine Logo
ZoneRulesProvider.provideVersions
Code IndexAdd Tabnine to your IDE (free)

How to use
provideVersions
method
in
org.threeten.bp.zone.ZoneRulesProvider

Best Java code snippets using org.threeten.bp.zone.ZoneRulesProvider.provideVersions (Showing top 2 results out of 315)

origin: ThreeTen/threetenbp

/**
 * Gets the history of rules for the zone ID.
 * <p>
 * Time-zones are defined by governments and change frequently.
 * This method allows applications to find the history of changes to the
 * rules for a single zone ID. The map is keyed by a string, which is the
 * version string associated with the rules.
 * <p>
 * The exact meaning and format of the version is provider specific.
 * The version must follow lexicographical order, thus the returned map will
 * be order from the oldest known rules to the newest available rules.
 * The default 'TZDB' group uses version numbering consisting of the year
 * followed by a letter, such as '2009e' or '2012f'.
 * <p>
 * Implementations must provide a result for each valid zone ID, however
 * they do not have to provide a history of rules.
 * Thus the map will always contain one element, and will only contain more
 * than one element if historical rule information is available.
 *
 * @param zoneId  the zone region ID as used by {@code ZoneId}, not null
 * @return a modifiable copy of the history of the rules for the ID, sorted
 *  from oldest to newest, not null
 * @throws ZoneRulesException if history cannot be obtained for the zone ID
 */
public static NavigableMap<String, ZoneRules> getVersions(String zoneId) {
  Jdk8Methods.requireNonNull(zoneId, "zoneId");
  return getProvider(zoneId).provideVersions(zoneId);
}
origin: org.threeten/threetenbp

/**
 * Gets the history of rules for the zone ID.
 * <p>
 * Time-zones are defined by governments and change frequently.
 * This method allows applications to find the history of changes to the
 * rules for a single zone ID. The map is keyed by a string, which is the
 * version string associated with the rules.
 * <p>
 * The exact meaning and format of the version is provider specific.
 * The version must follow lexicographical order, thus the returned map will
 * be order from the oldest known rules to the newest available rules.
 * The default 'TZDB' group uses version numbering consisting of the year
 * followed by a letter, such as '2009e' or '2012f'.
 * <p>
 * Implementations must provide a result for each valid zone ID, however
 * they do not have to provide a history of rules.
 * Thus the map will always contain one element, and will only contain more
 * than one element if historical rule information is available.
 *
 * @param zoneId  the zone region ID as used by {@code ZoneId}, not null
 * @return a modifiable copy of the history of the rules for the ID, sorted
 *  from oldest to newest, not null
 * @throws ZoneRulesException if history cannot be obtained for the zone ID
 */
public static NavigableMap<String, ZoneRules> getVersions(String zoneId) {
  Jdk8Methods.requireNonNull(zoneId, "zoneId");
  return getProvider(zoneId).provideVersions(zoneId);
}
org.threeten.bp.zoneZoneRulesProviderprovideVersions

Javadoc

SPI method to get the history of rules for the zone ID.

This returns a map of historical rules keyed by a version string. The exact meaning and format of the version is provider specific. The version must follow lexicographical order, thus the returned map will be order from the oldest known rules to the newest available rules. The default 'TZDB' group uses version numbering consisting of the year followed by a letter, such as '2009e' or '2012f'.

Implementations must provide a result for each valid zone ID, however they do not have to provide a history of rules. Thus the map will always contain one element, and will only contain more than one element if historical rule information is available.

The returned versions remain available and valid for the lifetime of the application. A dynamic provider may increase the set of versions as more data becomes available.

Popular methods of ZoneRulesProvider

  • getAvailableZoneIds
    Gets the set of available zone IDs. These zone IDs are loaded and available for use by ZoneId.
  • getRules
    Gets the rules for the zone ID. This returns the latest available rules for the zone ID. This meth
  • registerProvider
    Registers a zone rules provider. This adds a new provider to those currently available. A provider s
  • getProvider
    Gets the provider for the zone ID.
  • provideRefresh
    SPI method to refresh the rules from the underlying data provider. This method provides the opportun
  • provideRules
    SPI method to get the rules for the zone ID. This loads the rules for the region and version specifi
  • provideZoneIds
    SPI method to get the available zone IDs. This obtains the IDs that this ZoneRulesProvider provides.
  • registerProvider0
    Registers the provider.

Popular in Java

  • Updating database using SQL prepared statement
  • findViewById (Activity)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • notifyDataSetChanged (ArrayAdapter)
  • FileOutputStream (java.io)
    An output stream that writes bytes to a file. If the output file exists, it can be replaced or appen
  • SocketTimeoutException (java.net)
    This exception is thrown when a timeout expired on a socket read or accept operation.
  • HashSet (java.util)
    HashSet is an implementation of a Set. All optional operations (adding and removing) are supported.
  • Locale (java.util)
    Locale represents a language/country/variant combination. Locales are used to alter the presentatio
  • Manifest (java.util.jar)
    The Manifest class is used to obtain attribute information for a JarFile and its entries.
  • JOptionPane (javax.swing)
  • Top 12 Jupyter Notebook extensions
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now