Home
last modified time | relevance | path

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

/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/stream/
DSortedOpTest.java61 .sorted(); in testRefStreamTooLarge()
70 .sorted(); in testIntStreamTooLarge()
79 .sorted(); in testLongStreamTooLarge()
88 .sorted(); in testDoubleStreamTooLarge()
120 assertCountSum(countTo(0).stream().sorted(), 0, 0); in testSorted()
121 assertCountSum(countTo(10).stream().sorted(), 10, 55); in testSorted()
122 assertCountSum(countTo(10).stream().sorted(cInteger.reversed()), 10, 55); in testSorted()
125 assertSorted(to10.stream().sorted(cInteger.reversed()).iterator(), cInteger.reversed()); in testSorted()
128 assertSorted(to10.stream().sorted().iterator()); in testSorted()
130 Spliterator<Integer> s = to10.stream().sorted().spliterator(); in testSorted()
[all …]
DDoublePrimitiveOpsTests.java65 double[] array = Arrays.stream(content).sorted().toArray(); in testSort()
70 double[] array = Arrays.stream(content).parallel().sorted().toArray(); in testSort()
83 double[] array = Arrays.stream(content).sorted().sorted().toArray(); in testSortSort()
88 double[] array = Arrays.stream(content).parallel().sorted().sorted().toArray(); in testSortSort()
DToArrayOpTest.java78 Object[] objects = exerciseTerminalOps(data, s -> s.sorted(), s -> s.toArray()); in testOpsWithSorted()
105 s.sorted() in testAsArrayWithType()
107 .map((Double d) -> Integer.valueOf(d.intValue())).sorted(), in testAsArrayWithType()
115 s -> s.sorted(),
116 s -> s.sorted()
147 s -> s.sorted()
232 int[] ints = exerciseTerminalOps(data, s -> s.sorted(), (IntStream s) -> s.toArray());
259 s -> s.sorted(),
260 s -> s.sorted()
274 s -> s.sorted()
[all …]
DIntPrimitiveOpsTests.java108 int[] array = Arrays.stream(content).sorted().toArray(); in testSort()
113 int[] array = Arrays.stream(content).parallel().sorted().toArray(); in testSort()
126 int[] array = Arrays.stream(content).sorted().sorted().toArray(); in testSortSort()
131 int[] array = Arrays.stream(content).parallel().sorted().sorted().toArray(); in testSortSort()
DLongPrimitiveOpsTests.java108 long[] array = Arrays.stream(content).sorted().toArray(); in testSort()
113 long[] array = Arrays.stream(content).parallel().sorted().toArray(); in testSort()
126 long[] array = Arrays.stream(content).sorted().sorted().toArray(); in testSortSort()
131 long[] array = Arrays.stream(content).parallel().sorted().sorted().toArray(); in testSortSort()
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.java159 .stream(s -> s.distinct().sorted(), in testDistinctSorted()
169 .stream(s -> s.sorted().distinct(), in testSortedDistinct()
DIntUniqOpTest.java69 stream(s -> s.sorted().distinct().boxed()). in testOpSorted()
DStreamSpliteratorTest.java331 s -> s.sorted()); in streamFunctions()
424 s -> s.sorted()); in intStreamFunctions()
517 s -> s.sorted()); in longStreamFunctions()
610 s -> s.sorted()); in doubleStreamFunctions()
DIntSliceOpTest.java184 exerciseOps(IntStream.range(1, 101).map(i -> 101 - i).toArray(), s -> s.limit(10).sorted()); in testLimitSort()
DSliceOpTest.java320 exerciseOps(l, s -> s.limit(10).sorted(Comparator.naturalOrder()));
/libcore/tools/upstream/
Dupstream-diff87 repositories = ['ojluni'] + sorted(
/libcore/ojluni/src/main/java/java/util/stream/
DStream.java375 Stream<T> sorted(); in sorted() method
392 Stream<T> sorted(Comparator<? super T> comparator); in sorted() method
DDoubleStream.java193 DoubleStream sorted(); in sorted() method
DIntStream.java186 IntStream sorted(); in sorted() method
DLongStream.java191 LongStream sorted(); in sorted() method
DReferencePipeline.java405 public final Stream<P_OUT> sorted() {
410 public final Stream<P_OUT> sorted(Comparator<? super P_OUT> comparator) {
DDoublePipeline.java371 public final DoubleStream sorted() {
DIntPipeline.java406 public final IntStream sorted() {
DLongPipeline.java387 public final LongStream sorted() {
/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/luni/src/test/java/libcore/libcore/timezone/
DTimeZoneFinderTest.java978 return value.stream().sorted() in sort()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
DCollectionsTest.java617 boolean sorted = true; in testShuffle()
629 sorted = false; in testShuffle()
633 + " list resulted in sorted list (should be unlikely)", sorted); in testShuffle()