- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for testMinMaxWithSupertypeComparator (1.38 sec)
-
android/guava-tests/test/com/google/common/collect/ComparatorsTest.java
} /** * Fails compilation if the signature of min and max is changed to take {@code Comparator<T>} * instead of {@code Comparator<? super T>}. */ public void testMinMaxWithSupertypeComparator() { Comparator<Number> numberComparator = comparing(Number::intValue); Integer comparand1 = 1; Integer comparand2 = 2; Integer min = min(comparand1, comparand2, numberComparator);
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sat Apr 12 15:07:59 UTC 2025 - 6.4K bytes - Viewed (0)