- Sort Score
- Result 10 results
- Languages All
Results 1 - 9 of 9 for AsMap (0.01 sec)
-
guava-tests/test/com/google/common/cache/CacheLoadingTest.java
cache.asMap().put(extraKey, extraKey); assertThat(cache.asMap().get(extraKey)).isSameInstanceAs(extraKey); Object[] lookupKeys = new Object[] {new Object(), new Object(), new Object()}; assertThrows(InvalidCacheLoadException.class, () -> cache.getAll(asList(lookupKeys))); for (Object key : lookupKeys) { assertThat(cache.asMap().containsKey(key)).isTrue(); }
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Tue Sep 30 22:03:28 UTC 2025 - 91.1K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/MapsTest.java
Map<String, Integer> map = Maps.asMap(strings, LENGTH_FUNCTION); assertEquals(ImmutableMap.of("one", 3, "two", 3, "three", 5), map); assertEquals(Integer.valueOf(3), map.remove("two")); assertThat(strings).containsExactly("one", "three").inOrder(); } public void testAsMapEmpty() { Set<String> strings = ImmutableSet.of(); Map<String, Integer> map = Maps.asMap(strings, LENGTH_FUNCTION);
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Dec 11 22:56:33 UTC 2025 - 62.7K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/cache/CacheLoadingTest.java
cache.asMap().put(extraKey, extraKey); assertThat(cache.asMap().get(extraKey)).isSameInstanceAs(extraKey); Object[] lookupKeys = new Object[] {new Object(), new Object(), new Object()}; assertThrows(InvalidCacheLoadException.class, () -> cache.getAll(asList(lookupKeys))); for (Object key : lookupKeys) { assertThat(cache.asMap().containsKey(key)).isTrue(); }
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Tue Sep 30 22:03:28 UTC 2025 - 91.1K bytes - Viewed (0) -
android/guava/src/com/google/common/cache/CacheBuilder.java
* access. Access time is reset by all cache read and write operations (including {@code * Cache.asMap().get(Object)} and {@code Cache.asMap().put(K, V)}), but not by {@code * containsKey(Object)}, nor by operations on the collection-views of {@link Cache#asMap}}. So, * for example, iterating through {@code Cache.asMap().entrySet()} does not reset access time for * the entries you retrieve. *
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Wed Oct 08 18:55:33 UTC 2025 - 51.9K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/Multimaps.java
} /** * Returns {@link SetMultimap#asMap multimap.asMap()}, with its type corrected from {@code Map<K, * Collection<V>>} to {@code Map<K, Set<V>>}. * * @since 15.0 */ @SuppressWarnings("unchecked") // safe by specification of SetMultimap.asMap() public static <K extends @Nullable Object, V extends @Nullable Object> Map<K, Set<V>> asMap(Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Mon Sep 22 18:35:44 UTC 2025 - 86.5K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/MapsTest.java
Map<String, Integer> map = Maps.asMap(strings, LENGTH_FUNCTION); assertEquals(ImmutableMap.of("one", 3, "two", 3, "three", 5), map); assertEquals(Integer.valueOf(3), map.remove("two")); assertThat(strings).containsExactly("one", "three").inOrder(); } public void testAsMapEmpty() { Set<String> strings = ImmutableSet.of(); Map<String, Integer> map = Maps.asMap(strings, LENGTH_FUNCTION);
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Dec 11 22:56:33 UTC 2025 - 65K bytes - Viewed (0) -
guava/src/com/google/common/cache/CacheBuilder.java
* access. Access time is reset by all cache read and write operations (including {@code * Cache.asMap().get(Object)} and {@code Cache.asMap().put(K, V)}), but not by {@code * containsKey(Object)}, nor by operations on the collection-views of {@link Cache#asMap}}. So, * for example, iterating through {@code Cache.asMap().entrySet()} does not reset access time for * the entries you retrieve. *
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Wed Oct 08 18:55:33 UTC 2025 - 51.6K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/Synchronized.java
} return entries; } } @Override public Map<K, Collection<V>> asMap() { synchronized (mutex) { if (asMap == null) { asMap = new SynchronizedAsMap<>(delegate().asMap(), mutex); } return asMap; } } @Override public Multiset<K> keys() { synchronized (mutex) {Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Fri Aug 08 15:11:10 UTC 2025 - 53K bytes - Viewed (0) -
guava/src/com/google/common/collect/Synchronized.java
delegate().forEach(action); } } @Override public Map<K, Collection<V>> asMap() { synchronized (mutex) { if (asMap == null) { asMap = new SynchronizedAsMap<>(delegate().asMap(), mutex); } return asMap; } } @Override public Multiset<K> keys() { synchronized (mutex) {
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Fri Aug 08 15:11:10 UTC 2025 - 56.9K bytes - Viewed (0)