Home
last modified time | relevance | path

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

/libcore/luni/src/test/java/libcore/java/util/
DComparatorTest.java86 Comparator<Item> comparator = Comparator.naturalOrder(); in testNaturalOrder()
107 Comparator<Item> comparator = Comparator.naturalOrder(); in testReverse2()
117 Comparator<Item> comparator = Comparator.nullsFirst(Comparator.naturalOrder()); in testNullsFirst()
122 Comparator<Item> comparator = Comparator.nullsLast(Comparator.naturalOrder()); in testNullsLast()
DAbstractListTest.java141 Comparator.naturalOrder()); in checkSpliteratorOfRandomAccessList()
DListOfTest.java213 assertThrowsUoe(() -> { list.sort(Comparator.<T>naturalOrder()); } ); in assertUnmodifiable()
/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/stream/
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 …Stream<Integer>>) s -> s.filter(LambdaTestHelpers.pEven).sorted(Comparator.naturalOrder()).map(id), in testMixedSeqPar()
DTabulatorsTest.java298 assertCollect(data, Collectors.minBy(Comparator.naturalOrder()),
300 assertCollect(data, Collectors.maxBy(Comparator.naturalOrder()),
/libcore/ojluni/src/test/java/util/concurrent/tck/
DExecutorCompletionService9Test.java120 results.sort(Comparator.naturalOrder()); in testSolveAll()
/libcore/ojluni/src/main/java/java/util/
DComparator.java356 public static <T extends Comparable<? super T>> Comparator<T> naturalOrder() { in naturalOrder() method
DCollections.java5181 return Comparator.naturalOrder();