Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 1,225 for equalTo (0.05 sec)

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

        assertEquals(1, matcher.countIn(s));
      }
    
      /**
       * Checks that expected is equals to out, and further, if in is equals to expected, then out is
       * successfully optimized to be identical to in, i.e. that "in" is simply returned.
       */
      private void assertEqualsSame(String expected, String in, String out) {
        if (expected.equals(in)) {
          assertSame(in, out);
        } else {
          assertEquals(expected, out);
        }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 30.3K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/base/CharMatcherTest.java

        assertEquals(1, matcher.countIn(s));
      }
    
      /**
       * Checks that expected is equals to out, and further, if in is equals to expected, then out is
       * successfully optimized to be identical to in, i.e. that "in" is simply returned.
       */
      private void assertEqualsSame(String expected, String in, String out) {
        if (expected.equals(in)) {
          assertSame(in, out);
        } else {
          assertEquals(expected, out);
        }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 30.4K bytes
    - Viewed (0)
  3. android/guava-testlib/test/com/google/common/testing/AbstractPackageSanityTestsTest.java

        assertThat(findClassesToTest(ImmutableList.of(PublicFoo.class))).contains(PublicFoo.class);
      }
    
      public void testFindClassesToTest_ignoreClasses() {
        sanityTests.ignoreClasses(Predicates.<Object>equalTo(PublicFoo.class));
        assertThat(findClassesToTest(ImmutableList.of(PublicFoo.class))).isEmpty();
        assertThat(findClassesToTest(ImmutableList.of(Foo.class))).contains(Foo.class);
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Dec 28 02:48:50 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/base/FunctionsTest.java

      }
    
      public void testComposeOfPredicateAndFunctionIsAssociative() {
        Map<Float, String> m = ImmutableMap.of(4.0f, "A", 3.0f, "B", 2.0f, "C", 1.0f, "D");
        Predicate<? super Integer> h = Predicates.equalTo(42);
        Function<? super String, Integer> g = new HashCodeFunction();
        Function<Float, String> f = Functions.forMap(m, "F");
    
        Predicate<Float> p1 = Predicates.compose(Predicates.compose(h, g), f);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 15.9K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/base/FunctionsTest.java

      }
    
      public void testComposeOfPredicateAndFunctionIsAssociative() {
        Map<Float, String> m = ImmutableMap.of(4.0f, "A", 3.0f, "B", 2.0f, "C", 1.0f, "D");
        Predicate<? super Integer> h = Predicates.equalTo(42);
        Function<? super String, Integer> g = new HashCodeFunction();
        Function<Float, String> f = Functions.forMap(m, "F");
    
        Predicate<Float> p1 = Predicates.compose(Predicates.compose(h, g), f);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 15.9K bytes
    - Viewed (0)
  6. guava/src/com/google/common/base/Predicates.java

       * the given target or both are null.
       *
       * <p><b>Discouraged:</b> Prefer using {@code x -> Objects.equals(x, target)}, but note that
       * lambdas do not have human-readable {@link #toString()} representations and are not
       * serializable.
       */
      public static <T extends @Nullable Object> Predicate<T> equalTo(@ParametricNullness T target) {
        return (target == null)
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 26.6K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/util/concurrent/ServiceManager.java

    import static com.google.common.base.Preconditions.checkNotNull;
    import static com.google.common.base.Preconditions.checkState;
    import static com.google.common.base.Predicates.equalTo;
    import static com.google.common.base.Predicates.in;
    import static com.google.common.base.Predicates.instanceOf;
    import static com.google.common.base.Predicates.not;
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 17:27:14 UTC 2025
    - 33.2K bytes
    - Viewed (1)
  8. guava/src/com/google/common/reflect/Types.java

        }
    
        @Override
        public boolean equals(@Nullable Object other) {
          if (!(other instanceof ParameterizedType)) {
            return false;
          }
          ParameterizedType that = (ParameterizedType) other;
          return getRawType().equals(that.getRawType())
              && Objects.equals(getOwnerType(), that.getOwnerType())
              && Arrays.equals(getActualTypeArguments(), that.getActualTypeArguments());
        }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Sep 03 14:03:14 UTC 2025
    - 23.5K bytes
    - Viewed (0)
  9. guava/src/com/google/common/collect/StandardTable.java

     */
    
    package com.google.common.collect;
    
    import static com.google.common.base.Preconditions.checkNotNull;
    import static com.google.common.base.Predicates.alwaysTrue;
    import static com.google.common.base.Predicates.equalTo;
    import static com.google.common.base.Predicates.in;
    import static com.google.common.base.Predicates.not;
    import static com.google.common.collect.Iterators.emptyIterator;
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 30.2K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/reflect/Types.java

        }
    
        @Override
        public boolean equals(@Nullable Object other) {
          if (!(other instanceof ParameterizedType)) {
            return false;
          }
          ParameterizedType that = (ParameterizedType) other;
          return getRawType().equals(that.getRawType())
              && Objects.equals(getOwnerType(), that.getOwnerType())
              && Arrays.equals(getActualTypeArguments(), that.getActualTypeArguments());
        }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Sep 03 14:03:14 UTC 2025
    - 23.6K bytes
    - Viewed (0)
Back to top