- Sort Score
- Num 10 results
- Language All
Results 141 - 150 of 174 for AsMap (0.04 seconds)
-
android/guava-tests/test/com/google/common/cache/CacheEvictionTest.java
// 1 won't be cached assertThat(cache.getUnchecked(1)).isEqualTo(1); assertThat(cache.asMap().keySet()).isEmpty(); CacheTesting.processPendingNotifications(cache); assertThat(removalListener.getCount()).isEqualTo(1); // 2 will be cached assertThat(cache.getUnchecked(2)).isEqualTo(2); assertThat(cache.asMap().keySet()).containsExactly(2); CacheTesting.processPendingNotifications(cache);
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed Mar 18 18:06:14 GMT 2026 - 15K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/cache/CacheExpirationTest.java
assertThat(Iterators.size(cache.asMap().entrySet().iterator())).isEqualTo(1); assertThat(Iterators.size(cache.asMap().keySet().iterator())).isEqualTo(1); assertThat(Iterators.size(cache.asMap().values().iterator())).isEqualTo(1); CacheTesting.expireEntries((LoadingCache<?, ?>) cache, EXPIRING_TIME, ticker); for (int i = 0; i < 11; i++) { assertThat(cache.asMap().containsKey(KEY_PREFIX + i)).isFalse(); }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 23 16:38:16 GMT 2026 - 19.1K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/collect/MapsCollectionTest.java
checkNotNull(entry.getValue()); set.add((String) checkNotNull(entry.getKey())); } return Maps.asMap( set, new Function<String, Integer>() { @Override public Integer apply(String input) {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue May 13 17:27:14 GMT 2025 - 32.4K bytes - Click Count (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);
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Mar 13 13:01:07 GMT 2026 - 63.2K bytes - Click Count (0) -
guava-tests/test/com/google/common/collect/MultimapBuilderTest.java
assertTrue(multimap.asMap() instanceof SortedMap); } public void testTreeKeys_gwtCompatible() { ListMultimap<String, Integer> multimap = rawtypeToWildcard(MultimapBuilder.treeKeys()).arrayListValues().<String, Integer>build(); assertTrue(multimap.keySet() instanceof SortedSet); assertTrue(multimap.asMap() instanceof SortedMap); }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Aug 07 16:05:33 GMT 2025 - 5.2K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/util/concurrent/AtomicLongMapTest.java
nonZeroKeys.add(key); } } assertEquals(ITERATIONS, map.size()); assertTrue(map.asMap().containsValue(0L)); map.removeAllZeros(); assertFalse(map.asMap().containsValue(0L)); assertEquals(ITERATIONS / 2, map.size()); assertEquals(nonZeroKeys, map.asMap().keySet()); } public void testClear() { AtomicLongMap<Object> map = AtomicLongMap.create();
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Aug 07 16:05:33 GMT 2025 - 17.5K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/collect/LinkedHashMultimapTest.java
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Mar 12 17:47:10 GMT 2026 - 16.5K bytes - Click Count (0) -
guava/src/com/google/common/collect/ImmutableListMultimap.java
} /** * Returns an immutable multimap containing the same mappings as {@code multimap}. The generated * multimap's key and value orderings correspond to the iteration ordering of the {@code * multimap.asMap()} view. * * <p>Despite the method name, this method attempts to avoid actually copying the data when it is * safe to do so. The exact circumstances under which a copy will or will not be performed areCreated: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Dec 09 15:58:48 GMT 2025 - 19.3K bytes - Click Count (0) -
cycle_suppress_list.txt
FIELD com.google.common.collect.AbstractMapBasedMultimap.map FIELD com.google.common.collect.AbstractMultimap.asMap com.google.common.collect.AbstractMapBasedMultimap.NavigableAsMap FIELD com.google.common.collect.AbstractMultimap.values com.google.common.collect.LinkedListMultimap.get.$
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Jul 24 01:59:49 GMT 2025 - 3.2K bytes - Click Count (0) -
guava-tests/test/com/google/common/cache/CacheRefreshTest.java
assertThat(loader.getLoadCount()).isEqualTo(expectedLoads); assertThat(loader.getReloadCount()).isEqualTo(expectedReloads); // write to 1 to delay its refresh cache.asMap().put(1, -1); ticker.advance(1, MILLISECONDS); assertThat(cache.getUnchecked(0)).isEqualTo(1); assertThat(cache.getUnchecked(1)).isEqualTo(-1); assertThat(cache.getUnchecked(2)).isEqualTo(2);
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Sep 30 22:03:28 GMT 2025 - 4K bytes - Click Count (0)