Searched refs:asMap (Results 1 - 25 of 75) sorted by relevance

123

/external/guava/guava-tests/test/com/google/common/cache/
H A DCacheManualTest.java46 assertNull(cache.asMap().get(one));
47 assertFalse(cache.asMap().containsKey(one));
48 assertFalse(cache.asMap().containsValue(two));
56 assertNull(cache.asMap().get(two));
57 assertFalse(cache.asMap().containsKey(two));
58 assertFalse(cache.asMap().containsValue(one));
68 assertSame(two, cache.asMap().get(one));
69 assertTrue(cache.asMap().containsKey(one));
70 assertTrue(cache.asMap().containsValue(two));
78 assertNull(cache.asMap()
[all...]
H A DCacheReferencesTest.java69 assertTrue(cache.asMap().containsKey(key));
70 assertTrue(cache.asMap().containsValue(value));
80 assertFalse(cache.asMap().isEmpty());
83 assertTrue(cache.asMap().isEmpty());
84 assertFalse(cache.asMap().containsKey(key));
85 assertFalse(cache.asMap().containsValue(value));
97 assertEquals(ImmutableSet.of(key1, key2), cache.asMap().keySet());
98 ASSERT.that(cache.asMap().values()).hasContentsAnyOrder(value1, value2);
100 cache.asMap().entrySet());
113 assertFalse(cache.asMap()
[all...]
H A DPopulatedCachesTest.java62 assertMapSize(cache.asMap(), WARMUP_SIZE);
73 assertTrue(cache.asMap().containsKey(entry.getKey()));
74 assertTrue(cache.asMap().containsValue(entry.getValue()));
90 assertSame(entry.getValue(), cache.asMap().put(entry.getKey(), newValue));
94 assertNull(cache.asMap().put(newKey, entry.getValue()));
113 assertSame(entry.getValue(), cache.asMap().putIfAbsent(entry.getKey(), newValue));
115 assertNull(cache.asMap().putIfAbsent(newKey, entry.getValue()));
133 cache.asMap().putAll(ImmutableMap.of(newKey, newValue));
148 assertSame(entry.getValue(), cache.asMap().replace(entry.getKey(), newValue));
149 assertTrue(cache.asMap()
[all...]
H A DEmptyCachesTest.java116 Set<Object> keys = cache.asMap().keySet();
130 cache.asMap().keySet().add(1);
137 cache.asMap().keySet().addAll(asList(1, 2));
149 Set<Object> keys = cache.asMap().keySet();
158 Set<Object> keys = cache.asMap().keySet();
174 Set<Object> keys = cache.asMap().keySet();
193 Collection<Object> values = cache.asMap().values();
207 cache.asMap().values().add(1);
214 cache.asMap().values().addAll(asList(1, 2));
226 Collection<Object> values = cache.asMap()
[all...]
H A DCacheExpirationTest.java142 assertEquals(1, Iterators.size(cache.asMap().entrySet().iterator()));
143 assertEquals(1, Iterators.size(cache.asMap().keySet().iterator()));
144 assertEquals(1, Iterators.size(cache.asMap().values().iterator()));
149 assertFalse(cache.asMap().containsKey(KEY_PREFIX + i));
154 assertFalse(cache.asMap().containsKey(KEY_PREFIX + i));
262 Set<Integer> keySet = cache.asMap().keySet();
314 Set<Integer> keySet = cache.asMap().keySet();
333 // asMap.put saves 3
334 cache.asMap().put(3, -3);
338 // asMap
[all...]
/external/guava/guava-tests/test/com/google/common/collect/
H A DImmutableMultimapAsMapImplementsMapTest.java26 * Test {@link Multimap#asMap()} for an {@link ImmutableMultimap} with
40 return ImmutableMultimap.<String, Integer>of().asMap();
46 return ImmutableMultimap.copyOf(delegate).asMap();
H A DImmutableSetMultimapAsMapImplementsMapTest.java26 * Test {@link Multimap#asMap()} for an {@link ImmutableSetMultimap} with
40 return ImmutableSetMultimap.<String, Integer>of().asMap();
46 return ImmutableSetMultimap.copyOf(delegate).asMap();
H A DUnmodifiableMultimapAsMapImplementsMapTest.java26 * Test {@link Multimap#asMap()} for an unmodifiable multimap with
41 LinkedHashMultimap.<String, Integer>create()).asMap();
47 return Multimaps.unmodifiableMultimap(delegate).asMap();
H A DConstrainedMultimapAsMapImplementsMapTest.java26 * Test {@link Multimap#asMap()} for a constrained multimap with
43 .asMap();
51 .asMap();
H A DMultimapsTransformValuesAsMapTest.java26 * Tests for Multimaps.transformValues().asMap().
41 Functions.<Integer> identity()).asMap();
48 .transformValues(delegate, Functions.<Integer> identity()).asMap();
H A DForMapMultimapAsMapImplementsMapTest.java26 * Test {@link Multimap#asMap()} for a {@link Multimaps#forMap} multimap with
41 return Multimaps.forMap(map).asMap();
49 return Multimaps.forMap(map).asMap();
H A DMultimapsFilterEntriesAsMapTest.java27 * Tests for Multimaps.filterEntries().asMap().
55 return multimap.asMap();
61 return multimap.asMap();
H A DSubMapMultimapAsMapImplementsMapTest.java27 * Test {@code TreeMultimap.asMap().subMap()} with {@link MapInterfaceTest}.
50 return createMultimap().asMap().subMap("e", "p");
59 return multimap.asMap().subMap("e", "p");
H A DMapConstraintsTest.java235 ASSERT.that(constrained.asMap().get("foo")).hasContentsInOrder(1);
236 assertNull(constrained.asMap().get("missing"));
237 assertEquals(multimap.asMap(), constrained.asMap());
256 assertFalse(constrained.asMap().values() instanceof Serializable);
258 constrained.asMap().values().iterator();
271 = multimap.asMap().entrySet().iterator().next();
284 = multimap.asMap().entrySet().iterator().next();
297 = multimap.asMap().entrySet().iterator().next();
310 = multimap.asMap()
[all...]
/external/guava/guava/src/com/google/common/collect/
H A DAbstractListMultimap.java104 @Override public Map<K, Collection<V>> asMap() { method in class:AbstractListMultimap
105 return super.asMap();
H A DAbstractSetMultimap.java104 @Override public Map<K, Collection<V>> asMap() { method in class:AbstractSetMultimap
105 return super.asMap();
H A DAbstractSortedSetMultimap.java102 * asMap().get(Object)} has the same behavior as {@link #get}, returning a
104 * asMap().get(Object)} returns {@code null} instead of an empty collection.
109 @Override public Map<K, Collection<V>> asMap() { method in class:AbstractSortedSetMultimap
110 return super.asMap();
H A DListMultimap.java33 * so explicitly, the map returned by {@link #asMap} has {@code List} values.
77 Map<K, Collection<V>> asMap(); method in interface:ListMultimap
H A DSetMultimap.java34 * the map returned by {@link #asMap} has {@code Set} values.
90 Map<K, Collection<V>> asMap(); method in interface:SetMultimap
H A DSortedSetMultimap.java39 * so explicitly, the map returned by {@link #asMap} has {@code SortedSet}
94 * asMap().get(Object)} has the same behavior as {@link #get}, returning a
96 * asMap().get(Object)} returns {@code null} instead of an empty collection.
102 Map<K, Collection<V>> asMap(); method in interface:SortedSetMultimap
H A DForwardingMultimap.java47 public Map<K, Collection<V>> asMap() { method in class:ForwardingMultimap
48 return delegate().asMap();
/external/guava/guava-gwt/src/com/google/common/collect/
H A DMultimap_CustomFieldSerializerBase.java71 writer.writeInt(instance.asMap().size());
73 : instance.asMap().entrySet()) {
/external/guava/guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/
H A DTreeMultimap.java42 * <p>The collections returned by {@code keySet} and {@code asMap} iterate
163 @Override public SortedMap<K, Collection<V>> asMap() { method in class:TreeMultimap
164 return (SortedMap<K, Collection<V>>) super.asMap();
/external/guava/guava-testlib/src/com/google/common/collect/testing/google/
H A DUnmodifiableCollectionTests.java287 // Test asMap().entrySet()
289 multimap.asMap().entrySet(),
297 multimap.asMap().entrySet().iterator().next().getValue();
379 // Test #asMap()
381 multimap.asMap().remove(sampleKey);
382 fail("asMap().remove() succeeded on unmodifiable multimap");
390 multimap.asMap().get(presentKey).remove(sampleValue);
391 fail("asMap().get().remove() succeeded on unmodifiable multimap");
397 multimap.asMap().values().iterator().next().remove(sampleValue);
398 fail("asMap()
[all...]
/external/guava/guava/src/com/google/common/cache/
H A DForwardingCache.java109 public ConcurrentMap<K, V> asMap() { method in class:ForwardingCache
110 return delegate().asMap();

Completed in 285 milliseconds

123