Home | History | Annotate | Download | only in collect

Lines Matching defs:ImmutableList

60  * Unit test for {@link ImmutableList}.
73 .named("ImmutableList")
78 .named("ImmutableList, built with Builder.add")
83 .named("ImmutableList, built with Builder.addAll")
88 .named("ImmutableList, reversed")
95 ImmutableList.copyOf(elements));
98 .named("ImmutableList, reserialized")
104 .named("ImmutableList, head subList")
110 .named("ImmutableList, tail subList")
116 .named("ImmutableList, middle subList")
123 .named("ImmutableList, unhashable values")
132 List<String> list = ImmutableList.of();
137 List<String> list = ImmutableList.of("a");
142 List<String> list = ImmutableList.of("a", "b");
147 List<String> list = ImmutableList.of("a", "b", "c");
152 List<String> list = ImmutableList.of("a", "b", "c", "d");
157 List<String> list = ImmutableList.of("a", "b", "c", "d", "e");
162 List<String> list = ImmutableList.of("a", "b", "c", "d", "e", "f");
167 List<String> list = ImmutableList.of("a", "b", "c", "d", "e", "f", "g");
172 List<String> list = ImmutableList.of(
179 List<String> list = ImmutableList.of(
186 List<String> list = ImmutableList.of(
193 List<String> list = ImmutableList.of(
202 List<String> list = ImmutableList.of(
209 List<String> list = ImmutableList.of(
217 List<String> list = ImmutableList.of(
226 ImmutableList.of((String) null);
234 ImmutableList.of("a", null, "b");
241 List<String> a = ImmutableList.of("a");
243 ImmutableList.of(a, a);
248 List<String[]> list = ImmutableList.<String[]>of(array);
254 List<String> list = ImmutableList.copyOf(array);
260 List<String> list = ImmutableList.copyOf(array);
266 ImmutableList.copyOf((String[]) null);
275 ImmutableList.copyOf(array);
284 List<String> list = ImmutableList.copyOf(c);
290 List<String> list = ImmutableList.copyOf(c);
296 List<String> list = ImmutableList.copyOf(c);
299 list = ImmutableList.copyOf(mutableList);
307 ImmutableList.copyOf(c);
315 List<String> list = ImmutableList.copyOf(iterator);
321 List<String> list = ImmutableList.copyOf(iterator);
327 List<String> list = ImmutableList.copyOf(iterator);
334 ImmutableList.copyOf(iterator);
342 ImmutableList.copyOf((Iterator<String>) null);
356 assertEquals(expected, ImmutableList.copyOf(misleading));
358 ImmutableList.copyOf((Iterable<String>) misleading));
374 List<String> list = ImmutableList.copyOf(iterable);
380 ImmutableList.copyOf(iterable);
385 Collection<String> c = ImmutableList.of();
386 assertSame(c, ImmutableList.copyOf(c));
390 Collection<String> c = ImmutableList.of("a");
391 assertSame(c, ImmutableList.copyOf(c));
395 Collection<String> c = ImmutableList.of("a", "b", "c");
396 assertSame(c, ImmutableList.copyOf(c));
416 ImmutableList<Integer> copyOfIterable =
417 ImmutableList.copyOf(iterableToCopy);
487 private static ImmutableList<Integer> elements(Integer... elements) {
488 return ImmutableList.copyOf(elements);
491 private static ImmutableList<ListFrobber> ops(ListFrobber... elements) {
492 return ImmutableList.copyOf(elements);
593 allStates.add(ImmutableList.copyOf(delegate));
595 allStates.add(ImmutableList.copyOf(delegate));
613 tester.testAllPublicStaticMethods(ImmutableList.class);
614 tester.testAllPublicInstanceMethods(ImmutableList.of(1, 2, 3));
619 Collection<String> c = ImmutableList.of();
625 Collection<String> c = ImmutableList.of("a");
626 ImmutableList<String> copy = (SingletonImmutableList<String>)
632 Collection<String> c = ImmutableList.of("a", "b", "c");
637 Collection<String> c = ImmutableList.of("a", "b", "c");
638 assertTrue(c.equals(ImmutableList.of("a", "b", "c")));
639 assertFalse(c.equals(ImmutableList.of("a", "c", "b")));
640 assertFalse(c.equals(ImmutableList.of("a", "b")));
641 assertFalse(c.equals(ImmutableList.of("a", "b", "c", "d")));
645 ImmutableList<String> list = new ImmutableList.Builder<String>()
655 ImmutableList<String> list = new ImmutableList.Builder<String>()
664 ImmutableList<String> list = new ImmutableList.Builder<String>()
676 ImmutableList<String> list = new ImmutableList.Builder<String>()
687 ImmutableList.Builder<Integer> webSafeColorsBuilder
688 = ImmutableList.builder();
696 ImmutableList<Integer> webSafeColors = webSafeColorsBuilder.build();
707 ImmutableList<Integer> addedColor
719 ImmutableList.Builder<String> builder = ImmutableList.builder();
740 ImmutableList.Builder<String> builder = ImmutableList.builder();
753 builder = ImmutableList.builder();
761 builder = ImmutableList.builder();
778 ImmutableList<String> list = ImmutableList.of("a", "b");