/external/guava/guava-tests/test/com/google/common/cache/ |
CacheManualTest.java | 46 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().get(two)) [all...] |
CacheReferencesTest.java | 69 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().containsKey(key1)) [all...] |
PopulatedCachesTest.java | 62 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().replace(entry.getKey(), newValue, entry.getValue())) [all...] |
EmptyCachesTest.java | 116 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().values() [all...] |
CacheExpirationTest.java | 142 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.replace saves [all...] |
/external/guava/guava-tests/test/com/google/common/collect/ |
ImmutableMultimapAsMapImplementsMapTest.java | 26 * Test {@link Multimap#asMap()} for an {@link ImmutableMultimap} with 40 return ImmutableMultimap.<String, Integer>of().asMap(); 46 return ImmutableMultimap.copyOf(delegate).asMap();
|
ImmutableSetMultimapAsMapImplementsMapTest.java | 26 * Test {@link Multimap#asMap()} for an {@link ImmutableSetMultimap} with 40 return ImmutableSetMultimap.<String, Integer>of().asMap(); 46 return ImmutableSetMultimap.copyOf(delegate).asMap();
|
UnmodifiableMultimapAsMapImplementsMapTest.java | 26 * Test {@link Multimap#asMap()} for an unmodifiable multimap with 41 LinkedHashMultimap.<String, Integer>create()).asMap(); 47 return Multimaps.unmodifiableMultimap(delegate).asMap();
|
ConstrainedMultimapAsMapImplementsMapTest.java | 26 * Test {@link Multimap#asMap()} for a constrained multimap with 43 .asMap(); 51 .asMap();
|
MultimapsTransformValuesAsMapTest.java | 26 * Tests for Multimaps.transformValues().asMap(). 41 Functions.<Integer> identity()).asMap(); 48 .transformValues(delegate, Functions.<Integer> identity()).asMap();
|
ForMapMultimapAsMapImplementsMapTest.java | 26 * Test {@link Multimap#asMap()} for a {@link Multimaps#forMap} multimap with 41 return Multimaps.forMap(map).asMap(); 49 return Multimaps.forMap(map).asMap();
|
MultimapsFilterEntriesAsMapTest.java | 27 * Tests for Multimaps.filterEntries().asMap(). 55 return multimap.asMap(); 61 return multimap.asMap();
|
SubMapMultimapAsMapImplementsMapTest.java | 27 * Test {@code TreeMultimap.asMap().subMap()} with {@link MapInterfaceTest}. 50 return createMultimap().asMap().subMap("e", "p"); 59 return multimap.asMap().subMap("e", "p");
|
MapConstraintsTest.java | 235 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().entrySet().iterator().next() [all...] |
/external/guava/guava/src/com/google/common/collect/ |
AbstractListMultimap.java | 104 @Override public Map<K, Collection<V>> asMap() { 105 return super.asMap();
|
AbstractSetMultimap.java | 104 @Override public Map<K, Collection<V>> asMap() { 105 return super.asMap();
|
AbstractSortedSetMultimap.java | 102 * 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() { 110 return super.asMap();
|
ListMultimap.java | 33 * so explicitly, the map returned by {@link #asMap} has {@code List} values. 77 Map<K, Collection<V>> asMap();
|
SetMultimap.java | 34 * the map returned by {@link #asMap} has {@code Set} values. 90 Map<K, Collection<V>> asMap();
|
SortedSetMultimap.java | 39 * 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();
|
ForwardingMultimap.java | 47 public Map<K, Collection<V>> asMap() { 48 return delegate().asMap();
|
/external/guava/guava-gwt/src/com/google/common/collect/ |
Multimap_CustomFieldSerializerBase.java | 71 writer.writeInt(instance.asMap().size()); 73 : instance.asMap().entrySet()) {
|
/external/guava/guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ |
TreeMultimap.java | 42 * <p>The collections returned by {@code keySet} and {@code asMap} iterate 163 @Override public SortedMap<K, Collection<V>> asMap() { 164 return (SortedMap<K, Collection<V>>) super.asMap();
|
/external/guava/guava-testlib/src/com/google/common/collect/testing/google/ |
UnmodifiableCollectionTests.java | 287 // 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().values().iterator().next().remove() succeeded on " [all...] |
/external/guava/guava/src/com/google/common/cache/ |
ForwardingCache.java | 109 public ConcurrentMap<K, V> asMap() { 110 return delegate().asMap();
|