- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for testMinMaxComparator (1.46 sec)
-
android/guava-tests/test/com/google/common/collect/ComparatorsTest.java
Foo a = new Foo(1); Foo b = new Foo(1); assertThat(min(a, b)).isSameInstanceAs(a); assertThat(max(a, b)).isSameInstanceAs(a); } public void testMinMaxComparator() { Comparator<Integer> reverse = reverseOrder(); assertThat(min(1, 2, reverse)).isEqualTo(2); assertThat(min(2, 1, reverse)).isEqualTo(2); assertThat(max(1, 2, reverse)).isEqualTo(1);
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 6.4K bytes - Viewed (0)