Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 33 for equialgo (0.17 sec)

  1. guava-tests/test/com/google/common/collect/FluentIterableTest.java

        FluentIterable<String> iterable = FluentIterable.from(Lists.newArrayList("cool", "pants"));
        assertThat(iterable.firstMatch(Predicates.equalTo("cool"))).hasValue("cool");
        assertThat(iterable.firstMatch(Predicates.equalTo("pants"))).hasValue("pants");
        assertThat(iterable.firstMatch(Predicates.alwaysFalse())).isAbsent();
        assertThat(iterable.firstMatch(Predicates.alwaysTrue())).hasValue("cool");
      }
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Feb 06 18:35:19 GMT 2024
    - 31.1K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/collect/MultimapsCollectionTest.java

                        multimap.put("foo", 16);
                        multimap =
                            Multimaps.filterKeys(multimap, Predicates.not(Predicates.equalTo("foo")));
                        return Multimaps.filterKeys(
                            multimap, Predicates.not(Predicates.equalTo("bar")));
                      }
                    })
                .named("Multimaps.filterKeys[Multimaps.filterKeys[ListMultimap], Predicate]")
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 20:09:59 GMT 2024
    - 29.5K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/collect/MultimapsCollectionTest.java

                        multimap.put("foo", 16);
                        multimap =
                            Multimaps.filterKeys(multimap, Predicates.not(Predicates.equalTo("foo")));
                        return Multimaps.filterKeys(
                            multimap, Predicates.not(Predicates.equalTo("bar")));
                      }
                    })
                .named("Multimaps.filterKeys[Multimaps.filterKeys[ListMultimap], Predicate]")
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 20:09:59 GMT 2024
    - 29.7K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/base/CharMatcherTest.java

        doTestSetBits(anyOf("xy"));
        doTestSetBits(anyOf("CharMatcher"));
        doTestSetBits(noneOf("CharMatcher"));
        doTestSetBits(inRange('n', 'q'));
        doTestSetBits(forPredicate(Predicates.equalTo('c')));
        doTestSetBits(CharMatcher.ascii());
        doTestSetBits(CharMatcher.digit());
        doTestSetBits(CharMatcher.invisible());
        doTestSetBits(CharMatcher.whitespace());
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Feb 21 18:32:41 GMT 2024
    - 30.1K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/base/CharMatcherTest.java

        doTestSetBits(anyOf("xy"));
        doTestSetBits(anyOf("CharMatcher"));
        doTestSetBits(noneOf("CharMatcher"));
        doTestSetBits(inRange('n', 'q'));
        doTestSetBits(forPredicate(Predicates.equalTo('c')));
        doTestSetBits(CharMatcher.ascii());
        doTestSetBits(CharMatcher.digit());
        doTestSetBits(CharMatcher.invisible());
        doTestSetBits(CharMatcher.whitespace());
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Feb 21 18:32:41 GMT 2024
    - 30.1K bytes
    - Viewed (0)
  6. 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);
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 16K bytes
    - Viewed (0)
  7. 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);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 16K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/math/StatsTesting.java

        }
    
        boolean hasAnyPositiveInfinity() {
          return Iterables.any(values, Predicates.equalTo(POSITIVE_INFINITY));
        }
    
        boolean hasAnyNegativeInfinity() {
          return Iterables.any(values, Predicates.equalTo(NEGATIVE_INFINITY));
        }
    
        boolean hasAnyNaN() {
          return Iterables.any(values, Predicates.equalTo(NaN));
        }
    
        boolean hasAnyNonFinite() {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Nov 09 22:49:56 GMT 2023
    - 22.4K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/base/Predicates.java

      }
    
      /**
       * Returns a predicate that evaluates to {@code true} if the object being tested {@code equals()}
       * the given target or both are null.
       */
      public static <T extends @Nullable Object> Predicate<T> equalTo(@ParametricNullness T target) {
        return (target == null)
            ? Predicates.<T>isNull()
            : new IsEqualToPredicate(target).withNarrowedType();
      }
    
      /**
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 23.1K bytes
    - Viewed (0)
  10. guava/src/com/google/common/base/Predicates.java

      }
    
      /**
       * Returns a predicate that evaluates to {@code true} if the object being tested {@code equals()}
       * the given target or both are null.
       */
      public static <T extends @Nullable Object> Predicate<T> equalTo(@ParametricNullness T target) {
        return (target == null)
            ? Predicates.<T>isNull()
            : new IsEqualToPredicate(target).withNarrowedType();
      }
    
      /**
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 23.1K bytes
    - Viewed (0)
Back to top