Home
last modified time | relevance | path

Searched refs:sorted (Results 1 – 25 of 39) sorted by relevance

12

/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/stream/
DSortedOpTest.java64 .sorted(); in testRefStreamTooLarge()
73 .sorted(); in testIntStreamTooLarge()
82 .sorted(); in testLongStreamTooLarge()
91 .sorted(); in testDoubleStreamTooLarge()
123 assertCountSum(countTo(0).stream().sorted(), 0, 0); in testSorted()
124 assertCountSum(countTo(10).stream().sorted(), 10, 55); in testSorted()
125 assertCountSum(countTo(10).stream().sorted(cInteger.reversed()), 10, 55); in testSorted()
128 assertSorted(to10.stream().sorted(cInteger.reversed()).iterator(), cInteger.reversed()); in testSorted()
131 assertSorted(to10.stream().sorted().iterator()); in testSorted()
133 Spliterator<Integer> s = to10.stream().sorted().spliterator(); in testSorted()
[all …]
DDoublePrimitiveOpsTests.java80 double[] array = Arrays.stream(content).sorted().toArray(); in testSort()
85 double[] array = Arrays.stream(content).parallel().sorted().toArray(); in testSort()
94 … assertEquals(LongStream.range(0, 10).asDoubleStream().sorted().distinct().toArray(), range); in testSortDistinct()
95 …assertEquals(LongStream.range(0, 10).asDoubleStream().parallel().sorted().distinct().toArray(), ra… in testSortDistinct()
101 assertEquals(DoubleStream.of(data).sorted().distinct().toArray(), expected); in testSortDistinct()
102 assertEquals(DoubleStream.of(data).parallel().sorted().distinct().toArray(), expected); in testSortDistinct()
114 double[] array = Arrays.stream(content).sorted().sorted().toArray(); in testSortSort()
119 double[] array = Arrays.stream(content).parallel().sorted().sorted().toArray(); in testSortSort()
DIntPrimitiveOpsTests.java139 int[] array = Arrays.stream(content).sorted().toArray(); in testSort()
144 int[] array = Arrays.stream(content).parallel().sorted().toArray(); in testSort()
153 assertEquals(IntStream.range(0, 10).sorted().distinct().toArray(), range); in testSortDistinct()
154 assertEquals(IntStream.range(0, 10).parallel().sorted().distinct().toArray(), range); in testSortDistinct()
158 assertEquals(IntStream.of(data).sorted().distinct().toArray(), expected); in testSortDistinct()
159 assertEquals(IntStream.of(data).parallel().sorted().distinct().toArray(), expected); in testSortDistinct()
167 assertEquals(IntStream.of(input).sorted().asLongStream().sorted().distinct().toArray(), in testSortDistinct()
173 assertEquals(IntStream.of(input).sorted().distinct().asDoubleStream() in testSortDistinct()
174 .sorted().distinct().toArray(), expectedDoubles); in testSortDistinct()
186 int[] array = Arrays.stream(content).sorted().sorted().toArray(); in testSortSort()
[all …]
DLongPrimitiveOpsTests.java132 long[] array = Arrays.stream(content).sorted().toArray(); in testSort()
137 long[] array = Arrays.stream(content).parallel().sorted().toArray(); in testSort()
146 assertEquals(LongStream.range(0, 10).sorted().distinct().toArray(), range); in testSortDistinct()
147 assertEquals(LongStream.range(0, 10).parallel().sorted().distinct().toArray(), range); in testSortDistinct()
151 assertEquals(LongStream.of(data).sorted().distinct().toArray(), expected); in testSortDistinct()
152 assertEquals(LongStream.of(data).parallel().sorted().distinct().toArray(), expected); in testSortDistinct()
161 assertEquals(LongStream.of(input).sorted().distinct().asDoubleStream() in testSortDistinct()
162 .sorted().distinct().toArray(), expectedDoubles); in testSortDistinct()
174 long[] array = Arrays.stream(content).sorted().sorted().toArray(); in testSortSort()
179 long[] array = Arrays.stream(content).parallel().sorted().sorted().toArray(); in testSortSort()
DToArrayOpTest.java80 Object[] objects = exerciseTerminalOps(data, s -> s.sorted(), s -> s.toArray()); in testOpsWithSorted()
107 s.sorted() in testAsArrayWithType()
109 .map((Double d) -> Integer.valueOf(d.intValue())).sorted(), in testAsArrayWithType()
117 s -> s.sorted(),
118 s -> s.sorted()
150 s -> s.sorted()
235 int[] ints = exerciseTerminalOps(data, s -> s.sorted(), (IntStream s) -> s.toArray());
262 s -> s.sorted(),
263 s -> s.sorted()
277 s -> s.sorted()
[all …]
DSequentialOpTest.java112 (UnaryOperator<Stream<Integer>>) s -> s.sorted(Comparator.naturalOrder()), in testMixedSeqPar()
113 … (UnaryOperator<Stream<Integer>>) s -> s.map(id).sorted(Comparator.naturalOrder()).map(id), in testMixedSeqPar()
114 …(UnaryOperator<Stream<Integer>>) s -> s.filter(LambdaTestHelpers.pEven).sorted(Comparator.naturalO… in testMixedSeqPar()
DDistinctOpTest.java158 .stream(s -> s.distinct().sorted(), in testDistinctSorted()
168 .stream(s -> s.sorted().distinct(), in testSortedDistinct()
DIntUniqOpTest.java69 stream(s -> s.sorted().distinct().boxed()). in testOpSorted()
DStreamSpliteratorTest.java335 s -> s.sorted()); in streamFunctions()
428 s -> s.sorted()); in intStreamFunctions()
521 s -> s.sorted()); in longStreamFunctions()
614 s -> s.sorted()); in doubleStreamFunctions()
/libcore/ojluni/src/test/java/util/PriorityQueue/
DPriorityQueueSort.java63 List<Integer> sorted = new ArrayList<>(n); in main() local
65 sorted.add(new Integer(i)); in main()
66 List<Integer> shuffled = new ArrayList<>(sorted); in main()
76 if (!recons.equals(sorted)) in main()
83 if (!recons.equals(sorted)) in main()
95 for (Iterator<Integer> i = sorted.iterator(); i.hasNext(); ) in main()
99 if (!recons.equals(sorted)) in main()
/libcore/ojluni/src/test/java/util/Collections/
DNullComparator.java42 List sorted = new ArrayList(list); in main() local
47 if (!Arrays.asList(a).equals(sorted)) in main()
51 if (!Arrays.asList(a).equals(sorted)) in main()
58 if (!tmp.equals(sorted)) in main()
/libcore/ojluni/src/test/java/util/stream/testlib/org/openjdk/testlib/java/util/stream/
DDefaultMethodStreams.java237 public Stream<T> sorted() { in sorted() method in DefaultMethodStreams.DefaultMethodRefStream
238 return s.sorted(); in sorted()
242 public Stream<T> sorted(Comparator<? super T> comparator) { in sorted() method in DefaultMethodStreams.DefaultMethodRefStream
243 return s.sorted(comparator); in sorted()
433 public IntStream sorted() { in sorted() method in DefaultMethodStreams.DefaultMethodIntStream
434 return s.sorted(); in sorted()
644 public LongStream sorted() { in sorted() method in DefaultMethodStreams.DefaultMethodLongStream
645 return s.sorted(); in sorted()
837 public DoubleStream sorted() { in sorted() method in DefaultMethodStreams.DefaultMethodDoubleStream
838 return s.sorted(); in sorted()
/libcore/tools/expected_upstream/
Dojluni_versions_report.py50 top_tree = {k: top_tree[k] for k in sorted(top_tree)}
/libcore/ojluni/src/test/java/util/Random/
DRandomCanaryPi.java60 .sorted(Comparator.comparing(RandomGeneratorFactory::name)) in main()
/libcore/tools/upstream/
Dupstream-diff129 repositories = ['ojluni'] + sorted(
/libcore/tools/testmapping/
Dsave_logs.py69 return sorted(sources, key=os.path.getmtime, reverse=True)
Dgen_smoke_tests.py312 for (test, time) in sorted(
422 return sorted(exclusions)
/libcore/ojluni/src/main/java/java/util/stream/
DStream.java592 Stream<T> sorted();
609 Stream<T> sorted(Comparator<? super T> comparator);
DDoubleStream.java225 DoubleStream sorted(); in sorted() method
/libcore/tools/docs/crypto/
Dupdate_crypto_support.py84 return sorted(seq, key=lambda x: x['name'])
Dformat_supported_algorithm_table.py33 return sorted(seq, key=lambda x: x['name'])
/libcore/ojluni/annotations/flagged_api/java/util/stream/
DDoubleStream.annotated.java48 public java.util.stream.DoubleStream sorted(); in sorted() method
DIntStream.annotated.java48 public java.util.stream.IntStream sorted(); in sorted() method
DLongStream.annotated.java48 public java.util.stream.LongStream sorted(); in sorted() method
/libcore/tools/openjdk-analyzer/src/libcore/tools/analyzer/openjdk/
DMain.java461 .sorted() in printInsn()
472 .sorted() in printInsn()
651 ).sorted().forEach(writer::println); in run()

12