Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for testEquivalentTo (0.12 sec)

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

            .addEqualityGroup(Equivalence.equals().onResultOf(Functions.toStringFunction()))
            .addEqualityGroup(Equivalence.identity().onResultOf(Functions.identity()))
            .testEquals();
      }
    
      public void testEquivalentTo() {
        Predicate<@Nullable Object> equalTo1 = Equivalence.equals().equivalentTo("1");
        assertTrue(equalTo1.apply("1"));
        assertFalse(equalTo1.apply("2"));
        assertFalse(equalTo1.apply(null));
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Feb 20 17:00:05 UTC 2024
    - 6.5K bytes
    - Viewed (0)
Back to top