Home
last modified time | relevance | path

Searched refs:entryOf (Results 1 – 7 of 7) sorted by relevance

/external/guava/guava/src/com/google/common/collect/
DImmutableBiMap.java66 return new RegularImmutableBiMap<K, V>(entryOf(k1, v1), entryOf(k2, v2)); in of()
76 return new RegularImmutableBiMap<K, V>(entryOf(k1, v1), entryOf(k2, v2), entryOf(k3, v3)); in of()
86 return new RegularImmutableBiMap<K, V>(entryOf(k1, v1), entryOf(k2, v2), entryOf(k3, v3), in of()
87 entryOf(k4, v4)); in of()
97 return new RegularImmutableBiMap<K, V>(entryOf(k1, v1), entryOf(k2, v2), entryOf(k3, v3), in of()
98 entryOf(k4, v4), entryOf(k5, v5)); in of()
DImmutableMap.java89 return new RegularImmutableMap<K, V>(entryOf(k1, v1), entryOf(k2, v2)); in of()
100 entryOf(k1, v1), entryOf(k2, v2), entryOf(k3, v3)); in of()
111 entryOf(k1, v1), entryOf(k2, v2), entryOf(k3, v3), entryOf(k4, v4)); in of()
121 return new RegularImmutableMap<K, V>(entryOf(k1, v1), in of()
122 entryOf(k2, v2), entryOf(k3, v3), entryOf(k4, v4), entryOf(k5, v5)); in of()
134 static <K, V> TerminalEntry<K, V> entryOf(K key, V value) { in entryOf() method in ImmutableMap
206 TerminalEntry<K, V> entry = entryOf(key, value); in put()
DImmutableSortedMap.java138 return fromEntries(Ordering.natural(), false, 2, entryOf(k1, v1), entryOf(k2, v2)); in of()
151 return fromEntries(Ordering.natural(), false, 3, entryOf(k1, v1), entryOf(k2, v2), in of()
152 entryOf(k3, v3)); in of()
165 return fromEntries(Ordering.natural(), false, 4, entryOf(k1, v1), entryOf(k2, v2), in of()
166 entryOf(k3, v3), entryOf(k4, v4)); in of()
179 return fromEntries(Ordering.natural(), false, 5, entryOf(k1, v1), entryOf(k2, v2), in of()
180 entryOf(k3, v3), entryOf(k4, v4), entryOf(k5, v5)); in of()
282 entries[i] = entryOf(entry.getKey(), entry.getValue()); in fromEntries()
/external/guava/guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/
DImmutableMap.java56 return new RegularImmutableMap<K, V>(entryOf(k1, v1), entryOf(k2, v2)); in of()
62 entryOf(k1, v1), entryOf(k2, v2), entryOf(k3, v3)); in of()
68 entryOf(k1, v1), entryOf(k2, v2), entryOf(k3, v3), entryOf(k4, v4)); in of()
73 return new RegularImmutableMap<K, V>(entryOf(k1, v1), in of()
74 entryOf(k2, v2), entryOf(k3, v3), entryOf(k4, v4), entryOf(k5, v5)); in of()
83 static <K, V> Entry<K, V> entryOf(K key, V value) { in entryOf() method in ImmutableMap
94 entries.add(entryOf(key, value)); in put()
106 entries.add(entryOf((K) entry.getKey(), (V) entry.getValue())); in put()
DImmutableSortedMap.java84 return create(Ordering.natural(), entryOf(k1, v1)); in of()
192 entries.add(entryOf(key, value)); in put()
/external/guava/guava-tests/test/com/google/common/cache/
DEmptyCachesTest.java286 cache.asMap().entrySet().add(entryOf(1, 1)); in testEntrySet_addNotSupported()
293 cache.asMap().values().addAll(asList(entryOf(1, 1), entryOf(2, 2))); in testEntrySet_addNotSupported()
316 assertFalse(entrySet.remove(entryOf(6, 6))); in testEntrySet_empty_remove()
317 assertFalse(entrySet.remove(entryOf(-6, -6))); in testEntrySet_empty_remove()
318 assertFalse(entrySet.removeAll(asList(null, entryOf(0, 0), entryOf(15, 15)))); in testEntrySet_empty_remove()
319 assertFalse(entrySet.retainAll(asList(null, entryOf(0, 0), entryOf(15, 15)))); in testEntrySet_empty_remove()
333 entrySet.remove(entryOf(1, 1)); in testEntrySet_remove()
334 entrySet.remove(entryOf(2, 2)); in testEntrySet_remove()
336 assertFalse(entrySet.remove(entryOf(1, 1))); in testEntrySet_remove()
337 assertFalse(entrySet.remove(entryOf(6, 6))); in testEntrySet_remove()
[all …]
DPopulatedCachesTest.java91 warmed.add(entryOf(entry.getKey(), newValue)); in testPut_populated()
98 warmed.add(entryOf(newKey, entry.getValue())); in testPut_populated()
119 warmed.add(entryOf(newKey, entry.getValue())); in testPutIfAbsent_populated()
349 entries.add(entryOf(key, value));
354 private Entry<Object, Object> entryOf(Object key, Object value) {