- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 138 for asMap (0.43 sec)
-
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);
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Tue Oct 28 18:19:59 UTC 2025 - 15.1K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/google/MultimapClearTester.java
Collection<V> collection = multimap().asMap().get(key); if (collection != null) { multimap().clear(); assertEmpty(collection); } } } @MapFeature.Require(SUPPORTS_REMOVE) public void testClearPropagatesToAsMap() { Map<K, Collection<V>> asMap = multimap().asMap(); multimap().clear(); assertEmpty(asMap); } @MapFeature.Require(SUPPORTS_REMOVE)
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Wed Feb 12 21:10:54 UTC 2025 - 4.3K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/EmptyImmutableSetMultimap.java
* just back this out once we stop doing that (which we'll do after our internal GWT setup * changes). */ @Override public ImmutableMap<Object, Collection<Object>> asMap() { return super.asMap(); } private Object readResolve() { return INSTANCE; // preserve singleton property } @GwtIncompatible @J2ktIncompatible private static final long serialVersionUID = 0;
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Mon Sep 22 21:07:18 UTC 2025 - 1.8K bytes - Viewed (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(); }
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Tue Sep 30 22:03:28 UTC 2025 - 19.2K bytes - Viewed (0) -
guava/src/com/google/common/collect/AbstractSortedKeySortedSetMultimap.java
extends AbstractSortedSetMultimap<K, V> { AbstractSortedKeySortedSetMultimap(SortedMap<K, Collection<V>> map) { super(map); } @Override public SortedMap<K, Collection<V>> asMap() { return (SortedMap<K, Collection<V>>) super.asMap(); } @Override SortedMap<K, Collection<V>> backingMap() { return (SortedMap<K, Collection<V>>) super.backingMap(); } @Override public SortedSet<K> keySet() {
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Sun Dec 22 03:38:46 UTC 2024 - 1.8K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/google/UnmodifiableCollectionTests.java
try { multimap.asMap().get(presentKey).remove(sampleValue); fail("asMap().get().remove() succeeded on unmodifiable multimap"); } catch (UnsupportedOperationException expected) { } assertMultimapRemainsUnmodified(multimap, originalEntries); try { multimap.asMap().values().iterator().next().remove(sampleValue);Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Sun Aug 10 19:54:19 UTC 2025 - 14.9K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/ListMultimap.java
* this map with the more specific generic type {@code Map<K, List<V>>}, call {@link * Multimaps#asMap(ListMultimap)} instead. */ @Override Map<K, Collection<V>> asMap(); /** * Compares the specified object to this multimap for equality. * * <p>Two {@code ListMultimap} instances are equal if, for each key, they contain the same valuesRegistered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Sun Dec 22 03:38:46 UTC 2024 - 3.4K bytes - Viewed (0) -
guava/src/com/google/common/collect/ListMultimap.java
* this map with the more specific generic type {@code Map<K, List<V>>}, call {@link * Multimaps#asMap(ListMultimap)} instead. */ @Override Map<K, Collection<V>> asMap(); /** * Compares the specified object to this multimap for equality. * * <p>Two {@code ListMultimap} instances are equal if, for each key, they contain the same valuesRegistered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Sun Dec 22 03:38:46 UTC 2024 - 3.4K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/google/SortedSetMultimapAsMapTester.java
for (Collection<V> valueCollection : multimap().asMap().values()) { SortedSet<V> valueSet = (SortedSet<V>) valueCollection; assertEquals(multimap().valueComparator(), valueSet.comparator()); } } public void testAsMapGetImplementsSortedSet() { for (K key : multimap().keySet()) { SortedSet<V> valueSet = (SortedSet<V>) multimap().asMap().get(key);
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Nov 14 23:40:07 UTC 2024 - 2.4K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/MultimapsTransformValuesAsMapTest.java
.asMap(); } @Override protected Map<String, Collection<Integer>> makePopulatedMap() { ListMultimap<String, Integer> delegate = ArrayListMultimap.create(); populate(delegate); return Multimaps.transformValues(delegate, Functions.<Integer>identity()).asMap(); }
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Sat Dec 21 14:50:24 UTC 2024 - 1.6K bytes - Viewed (0)