jdk/src/share/classes/java/util/Comparator.java
changeset 19867 9918d2d14f78
parent 19605 0f98f8e3bdcb
child 22944 a9e7afb60f4f
equal deleted inserted replaced
19866:f5e8a8275078 19867:9918d2d14f78
   228      * @param  <U>  the type of the sort key
   228      * @param  <U>  the type of the sort key
   229      * @param  keyExtractor the function used to extract the sort key
   229      * @param  keyExtractor the function used to extract the sort key
   230      * @param  keyComparator the {@code Comparator} used to compare the sort key
   230      * @param  keyComparator the {@code Comparator} used to compare the sort key
   231      * @return a lexicographic-order comparator composed of this comparator
   231      * @return a lexicographic-order comparator composed of this comparator
   232      *         and then comparing on the key extracted by the keyExtractor function
   232      *         and then comparing on the key extracted by the keyExtractor function
   233      * @throws NullPointerException if the argument is null.
   233      * @throws NullPointerException if either argument is null.
   234      * @see #comparing(Function, Comparator)
   234      * @see #comparing(Function, Comparator)
   235      * @see #thenComparing(Comparator)
   235      * @see #thenComparing(Comparator)
   236      * @since 1.8
   236      * @since 1.8
   237      */
   237      */
   238     default <U extends Comparable<? super U>> Comparator<T> thenComparing(
   238     default <U extends Comparable<? super U>> Comparator<T> thenComparing(