equal
deleted
inserted
replaced
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( |