Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for testIsInstanceOf_apply (0.1 sec)

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

       * stripper to remove comments properly. Currently, all tests before the comments are removed as
       * well.
       */
      @GwtIncompatible // Predicates.instanceOf
      public void testIsInstanceOf_apply() {
        Predicate<@Nullable Object> isInteger = Predicates.instanceOf(Integer.class);
    
        assertTrue(isInteger.apply(1));
        assertFalse(isInteger.apply(2.0f));
        assertFalse(isInteger.apply(""));
    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