- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for testMinMaxWithSupertypeComparator (0.17 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 Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 6.4K bytes - Viewed (0)