Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for testIsEqualTo_apply (0.18 sec)

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

        assertFalse(predicate.apply(1));
        list.add(Predicates.alwaysTrue());
        assertFalse(predicate.apply(1));
      }
    
      /*
       * Tests for Predicates.equalTo(x).
       */
    
      public void testIsEqualTo_apply() {
        Predicate<@Nullable Integer> isOne = Predicates.equalTo(1);
    
        assertTrue(isOne.apply(1));
        assertFalse(isOne.apply(2));
        assertFalse(isOne.apply(null));
      }
    
    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