- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for falseFirst (0.04 sec)
-
android/guava-tests/test/com/google/common/primitives/BooleansTest.java
} public void testFalseFirst() { assertThat(Booleans.falseFirst().compare(true, true)).isEqualTo(0); assertThat(Booleans.falseFirst().compare(false, false)).isEqualTo(0); assertThat(Booleans.falseFirst().compare(false, true)).isLessThan(0); assertThat(Booleans.falseFirst().compare(true, false)).isGreaterThan(0); } // We need to test that our method behaves like the JDK method.
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Dec 11 22:56:33 UTC 2025 - 25.2K bytes - Viewed (0) -
android/guava/src/com/google/common/primitives/Booleans.java
* * <p>This is particularly useful in Java 8+ in combination with {@code Comparator.comparing}, * e.g. {@code Comparator.comparing(Foo::hasBar, falseFirst())}. * * @since 21.0 */ public static Comparator<Boolean> falseFirst() { return BooleanComparator.FALSE_FIRST; } /** * Returns a hash code for {@code value}; obsolete alternative to {@link * Boolean#hashCode(boolean)}. *Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Sep 25 15:01:23 UTC 2025 - 20.6K bytes - Viewed (0) -
guava/src/com/google/common/primitives/Booleans.java
* * <p>This is particularly useful in Java 8+ in combination with {@code Comparator.comparing}, * e.g. {@code Comparator.comparing(Foo::hasBar, falseFirst())}. * * @since 21.0 */ public static Comparator<Boolean> falseFirst() { return BooleanComparator.FALSE_FIRST; } /** * Returns a hash code for {@code value}; obsolete alternative to {@link * Boolean#hashCode(boolean)}. *Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Sep 25 15:01:23 UTC 2025 - 20.6K bytes - Viewed (0)