@Test public void getDouble_activatedStillLoadingFromDisk_blocksAndReturnsActivatedValue() throws Exception { loadActivatedAsyncCacheWithIncompleteTask(); loadActivatedBlockingCacheWith(ImmutableMap.of(DOUBLE_KEY, ACTIVATED_DOUBLE_VALUE)); double doubleValue = getHandler.getDouble(DOUBLE_KEY); assertThat(doubleValue).isEqualTo(ACTIVATED_DOUBLE_VALUE); }
public double getDouble(String key) { Double activatedDouble = getDoubleFromCache(activatedConfigsCache, key); if (activatedDouble != null) { return activatedDouble; } Double defaultsDouble = getDoubleFromCache(defaultConfigsCache, key); if (defaultsDouble != null) { return defaultsDouble; } logParameterValueDoesNotExist(key, "Double"); return DEFAULT_VALUE_FOR_DOUBLE; }
ConfigGetParameterHandler { public double getDouble(String key) { Double activatedDouble = getDoubleFromCache(activatedConfigsCache, key); if (activatedDouble != null) { return activatedDouble; } Double defaultsDouble = getDoubleFromCache(defaultConfigsCache, key); if (defaultsDouble != null) { return defaultsDouble; } logParameterValueDoesNotExist(key, "Double"); return DEFAULT_VALUE_FOR_DOUBLE; } }
ConfigGetParameterHandler { public double getDouble(String key) { Double activatedDouble = getDoubleFromCache(activatedConfigsCache, key); if (activatedDouble != null) { return activatedDouble; } Double defaultsDouble = getDoubleFromCache(defaultConfigsCache, key); if (defaultsDouble != null) { return defaultsDouble; } logParameterValueDoesNotExist(key, "Double"); return DEFAULT_VALUE_FOR_DOUBLE; } ConfigGetParameterHandler(
      ConfigCacheClient activatedConfigsCache, ConfigCacheClient defaultConfigsCache); }
ConfigGetParameterHandler { public double getDouble(String key) { Double activatedDouble = getDoubleFromCache(activatedConfigsCache, key); if (activatedDouble != null) { return activatedDouble; } Double defaultsDouble = getDoubleFromCache(defaultConfigsCache, key); if (defaultsDouble != null) { return defaultsDouble; } logParameterValueDoesNotExist(key, "Double"); return DEFAULT_VALUE_FOR_DOUBLE; } ConfigGetParameterHandler(
      ConfigCacheClient activatedConfigsCache, ConfigCacheClient defaultConfigsCache); String getString(String key); boolean getBoolean(String key); byte[] getByteArray(String key); double getDouble(String key); long getLong(String key); FirebaseRemoteConfigValue getValue(String key); Set<String> getKeysByPrefix(String prefix); Map<String, FirebaseRemoteConfigValue> getAll(); }
ConfigGetParameterHandler { public double getDouble(String key) { Double activatedDouble = getDoubleFromCache(activatedConfigsCache, key); if (activatedDouble != null) { return activatedDouble; } Double defaultsDouble = getDoubleFromCache(defaultConfigsCache, key); if (defaultsDouble != null) { return defaultsDouble; } logParameterValueDoesNotExist(key, "Double"); return DEFAULT_VALUE_FOR_DOUBLE; } ConfigGetParameterHandler(
      ConfigCacheClient activatedConfigsCache, ConfigCacheClient defaultConfigsCache); String getString(String key); boolean getBoolean(String key); byte[] getByteArray(String key); double getDouble(String key); long getLong(String key); FirebaseRemoteConfigValue getValue(String key); Set<String> getKeysByPrefix(String prefix); Map<String, FirebaseRemoteConfigValue> getAll(); @VisibleForTesting(otherwise = VisibleForTesting.PACKAGE_PRIVATE)
  static final Charset FRC_BYTE_ARRAY_ENCODING; }