Home
last modified time | relevance | path

Searched refs:toList (Results 1 – 19 of 19) sorted by relevance

/libcore/ojluni/src/test/java/util/stream/boottest/java/util/stream/
DSliceSpliteratorTest.java34 import static java.util.stream.Collectors.toList;
74 … final Collection<Integer> source = IntStream.range(0, size).boxed().collect(toList()); in sliceSpliteratorDataProvider()
87 … final Collection<Integer> source = IntStream.range(0, size).boxed().collect(toList()); in sliceSpliteratorDataProvider()
100 … final Collection<Long> source = LongStream.range(0, size).boxed().collect(toList()); in sliceSpliteratorDataProvider()
113 … Collection<Double> source = LongStream.range(0, size).asDoubleStream().boxed().collect(toList()); in sliceSpliteratorDataProvider()
129 … final Collection<Integer> source = IntStream.range(0, size).boxed().collect(toList()); in sliceSpliteratorDataProvider()
143 … final Collection<Integer> source = IntStream.range(0, size).boxed().collect(toList()); in sliceSpliteratorDataProvider()
157 … final Collection<Long> source = LongStream.range(0, size).boxed().collect(toList()); in sliceSpliteratorDataProvider()
171 … Collection<Double> source = LongStream.range(0, size).asDoubleStream().boxed().collect(toList()); in sliceSpliteratorDataProvider()
DSpinedBufferTest.java49 .collect(Collectors.toList());
113 .collect(Collectors.toList()); in testLastSplit()
188 .collect(Collectors.toList()); in testIntLastSplit()
263 .collect(Collectors.toList()); in testLongLastSplit()
339 .collect(Collectors.toList()); in testLongLastSplit()
DIntNodeTest.java52 nodes.add(tree(toList(array), l -> Nodes.node(toIntArray(l)))); in createSizes()
71 private List<Integer> toList(int[] a) { in toList() method in IntNodeTest
DLongNodeTest.java52 nodes.add(tree(toList(array), l -> Nodes.node(toLongArray(l)))); in createSizes()
71 private List<Long> toList(long[] a) { in toList() method in LongNodeTest
DDoubleNodeTest.java52 nodes.add(tree(toList(array), l -> Nodes.node(toDoubleArray(l)))); in createSizes()
71 private List<Double> toList(double[] a) { in toList() method in DoubleNodeTest
DStreamOpFlagsTest.java39 import static java.util.stream.Collectors.toList;
119 … = StreamOpFlagTestHelper.allStreamFlags().stream().map(StreamOpFlag::set).collect(toList()); in testPairSet()
138 … = StreamOpFlagTestHelper.allStreamFlags().stream().map(StreamOpFlag::set).collect(toList()); in testPairSetAndClear()
/libcore/luni/src/test/java/libcore/util/
DCollectionUtilsTest.java39 assertEquals(Arrays.<String>asList("a", "b", "c", "d", "e"), toList(strings)); in testDereferenceIterable()
42 assertEquals(Arrays.<String>asList("a", "c", "d", "e"), toList(strings)); in testDereferenceIterable()
64 assertEquals(Arrays.<String>asList(), toList(strings)); in testDereferenceIterable()
67 private <T> List<T> toList(Iterable<T> iterable) { in toList() method in CollectionUtilsTest
/libcore/ojluni/src/test/java/util/stream/bootlib/java/util/stream/
DStreamTestScenario.java61 for (U t : m.apply(data.stream()).collect(Collectors.toList())) { in STREAM_COLLECT()
183 for (U u : m.apply(data.parallelStream()).collect(Collectors.toList())) in PAR_STREAM_COLLECT_TO_LIST()
192 for (U u : m.apply(data.stream().parallel()).collect(Collectors.toList())) in STREAM_TO_PAR_STREAM_COLLECT_TO_LIST()
201 for (U u : m.apply(data.parallelStream().sequential()).collect(Collectors.toList())) in PAR_STREAM_TO_STREAM_COLLECT_TO_LIST()
/libcore/ojluni/src/test/java/util/stream/testlib/org/openjdk/testlib/java/util/stream/
DStreamTestScenario.java64 for (U t : m.apply(data.stream()).collect(Collectors.toList())) { in STREAM_COLLECT()
186 for (U u : m.apply(data.parallelStream()).collect(Collectors.toList())) in PAR_STREAM_COLLECT_TO_LIST()
195 for (U u : m.apply(data.stream().parallel()).collect(Collectors.toList())) in STREAM_TO_PAR_STREAM_COLLECT_TO_LIST()
204 for (U u : m.apply(data.parallelStream().sequential()).collect(Collectors.toList())) in PAR_STREAM_TO_STREAM_COLLECT_TO_LIST()
/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/stream/
DTabulatorsTest.java60 import static java.util.stream.Collectors.toList;
508 …oncurrent(classifier, ConcurrentSkipListMap::new, groupingBy(classifier2, TreeMap::new, toList())),
514 …classifier, TreeMap::new, groupingByConcurrent(classifier2, ConcurrentSkipListMap::new, toList())),
520 …ncurrentSkipListMap::new, groupingByConcurrent(classifier2, ConcurrentSkipListMap::new, toList())),
584 partitioningBy(classifier, toList()),
608 List<Integer> asList = exerciseTerminalOps(data, s -> s.collect(toList()));
609 …mutableList = exerciseTerminalOps(data, s -> s.collect(collectingAndThen(toList(), Collections::un…
DStreamBuilderTest.java42 import static java.util.stream.Collectors.toList;
126 expectedResult(IntStream.range(0, size).boxed().collect(toList())). in testStreamBuilder()
131 expectedResult(IntStream.range(0, size).boxed().collect(toList())). in testStreamBuilder()
DStreamLinkTest.java64 … List<Integer> expected = data.stream().map(e -> (Integer) (e + n)).collect(Collectors.toList());
DIntPrimitiveOpsTests.java78 List<Integer> l = IntStream.range(1, 10).parallel().boxed().collect(Collectors.toList()); in testBox()
DLongPrimitiveOpsTests.java78 List<Long> l = LongStream.range(1, 10).parallel().boxed().collect(Collectors.toList()); in testBox()
DDistinctOpTest.java181 .collect(Collectors.toList()); in testStable()
DSliceOpTest.java233 List<Integer> list = IntStream.range(0, 100).boxed().collect(Collectors.toList()); in testSkipLimitOpsWithNonSplittingSpliterator()
/libcore/ojluni/src/main/java/java/util/stream/
DCollectors.java229 Collector<T, ?, List<T>> toList() {
805 return groupingBy(classifier, toList());
967 return groupingByConcurrent(classifier, ConcurrentHashMap::new, toList());
1110 return partitioningBy(predicate, toList());
/libcore/luni/src/main/java/java/util/concurrent/
DConcurrentSkipListMap.java2322 static final <E> List<E> toList(Collection<E> c) { in toList() method in ConcurrentSkipListMap
2373 public Object[] toArray() { return toList(this).toArray(); } in toArray()
2374 public <T> T[] toArray(T[] a) { return toList(this).toArray(a); } in toArray()
2425 public Object[] toArray() { return toList(this).toArray(); } in toArray()
2426 public <T> T[] toArray(T[] a) { return toList(this).toArray(a); } in toArray()
2500 public Object[] toArray() { return toList(this).toArray(); } in toArray()
2501 public <T> T[] toArray(T[] a) { return toList(this).toArray(a); } in toArray()
/libcore/jsr166-tests/src/test/java/jsr166/
DCompletableFutureTest.java3737 .collect(Collectors.toList()); in testMinimalCompletionStage_minimality()
3752 .collect(Collectors.toList()); in testMinimalCompletionStage_minimality()