Lines Matching refs:thenComparing
218 // thenComparing(Comparator)
219 assertComparison(cmp.thenComparing(cmp2), people[0], people[1]);
220 assertComparison(cmp.thenComparing(cmp2), people[4], people[0]);
221 // thenComparing(Function)
222 assertComparison(cmp.thenComparing(People::getLastName), people[0], people[1]);
223 assertComparison(cmp.thenComparing(People::getLastName), people[4], people[0]);
224 // thenComparing(ToIntFunction)
227 // thenComparing(ToLongFunction)
230 // thenComparing(ToDoubleFunction)
239 .thenComparing(People::getFirstName, strcmp);
245 // More than one thenComparing
247 .thenComparing(String.CASE_INSENSITIVE_ORDER));
254 Comparator<String> strcmp2 = strcmp.reversed().thenComparing(Comparator.naturalOrder());
269 strcmp = blind.thenComparing(Comparator.naturalOrder());
277 .thenComparing(People::getFirstName, strcmp);
283 // More than one thenComparing
285 .thenComparing(String.CASE_INSENSITIVE_ORDER));
291 Comparator<String> strcmp2 = strcmp.reversed().thenComparing(Comparator.naturalOrder());
306 strcmp = blind.thenComparing(Comparator.naturalOrder());
315 Comparator<String> composed = first.thenComparing(second);