/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/ |
D | StringBuffer2Test.java | 503 String reversed = sb.toString(); in reverseTest() local 504 assertTrue("reversed surrogate " + id + ": " + writeString(reversed), in reverseTest() 505 reversed.equals(rev)); in reverseTest() 507 sb = new StringBuffer(reversed); in reverseTest() 509 reversed = sb.toString(); in reverseTest() 510 assertTrue("reversed surrogate " + id + "a: " + writeString(reversed), in reverseTest() 511 reversed.equals(back)); in reverseTest() 518 reversed = sb.toString(); in reverseTest() 519 assertTrue("reversed surrogate " + id + ": " + writeString(reversed), in reverseTest() 520 reversed.equals(rev)); in reverseTest() [all …]
|
D | StringBuilderTest.java | 1569 String reversed = sb.toString(); in reverseTest() local 1570 assertEquals(rev, reversed); in reverseTest() 1572 sb = new StringBuilder(reversed); in reverseTest() 1574 reversed = sb.toString(); in reverseTest() 1575 assertEquals(back, reversed); in reverseTest() 1582 reversed = sb.toString(); in reverseTest() 1583 assertEquals(rev, reversed); in reverseTest() 1584 sb = new StringBuilder(reversed); in reverseTest() 1588 reversed = sb.toString(); in reverseTest() 1589 assertEquals(back, reversed); in reverseTest()
|
/libcore/ojluni/src/test/java/util/stream/testlib/org/openjdk/testlib/java/util/stream/ |
D | DoubleStreamTestDataProvider.java | 40 private static final double[] reversed = new double[100]; field in DoubleStreamTestDataProvider 57 for (int i = 0; i < reversed.length; i++) { 58 reversed[i] = reversed.length - i; 80 {"reverse 0..100", reversed},
|
D | LongStreamTestDataProvider.java | 40 private static final long[] reversed = new long[100]; field in LongStreamTestDataProvider 56 for (int i = 0; i < reversed.length; i++) { 57 reversed[i] = reversed.length - i; 79 {"reverse 0..100", reversed},
|
D | StreamTestDataProvider.java | 47 private static final Integer[] reversed = new Integer[100]; field in StreamTestDataProvider 64 for (int i = 0; i < reversed.length; i++) { 65 reversed[i] = reversed.length - i; 87 {"reverse 0..100", reversed},
|
/libcore/ojluni/src/main/java/java/util/ |
D | Comparators.java | 56 public Comparator<Comparable<Object>> reversed() { in reversed() method in Comparators.NaturalOrderComparator 94 public Comparator<T> reversed() { in reversed() method in Comparators.NullComparator 95 return new NullComparator<>(!nullFirst, real == null ? null : real.reversed()); in reversed()
|
D | Comparator.java | 184 default Comparator<T> reversed() { in reversed() method
|
D | Collections.java | 5180 public Comparator<Comparable<Object>> reversed() { 5249 public Comparator<T> reversed() {
|
/libcore/ojluni/src/test/java/util/stream/bootlib/java/util/stream/ |
D | IntStreamTestDataProvider.java | 38 private static final int[] reversed = new int[100]; field in IntStreamTestDataProvider 53 for (int i = 0; i < reversed.length; i++) { 54 reversed[i] = reversed.length - i; 75 {"reverse 0..100", reversed},
|
D | LongStreamTestDataProvider.java | 38 private static final long[] reversed = new long[100]; field in LongStreamTestDataProvider 53 for (int i = 0; i < reversed.length; i++) { 54 reversed[i] = reversed.length - i; 75 {"reverse 0..100", reversed},
|
D | StreamTestDataProvider.java | 43 private static final Integer[] reversed = new Integer[100]; field in StreamTestDataProvider 59 for (int i = 0; i < reversed.length; i++) { 60 reversed[i] = reversed.length - i; 81 {"reverse 0..100", reversed},
|
/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/stream/ |
D | SortedOpTest.java | 122 assertCountSum(countTo(10).stream().sorted(cInteger.reversed()), 10, 55); in testSorted() 125 assertSorted(to10.stream().sorted(cInteger.reversed()).iterator(), cInteger.reversed()); in testSorted() 133 s = to10.stream().sorted(cInteger.reversed()).spliterator(); in testSorted() 178 result = exerciseOps(data, s -> s.sorted(cInteger.reversed())); in testOps() 179 assertSorted(result.iterator(), cInteger.reversed()); in testOps() 195 .stream(s -> s.sorted(cInteger.reversed()).sorted(cInteger.reversed()), in testSortSort() 199 assertSorted(result, cInteger.reversed()); in testSortSort() 203 .stream(s -> s.sorted().sorted(cInteger.reversed()), in testSortSort() 207 assertSorted(result, cInteger.reversed()); in testSortSort() 211 .stream(s -> s.sorted(cInteger.reversed()).sorted(), in testSortSort()
|
/libcore/luni/src/test/java/libcore/java/util/ |
D | ComparatorTest.java | 101 Comparator<Item> revRevComparator = revComparator.reversed(); in testReverse() 108 assertSame(comparator, comparator.reversed().reversed()); in testReverse2() 113 assertSame(comparator, comparator.reversed().reversed()); in testReverse3()
|
/libcore/luni/src/test/java/libcore/java/security/cert/ |
D | PKIXParametersTest.java | 141 List<PKIXCertPathChecker> reversed = new ArrayList<>(CHECK_LIST); in setCertPathCheckers_Replacement() local 142 Collections.reverse(reversed); in setCertPathCheckers_Replacement() 143 parameters.setCertPathCheckers(reversed); in setCertPathCheckers_Replacement() 144 assertEquals(reversed, parameters.getCertPathCheckers()); in setCertPathCheckers_Replacement()
|
/libcore/tools/upstream/src/main/java/libcore/ |
D | CompareUpstreams.java | 125 Collections.sort(comments, Comparator.comparing(map::get).reversed()); in androidChangedCommentsSummary()
|