- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for emptiesFirst (0.05 sec)
-
android/guava-tests/test/com/google/common/collect/ComparatorsTest.java
Optional<String> z = Optional.of("z"); Comparator<Optional<String>> comparator = emptiesFirst(comparing(String::length)); testComparator(comparator, empty, z, abc); // Just demonstrate that no explicit type parameter is required Comparator<Optional<String>> unused = emptiesFirst(naturalOrder()); } public void testEmptiesLast() { Optional<String> empty = Optional.empty();
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 6.4K bytes - Viewed (0)