HomeSort by relevance Sort by last modified time
    Searched refs:ImmutableMap (Results 26 - 50 of 129) sorted by null

12 3 4 5 6

  /external/guava/guava-tests/test/com/google/common/collect/
MapsTest.java 368 Map<Integer, String> left = ImmutableMap.of(
370 Map<Integer, String> right = ImmutableMap.of(
375 assertEquals(ImmutableMap.of(2, "b", 4, "d"), diff1.entriesOnlyOnLeft());
376 assertEquals(ImmutableMap.of(6, "z"), diff1.entriesOnlyOnRight());
377 assertEquals(ImmutableMap.of(1, "a"), diff1.entriesInCommon());
378 assertEquals(ImmutableMap.of(3,
387 assertEquals(ImmutableMap.of(6, "z"), diff2.entriesOnlyOnLeft());
388 assertEquals(ImmutableMap.of(2, "b", 4, "d"), diff2.entriesOnlyOnRight());
389 assertEquals(ImmutableMap.of(1, "a"), diff2.entriesInCommon());
390 assertEquals(ImmutableMap.of(3
    [all...]
AbstractTableTest.java 159 assertEquals(ImmutableMap.of(1, 'a', 3, 'c'), row);
161 assertEquals(ImmutableMap.of(1, 'a'), row);
163 assertEquals(ImmutableMap.of(), row);
165 assertEquals(ImmutableMap.of(2, 'b'), row);
167 assertEquals(ImmutableMap.of(), row);
169 assertEquals(ImmutableMap.of(5, 'x'), row);
WellBehavedMapTest.java 36 map.putAll(ImmutableMap.of(Foo.X, 1, Foo.Y, 2, Foo.Z, 3));
52 map.putAll(ImmutableMap.of(Foo.X, 1, Foo.Y, 2, Foo.Z, 3));
58 assertEquals(ImmutableMap.of(Foo.X, 6, Foo.Y, 7, Foo.Z, 8), map);
64 map.putAll(ImmutableMap.of(Foo.X, 1));
91 map.putAll(ImmutableMap.of(Foo.X, 1, Foo.Y, 2, Foo.Z, 3));
MapsTransformValuesTest.java 98 ImmutableMap.<String, Integer>of(), Functions.toStringFunction());
104 ImmutableMap.of("a", 1), Functions.toStringFunction());
105 Map<String, String> expected = ImmutableMap.of("a", "1");
111 Map<String, Integer> underlying = ImmutableMap.of("a", 1);
119 ImmutableMap.of("a", 1), Functions.toStringFunction());
127 map.putAll(ImmutableMap.of("b", "2"));
161 Map<String, Boolean> expected = ImmutableMap.of("a", true, "b", false);
243 Map<String, Integer> underlying = ImmutableMap.of("a", 0, "b", 1, "c", 2);
255 map = Maps.transformValues(ImmutableMap.of("a", 1, "b", 2, "c", 3),
TreeBasedTableTest.java 113 assertEquals(table.row("b"), ImmutableMap.of("b", "x", "x", "n"));
115 assertEquals(table.row("b"), ImmutableMap.of());
288 assertEquals(ImmutableMap.of(1, 'b'), map.get("bar"));
299 assertEquals(ImmutableMap.of(1, 'a', 3, 'c'), map.get("foo"));
310 assertEquals(ImmutableMap.of(2, 'd'), map.get("dog"));
429 assertEquals(ImmutableMap.of(1, 'a', 3, 'c'), row);
430 assertEquals(ImmutableMap.of(3, 'c'), subRow);
432 assertEquals(ImmutableMap.of(1, 'a'), row);
433 assertEquals(ImmutableMap.of(), subRow);
435 assertEquals(ImmutableMap.of(), row)
    [all...]
AbstractBiMapTest.java 117 assertEquals(ImmutableMap.of("one", 1, "two", 2), inverse);
127 assertEquals(ImmutableMap.of("one", 1, "two", 2), inverse);
128 assertEquals(ImmutableMap.of(1, "one", 2, "two"), bimap);
141 assertEquals(ImmutableMap.of(1, "one"), bimap);
144 assertEquals(ImmutableMap.of(1, "one", 2, "two"), bimap);
147 assertEquals(ImmutableMap.of(1, "one", 2, "two"), bimap);
150 assertEquals(ImmutableMap.of(1, "ONE", 2, "two"), bimap);
157 assertEquals(ImmutableMap.of(1, "ONE", 2, "two"), bimap);
187 Map<Integer, String> newEntries = ImmutableMap.of(2, "two", 3, "three");
189 assertEquals(ImmutableMap.of(1, "one", 2, "two", 3, "three"), bimap)
    [all...]
MapsTransformValuesUnmodifiableIteratorTest.java 151 ImmutableMap.<String, Integer>of(), Functions.toStringFunction());
157 ImmutableMap.of("a", 1), Functions.toStringFunction());
158 Map<String, String> expected = ImmutableMap.of("a", "1");
164 Map<String, Integer> underlying = ImmutableMap.of("a", 1);
172 ImmutableMap.of("a", 1), Functions.toStringFunction());
180 map.putAll(ImmutableMap.of("b", "2"));
214 Map<String, Boolean> expected = ImmutableMap.of("a", true, "b", false);
296 Map<String, Integer> underlying = ImmutableMap.of("a", 0, "b", 1, "c", 2);
308 map = Maps.transformValues(ImmutableMap.of("a", 1, "b", 2, "c", 3),
  /external/guava/guava/src/com/google/common/collect/
ImmutableClassToInstanceMap.java 24 * A class-to-instance map backed by an {@link ImmutableMap}. See also {@link
58 private final ImmutableMap.Builder<Class<? extends B>, B> mapBuilder
59 = ImmutableMap.builder();
128 private final ImmutableMap<Class<? extends B>, B> delegate;
131 ImmutableMap<Class<? extends B>, B> delegate) {
RegularImmutableMultiset.java 36 private final transient ImmutableMap<E, Integer> map;
39 RegularImmutableMultiset(ImmutableMap<E, Integer> map, int size) {
ImmutableListMultimap.java 253 ImmutableMap.Builder<K, ImmutableList<V>> builder = ImmutableMap.builder();
268 ImmutableListMultimap(ImmutableMap<K, ImmutableList<V>> map, int size) {
350 ImmutableMap.Builder<Object, ImmutableList<Object>> builder
351 = ImmutableMap.builder();
369 ImmutableMap<Object, ImmutableList<Object>> tmpMap;
EmptyImmutableMap.java 32 final class EmptyImmutableMap extends ImmutableMap<Object, Object> {
ImmutableSortedMapFauxverideShim.java 22 * "Overrides" the {@link ImmutableMap} static methods that lack
30 extends ImmutableMap<K, V> {
34 * {@link ImmutableMap#builder} from consumers of {@code ImmutableSortedMap}.
  /external/guava/guava-gwt/src/com/google/common/collect/
ExplicitOrdering_CustomFieldSerializer.java 38 (ImmutableMap<Object, Integer>) reader.readObject());
RegularImmutableMap_CustomFieldSerializer.java 45 * always have two or more elements, ImmutableMap.copyOf always return
48 return (RegularImmutableMap<Object, Object>) ImmutableMap.copyOf(entries);
  /external/guava/guava/src/com/google/common/cache/
Cache.java 22 import com.google.common.collect.ImmutableMap;
86 ImmutableMap<K, V> getAllPresent(Iterable<? extends K> keys);
ForwardingLoadingCache.java 21 import com.google.common.collect.ImmutableMap;
57 public ImmutableMap<K, V> getAll(Iterable<? extends K> keys) throws ExecutionException {
LoadingCache.java 22 import com.google.common.collect.ImmutableMap;
119 ImmutableMap<K, V> getAll(Iterable<? extends K> keys) throws ExecutionException;
AbstractCache.java 21 import com.google.common.collect.ImmutableMap;
63 public ImmutableMap<K, V> getAllPresent(Iterable<? extends K> keys) {
70 return ImmutableMap.copyOf(result);
ForwardingCache.java 22 import com.google.common.collect.ImmutableMap;
68 public ImmutableMap<K, V> getAllPresent(Iterable<? extends K> keys) {
  /packages/apps/UnifiedEmail/src/com/android/mail/
SenderInfoLoader.java 20 import com.google.common.collect.ImmutableMap;
48 public class SenderInfoLoader extends AsyncTaskLoader<ImmutableMap<String, ContactInfo>> {
90 public ImmutableMap<String, ContactInfo> loadInBackground() {
109 public static ImmutableMap<String, ContactInfo> loadContactPhotos(
159 return ImmutableMap.copyOf(results);
174 return ImmutableMap.copyOf(results);
206 return ImmutableMap.copyOf(results);
  /external/guava/guava-tests/test/com/google/common/cache/
ForwardingCacheTest.java 25 import com.google.common.collect.ImmutableMap;
65 .andReturn(ImmutableMap.of("key", Boolean.TRUE));
67 assertEquals(ImmutableMap.of("key", Boolean.TRUE),
ForwardingLoadingCacheTest.java 25 import com.google.common.collect.ImmutableMap;
71 expect(mock.getAll(ImmutableList.of("key"))).andReturn(ImmutableMap.of("key", Boolean.TRUE));
73 assertEquals(ImmutableMap.of("key", Boolean.TRUE), forward.getAll(ImmutableList.of("key")));
CacheManualTest.java 20 import com.google.common.collect.ImmutableMap;
113 assertEquals(ImmutableMap.of(), cache.getAllPresent(ImmutableList.<Integer>of()));
120 assertEquals(ImmutableMap.of(), cache.getAllPresent(asList(1, 2, 3)));
129 assertEquals(ImmutableMap.of(2, 22), cache.getAllPresent(asList(1, 2, 3)));
138 assertEquals(ImmutableMap.of(2, 22, 3, 33), cache.getAllPresent(asList(1, 2, 3)));
147 assertEquals(ImmutableMap.of(1, 11, 2, 22, 3, 33), cache.getAllPresent(asList(1, 2, 3)));
  /external/jsilver/src/com/google/streamhtmlparser/util/
EntityResolver.java 20 import com.google.common.collect.ImmutableMap;
111 new ImmutableMap.Builder<String, String>()
  /external/clang/include/clang/StaticAnalyzer/Core/PathSensitive/
ProgramStateTrait.h 25 template <typename K, typename D, typename I> class ImmutableMap;
56 // Partial-specialization for ImmutableMap.
59 struct ProgramStatePartialTrait< llvm::ImmutableMap<Key,Data,Info> > {
60 typedef llvm::ImmutableMap<Key,Data,Info> data_type;
103 #define CLANG_ENTO_PROGRAMSTATE_MAP(Key, Value) llvm::ImmutableMap<Key, Value>

Completed in 844 milliseconds

12 3 4 5 6