Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 485 for predict1 (0.48 sec)

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

        unfiltered.put("horse", 5);
        Predicate<Entry<?, ?>> predicate =
            new Predicate<Entry<?, ?>>() {
              @Override
              public boolean apply(Entry<?, ?> input) {
                return "cat".equals(input.getKey()) || Integer.valueOf(2) == input.getValue();
              }
            };
        Map<String, Integer> filtered = Maps.filterEntries(unfiltered, predicate);
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Feb 19 20:34:55 UTC 2024
    - 7.4K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/Collections2.java

        final Collection<E> unfiltered;
        final Predicate<? super E> predicate;
    
        FilteredCollection(Collection<E> unfiltered, Predicate<? super E> predicate) {
          this.unfiltered = unfiltered;
          this.predicate = predicate;
        }
    
        FilteredCollection<E> createCombined(Predicate<? super E> newPredicate) {
          return new FilteredCollection<>(unfiltered, Predicates.and(predicate, newPredicate));
        }
    
        @Override
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Apr 01 16:15:01 UTC 2024
    - 22.8K bytes
    - Viewed (0)
  3. platforms/core-runtime/build-operations/src/main/java/org/gradle/internal/operations/DefaultBuildOperationAncestryTracker.java

            if (id == null) {
                return Optional.empty();
            }
            if (predicate.test(id)) {
                return Optional.of(id);
            }
            return findClosestMatchingAncestor(parents.get(id), predicate);
        }
    
        @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 24 14:19:43 UTC 2023
    - 2.5K bytes
    - Viewed (0)
  4. guava/src/com/google/common/collect/Collections2.java

        final Collection<E> unfiltered;
        final Predicate<? super E> predicate;
    
        FilteredCollection(Collection<E> unfiltered, Predicate<? super E> predicate) {
          this.unfiltered = unfiltered;
          this.predicate = predicate;
        }
    
        FilteredCollection<E> createCombined(Predicate<? super E> newPredicate) {
          return new FilteredCollection<>(unfiltered, Predicates.and(predicate, newPredicate));
        }
    
        @Override
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Apr 01 16:15:01 UTC 2024
    - 23.1K bytes
    - Viewed (0)
  5. guava/src/com/google/common/collect/Iterables.java

        }
        return Iterators.removeIf(removeFrom.iterator(), predicate);
      }
    
      /** Removes and returns the first matching element, or returns {@code null} if there is none. */
      @CheckForNull
      static <T extends @Nullable Object> T removeFirstMatching(
          Iterable<T> removeFrom, Predicate<? super T> predicate) {
        checkNotNull(predicate);
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Apr 24 19:38:27 UTC 2024
    - 42.5K bytes
    - Viewed (0)
  6. maven-core/src/main/java/org/apache/maven/execution/ProjectActivation.java

        }
    
        private Stream<ProjectActivationSettings> getProjects(final Predicate<ActivationSettings> predicate) {
            return this.activations.stream().filter(activation -> predicate.test(activation.activationSettings));
        }
    
        private Set<String> getProjectSelectors(final Predicate<ActivationSettings> predicate) {
            return getProjects(predicate).map(activation -> activation.selector).collect(toSet());
        }
    
        /**
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Mon Dec 26 15:12:32 UTC 2022
    - 7K bytes
    - Viewed (0)
  7. guava-testlib/src/com/google/common/collect/testing/testers/CollectionRemoveIfTester.java

      public void testRemoveIf_unsupportedEmptyCollection() {
        try {
          assertFalse(
              "removeIf(Predicate) should return false or throw " + "UnsupportedOperationException",
              collection.removeIf(
                  x -> {
                    throw new AssertionError("predicate should never be called");
                  }));
        } catch (UnsupportedOperationException tolerated) {
        }
        expectUnchanged();
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Feb 20 17:00:05 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/collect/MapsCollectionTest.java

        }
      }
    
      static final Predicate<String> FILTER_KEYS =
          new Predicate<String>() {
            @Override
            public boolean apply(@Nullable String string) {
              return !"banana".equals(string) && !"eggplant".equals(string);
            }
          };
    
      static final Predicate<String> FILTER_VALUES =
          new Predicate<String>() {
            @Override
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 22 20:09:59 UTC 2024
    - 32.2K bytes
    - Viewed (0)
  9. guava/src/com/google/common/base/Functions.java

          Predicate<T> predicate) {
        return new PredicateFunction<>(predicate);
      }
    
      /** @see Functions#forPredicate */
      private static class PredicateFunction<T extends @Nullable Object>
          implements Function<T, Boolean>, Serializable {
        private final Predicate<T> predicate;
    
        private PredicateFunction(Predicate<T> predicate) {
          this.predicate = checkNotNull(predicate);
        }
    
        @Override
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 15 16:12:13 UTC 2024
    - 14.1K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tfr/ir/tfr_ops.td

    // all allowed arguments types
    def TFR_allowedArgType : Type<Or<[
        TFR_AllTensorTypes.predicate,
        TFR_AllAttrTypes.predicate]>, "allowed tfr.call operand types">;
    
    def TFR_allowedConstValues : Attr<Or<[
        FlatSymbolRefAttr.predicate,
        TypeAttr.predicate,
        StrAttr.predicate,
        ArrayAttr.predicate]>, "allowed tfr.constant value"> {
      let storageType = "Attribute";
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Apr 22 10:54:29 UTC 2024
    - 17.4K bytes
    - Viewed (0)
Back to top