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

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

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

origin: ThreeTen/threetenbp

/**
 * Registers the provider.
 *
 * @param provider  the provider to register, not null
 * @throws ZoneRulesException if unable to complete the registration
 */
private static void registerProvider0(ZoneRulesProvider provider) {
  for (String zoneId : provider.provideZoneIds()) {
    Jdk8Methods.requireNonNull(zoneId, "zoneId");
    ZoneRulesProvider old = ZONES.putIfAbsent(zoneId, provider);
    if (old != null) {
      throw new ZoneRulesException(
        "Unable to register zone as one already registered with that ID: " + zoneId +
        ", currently loading from provider: " + provider);
    }
  }
}
origin: org.threeten/threetenbp

/**
 * Registers the provider.
 *
 * @param provider  the provider to register, not null
 * @throws ZoneRulesException if unable to complete the registration
 */
private static void registerProvider0(ZoneRulesProvider provider) {
  for (String zoneId : provider.provideZoneIds()) {
    Jdk8Methods.requireNonNull(zoneId, "zoneId");
    ZoneRulesProvider old = ZONES.putIfAbsent(zoneId, provider);
    if (old != null) {
      throw new ZoneRulesException(
        "Unable to register zone as one already registered with that ID: " + zoneId +
        ", currently loading from provider: " + provider);
    }
  }
}
org.threeten.bp.zoneZoneRulesProviderprovideZoneIds

Javadoc

SPI method to get the available zone IDs.

This obtains the IDs that this ZoneRulesProvider provides. A provider should provide data for at least one region.

The returned regions remain available and valid for the lifetime of the application. A dynamic provider may increase the set of regions 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
  • provideVersions
    SPI method to get the history of rules for the zone ID. This returns a map of historical rules keyed
  • registerProvider0
    Registers the provider.

Popular in Java

  • Making http requests using okhttp
  • putExtra (Intent)
  • compareTo (BigDecimal)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • ObjectMapper (com.fasterxml.jackson.databind)
    ObjectMapper provides functionality for reading and writing JSON, either to and from basic POJOs (Pl
  • URI (java.net)
    A Uniform Resource Identifier that identifies an abstract or physical resource, as specified by RFC
  • URL (java.net)
    A Uniform Resource Locator that identifies the location of an Internet resource as specified by RFC
  • LinkedHashMap (java.util)
    LinkedHashMap is an implementation of Map that guarantees iteration order. All optional operations a
  • HttpServlet (javax.servlet.http)
    Provides an abstract class to be subclassed to create an HTTP servlet suitable for a Web site. A sub
  • Loader (org.hibernate.loader)
    Abstract superclass of object loading (and querying) strategies. This class implements useful common
  • Github Copilot alternatives
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