Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 185 for Predicates (0.19 sec)

  1. guava/src/com/google/common/collect/FilteredMultimapValues.java

            Predicates.<Entry<K, V>>and(
                multimap.entryPredicate(), Maps.<V>valuePredicateOnEntries(Predicates.in(c))));
      }
    
      @Override
      public boolean retainAll(Collection<?> c) {
        return Iterables.removeIf(
            multimap.unfiltered().entries(),
            // explicit <Entry<K, V>> is required to build with JDK6
            Predicates.<Entry<K, V>>and(
                multimap.entryPredicate(),
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Tue Jun 15 21:08:00 GMT 2021
    - 3K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/collect/MultimapsCollectionTest.java

                            Multimaps.filterKeys(multimap, Predicates.not(Predicates.equalTo("foo")));
                        return Multimaps.filterKeys(
                            multimap, Predicates.not(Predicates.equalTo("bar")));
                      }
                    })
                .named("Multimaps.filterKeys[Multimaps.filterKeys[ListMultimap], Predicate]")
                .withFeatures(
                    CollectionSize.ANY,
    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. android/guava-tests/test/com/google/common/collect/IterablesTest.java

        List<String> list = newArrayList();
        Predicate<String> predicate = Predicates.equalTo("pants");
    
        assertFalse(Iterables.any(list, predicate));
        list.add("cool");
        assertFalse(Iterables.any(list, predicate));
        list.add("pants");
        assertTrue(Iterables.any(list, predicate));
      }
    
      public void testAll() {
        List<String> list = newArrayList();
        Predicate<String> predicate = Predicates.equalTo("cool");
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 46K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/collect/IteratorsTest.java

      public void testAny() {
        List<String> list = Lists.newArrayList();
        Predicate<String> predicate = Predicates.equalTo("pants");
    
        assertFalse(Iterators.any(list.iterator(), predicate));
        list.add("cool");
        assertFalse(Iterators.any(list.iterator(), predicate));
        list.add("pants");
        assertTrue(Iterators.any(list.iterator(), predicate));
      }
    
      public void testAll() {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Apr 30 18:43:01 GMT 2024
    - 56.5K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/base/FunctionsTest.java

        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);
        Predicate<Float> p2 = Predicates.compose(h, Functions.compose(g, f));
    
        // Might be nice (eventually) to have:
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 16K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/base/FunctionsTest.java

        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);
        Predicate<Float> p2 = Predicates.compose(h, Functions.compose(g, f));
    
        // Might be nice (eventually) to have:
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 16K bytes
    - Viewed (0)
  7. istioctl/pkg/describe/testdata/describe/tls_config.json

                            "num_retries": 2,
                            "retry_host_predicate": [
                              {
                                "name": "envoy.retry_host_predicates.previous_hosts"
                              }
                            ],
                            "host_selection_retry_max_attempts": "5",
    Json
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Thu Jun 15 15:02:17 GMT 2023
    - 8K bytes
    - Viewed (0)
  8. maven-core/src/main/java/org/apache/maven/artifact/resolver/filter/ExclusionArtifactFilter.java

            this.exclusions = exclusions;
            this.predicates =
                    exclusions.stream().map(ExclusionArtifactFilter::toPredicate).collect(Collectors.toList());
        }
    
        @Override
        public boolean include(Artifact artifact) {
            return predicates.stream().noneMatch(p -> p.test(artifact));
        }
    
        private static Predicate<Artifact> toPredicate(Exclusion exclusion) {
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Tue Aug 29 15:25:58 GMT 2023
    - 3K bytes
    - Viewed (0)
  9. internal/bucket/lifecycle/and.go

    	}
    
    	return false
    }
    
    // BySize returns true when sz satisfies a
    // ObjectSizeLessThan/ObjectSizeGreaterthan or a logical AND of these predicates
    // Note: And combines size and other predicates like Tags, Prefix, etc. This
    // method applies exclusively to size predicates only.
    func (a And) BySize(sz int64) bool {
    	if a.ObjectSizeGreaterThan > 0 &&
    		sz <= a.ObjectSizeGreaterThan {
    		return false
    	}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 2.9K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/collect/FluentIterableTest.java

        FluentIterable<String> iterable = FluentIterable.<String>from(list);
        Predicate<String> predicate = Predicates.equalTo("pants");
    
        assertFalse(iterable.anyMatch(predicate));
        list.add("cool");
        assertFalse(iterable.anyMatch(predicate));
        list.add("pants");
        assertTrue(iterable.anyMatch(predicate));
      }
    
      public void testAllMatch() {
        List<String> list = Lists.newArrayList();
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Jun 06 17:32:08 GMT 2023
    - 30.6K bytes
    - Viewed (0)
Back to top