- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 56 for getUnchecked (0.21 sec)
-
guava-tests/test/com/google/common/cache/CacheExpirationTest.java
for (int i = 0; i < 10; i++) { assertEquals(Integer.valueOf(VALUE_PREFIX + i), cache.getUnchecked(KEY_PREFIX + i)); } for (int i = 0; i < 10; i++) { loader.reset(); assertEquals(Integer.valueOf(VALUE_PREFIX + i), cache.getUnchecked(KEY_PREFIX + i)); assertFalse("Creator should not have been called @#" + i, loader.wasCalled()); }
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Fri Aug 05 17:21:46 GMT 2022 - 18.7K bytes - Viewed (0) -
android/guava/src/com/google/common/cache/LoadingCache.java
/** * @deprecated Provided to satisfy the {@code Function} interface; use {@link #get} or {@link * #getUnchecked} instead. * @throws UncheckedExecutionException if an exception was thrown while loading the value. (As * described in the documentation for {@link #getUnchecked}, {@code LoadingCache} should be * used as a {@code Function} only with cache loaders that throw only unchecked exceptions.) */
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Sat Aug 06 17:12:03 GMT 2022 - 8.3K bytes - Viewed (0) -
guava-tests/test/com/google/common/cache/CacheReferencesTest.java
Key key1 = new Key(1); String value1 = key1.toString(); Key key2 = new Key(2); String value2 = key2.toString(); assertSame(value1, cache.getUnchecked(key1)); assertSame(value2, cache.getUnchecked(key2)); assertEquals(ImmutableSet.of(key1, key2), cache.asMap().keySet()); assertThat(cache.asMap().values()).containsExactly(value1, value2); assertEquals(
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Mon Dec 04 17:37:03 GMT 2017 - 6.1K bytes - Viewed (0) -
guava/src/com/google/common/cache/ForwardingLoadingCache.java
@Override public V get(K key) throws ExecutionException { return delegate().get(key); } @CanIgnoreReturnValue // TODO(b/27479612): consider removing this @Override public V getUnchecked(K key) { return delegate().getUnchecked(key); } @CanIgnoreReturnValue // TODO(b/27479612): consider removing this @Override public ImmutableMap<K, V> getAll(Iterable<? extends K> keys) throws ExecutionException {
Java - Registered: Fri Apr 05 12:43:09 GMT 2024 - Last Modified: Sat Aug 06 17:12:03 GMT 2022 - 2.9K bytes - Viewed (1) -
guava/src/com/google/common/cache/LoadingCache.java
/** * @deprecated Provided to satisfy the {@code Function} interface; use {@link #get} or {@link * #getUnchecked} instead. * @throws UncheckedExecutionException if an exception was thrown while loading the value. (As * described in the documentation for {@link #getUnchecked}, {@code LoadingCache} should be * used as a {@code Function} only with cache loaders that throw only unchecked exceptions.) */
Java - Registered: Fri Apr 05 12:43:09 GMT 2024 - Last Modified: Sat Aug 06 17:12:03 GMT 2022 - 8.3K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/cache/CacheBuilderTest.java
LoadingCache<String, Integer> cache = CacheBuilder.newBuilder().removalListener(countingRemovalListener()).build(loader); assertEquals(Integer.valueOf(1), cache.getUnchecked("one")); assertEquals(1, cache.size()); } public void testInitialCapacity_negative() { CacheBuilder<Object, Object> builder = CacheBuilder.newBuilder(); try { builder.initialCapacity(-1);
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Tue Oct 03 20:10:02 GMT 2023 - 23.2K bytes - Viewed (0) -
guava/src/com/google/common/cache/AbstractLoadingCache.java
* * <p>To implement a cache, the programmer needs only to extend this class and provide an * implementation for the {@link #get(Object)} and {@link #getIfPresent} methods. {@link * #getUnchecked}, {@link #get(Object, Callable)}, and {@link #getAll} are implemented in terms of * {@code get}; {@link #getAllPresent} is implemented in terms of {@code getIfPresent}; {@link
Java - Registered: Fri Apr 05 12:43:09 GMT 2024 - Last Modified: Sat Aug 06 17:12:03 GMT 2022 - 2.7K bytes - Viewed (0) -
android/guava/src/com/google/common/cache/AbstractLoadingCache.java
* * <p>To implement a cache, the programmer needs only to extend this class and provide an * implementation for the {@link #get(Object)} and {@link #getIfPresent} methods. {@link * #getUnchecked}, {@link #get(Object, Callable)}, and {@link #getAll} are implemented in terms of * {@code get}; {@link #getAllPresent} is implemented in terms of {@code getIfPresent}; {@link
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Sat Aug 06 17:12:03 GMT 2022 - 2.7K bytes - Viewed (0) -
android/guava/src/com/google/common/cache/ForwardingLoadingCache.java
@Override public V get(K key) throws ExecutionException { return delegate().get(key); } @CanIgnoreReturnValue // TODO(b/27479612): consider removing this @Override public V getUnchecked(K key) { return delegate().getUnchecked(key); } @CanIgnoreReturnValue // TODO(b/27479612): consider removing this @Override public ImmutableMap<K, V> getAll(Iterable<? extends K> keys) throws ExecutionException {
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Sat Aug 06 17:12:03 GMT 2022 - 2.9K bytes - Viewed (0) -
guava-tests/test/com/google/common/cache/ForwardingLoadingCacheTest.java
when(mock.get("key")).thenReturn(Boolean.TRUE); assertSame(Boolean.TRUE, forward.get("key")); } public void testGetUnchecked() { when(mock.getUnchecked("key")).thenReturn(Boolean.TRUE); assertSame(Boolean.TRUE, forward.getUnchecked("key")); } public void testGetAll() throws ExecutionException { when(mock.getAll(ImmutableList.of("key"))).thenReturn(ImmutableMap.of("key", Boolean.TRUE));
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Mon Apr 17 12:41:04 GMT 2023 - 3.4K bytes - Viewed (0)