Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for IsComparable (0.09 sec)

  1. guava-tests/test/com/google/common/base/PredicatesTest.java

      @GwtIncompatible // Predicates.instanceOf
      public void testIsInstanceOf_interface() {
        Predicate<@Nullable Object> isComparable = Predicates.instanceOf(Comparable.class);
    
        assertTrue(isComparable.apply(1));
        assertTrue(isComparable.apply(2.0f));
        assertTrue(isComparable.apply(""));
        assertFalse(isComparable.apply(null));
      }
    
      @GwtIncompatible // Predicates.instanceOf
      public void testIsInstanceOf_equality() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Feb 22 17:15:24 UTC 2024
    - 32.4K bytes
    - Viewed (0)
Back to top