Home | History | Annotate | Download | only in collect

Lines Matching defs:ImmutableMap

24 import com.google.common.collect.ImmutableMap.Builder;
57 * Tests for {@link ImmutableMap}.
76 .named("ImmutableMap.keySet")
85 .named("ImmutableMap.entrySet")
92 .named("ImmutableMap.values")
103 .named("ImmutableMap.keySet, reserialized")
114 .named("ImmutableMap.entrySet, reserialized")
122 .named("ImmutableMap.values, reserialized")
129 .named("ImmutableMap.values, unhashable")
134 .named("ImmutableMap.values.asList")
177 return ImmutableMap.of();
181 return ImmutableMap.of("one", 1, "two", 2, "three", 3);
196 return ImmutableMap.of("one", 1);
213 ImmutableMap.of("one", 1, "two", 2, "three", 3));
234 return ImmutableMap.of(
250 @GwtIncompatible("GWT's ImmutableMap emulation is backed by java.util.HashMap.")
254 return ImmutableMap.of();
259 return ImmutableMap.of(
272 @GwtIncompatible("GWT's ImmutableMap emulation is backed by java.util.HashMap.")
277 return ImmutableMap.of(0, unhashables.e0);
283 ImmutableMap<String, Integer> map
289 ImmutableMap<String, Integer> map = new Builder<String, Integer>()
296 ImmutableMap<String, Integer> map = new Builder<String, Integer>()
308 ImmutableMap<String, Integer> map = new Builder<String, Integer>()
333 ImmutableMap.Builder<String, Integer> builder =
352 ImmutableMap<String, Integer> map = new Builder<String, Integer>()
367 ImmutableMap<String, Integer> map = new Builder<String, Integer>()
377 ImmutableMap<String, Integer> mapOne = builder
381 ImmutableMap<String, Integer> mapTwo = builder
441 ImmutableMap.of("one", 1),
444 ImmutableMap.of("one", 1, "two", 2),
447 ImmutableMap.of("one", 1, "two", 2, "three", 3),
450 ImmutableMap.of("one", 1, "two", 2, "three", 3, "four", 4),
453 ImmutableMap.of("one", 1, "two", 2, "three", 3, "four", 4, "five", 5),
459 ImmutableMap.of(null, 1);
465 ImmutableMap.of("one", 1, null, 2);
473 ImmutableMap.of("one", null);
479 ImmutableMap.of("one", 1, "two", null);
487 ImmutableMap.of("one", 1, "one", 1);
495 ImmutableMap<String, Integer> copy
496 = ImmutableMap.copyOf(Collections.<String, Integer>emptyMap());
498 assertSame(copy, ImmutableMap.copyOf(copy));
502 ImmutableMap<String, Integer> copy
503 = ImmutableMap.copyOf(Collections.singletonMap("one", 1));
505 assertSame(copy, ImmutableMap.copyOf(copy));
514 ImmutableMap<String, Integer> copy = ImmutableMap.copyOf(original);
516 assertSame(copy, ImmutableMap.copyOf(copy));
521 ImmutableMap<String, Integer> map = ImmutableMap.of("one", 1);
528 tester.testAllPublicStaticMethods(ImmutableMap.class);
530 new ImmutableMap.Builder<Object, Object>());
531 tester.testAllPublicInstanceMethods(ImmutableMap.of());
532 tester.testAllPublicInstanceMethods(ImmutableMap.of("one", 1));
534 ImmutableMap.of("one", 1, "two", 2, "three", 3));
568 Map<String, IntHolder> map = ImmutableMap.of("a", holderA, "b", holderB);
572 Map<String, Integer> intMap = ImmutableMap.of("a", 3, "b", 2);
579 Map<String, Integer> map = ImmutableMap.of("one", 1, "two", 2, "three", 3);