gpt4 book ai didi

org.threeten.bp.zone.ZoneRulesProvider.getAvailableZoneIds()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-15 02:27:31 27 4
gpt4 key购买 nike

本文整理了Java中org.threeten.bp.zone.ZoneRulesProvider.getAvailableZoneIds()方法的一些代码示例,展示了ZoneRulesProvider.getAvailableZoneIds()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ZoneRulesProvider.getAvailableZoneIds()方法的具体详情如下:
包路径:org.threeten.bp.zone.ZoneRulesProvider
类名称:ZoneRulesProvider
方法名:getAvailableZoneIds

ZoneRulesProvider.getAvailableZoneIds介绍

[英]Gets the set of available zone IDs.

These zone IDs are loaded and available for use by ZoneId.
[中]获取可用区域ID的集合。
这些区域ID已加载,可供ZoneId使用。

代码示例

代码示例来源:origin: JakeWharton/ThreeTenABP

@Test public void litmus() {
  AndroidThreeTen.init(context);
  assertThat(ZoneRulesProvider.getAvailableZoneIds()).isNotEmpty();
 }
}

代码示例来源:origin: ThreeTen/threetenbp

/**
 * Gets the set of available zone IDs.
 * <p>
 * This set includes the string form of all available region-based IDs.
 * Offset-based zone IDs are not included in the returned set.
 * The ID can be passed to {@link #of(String)} to create a {@code ZoneId}.
 * <p>
 * The set of zone IDs can increase over time, although in a typical application
 * the set of IDs is fixed. Each call to this method is thread-safe.
 *
 * @return a modifiable copy of the set of zone IDs, not null
 */
public static Set<String> getAvailableZoneIds() {
  return new HashSet<String>(ZoneRulesProvider.getAvailableZoneIds());
}

代码示例来源:origin: org.threeten/threetenbp

/**
 * Gets the set of available zone IDs.
 * <p>
 * This set includes the string form of all available region-based IDs.
 * Offset-based zone IDs are not included in the returned set.
 * The ID can be passed to {@link #of(String)} to create a {@code ZoneId}.
 * <p>
 * The set of zone IDs can increase over time, although in a typical application
 * the set of IDs is fixed. Each call to this method is thread-safe.
 *
 * @return a modifiable copy of the set of zone IDs, not null
 */
public static Set<String> getAvailableZoneIds() {
  return new HashSet<String>(ZoneRulesProvider.getAvailableZoneIds());
}

代码示例来源:origin: gabrielittner/lazythreetenbp

/**
 * Call on background thread to eagerly load all zones. Starts with loading
 * {@link ZoneId#systemDefault()} which is the one most likely to be used.
 */
@WorkerThread
public static void cacheZones() {
  ZoneId.systemDefault().getRules();
  for (String zoneId : ZoneRulesProvider.getAvailableZoneIds()) {
    ZoneRulesProvider.getRules(zoneId, true);
  }
}

代码示例来源:origin: gabrielittner/lazythreetenbp

@Test
public void init() {
  LazyThreeTen.init(context);
  assertThat(ZoneRulesProvider.getAvailableZoneIds()).isNotEmpty();
}

代码示例来源:origin: ThreeTen/threetenbp

Set<String> regionIds = ZoneRulesProvider.getAvailableZoneIds();
final int regionIdsSize = regionIds.size();
Entry<Integer, SubstringTree> cached = cachedSubstringTree;

代码示例来源:origin: org.threeten/threetenbp

Set<String> regionIds = ZoneRulesProvider.getAvailableZoneIds();
final int regionIdsSize = regionIds.size();
Entry<Integer, SubstringTree> cached = cachedSubstringTree;

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com