Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 41 - 50 of 116 for predicate (0.06 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

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

      @Override
      Set<Integer> createUnfiltered(Iterable<Integer> contents) {
        return newHashSet(contents);
      }
    
      @Override
      Set<Integer> filter(Set<Integer> elements, Predicate<? super Integer> predicate) {
        return Sets.filter(elements, predicate);
      }
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Dec 19 18:03:30 GMT 2024
    - 1.2K bytes
    - Click Count (0)
  2. build-logic/binary-compatibility/src/main/kotlin/gradlebuild/binarycompatibility/sources/KotlinSourceQueries.kt

    private
    fun KtFile.kotlinDeclarationSatisfies(declaringClass: CtClass, method: CtMethod, predicate: (KtDeclaration) -> Boolean): Boolean {
    
        val qualifiedBaseName = declaringClass.baseQualifiedKotlinName
    
        val functions = collectKtFunctionsFor(qualifiedBaseName, method)
        if (functions.isNotEmpty()) {
            return functions.all(predicate)
        }
    
        val properties = collectKtPropertiesFor(qualifiedBaseName, method)
    Created: Wed Dec 31 11:36:14 GMT 2025
    - Last Modified: Tue Jul 08 07:02:19 GMT 2025
    - 13.2K bytes
    - Click Count (0)
  3. android/guava-testlib/src/com/google/common/testing/GcFinalization.java

      }
    
      /**
       * Waits until the given predicate returns true, invoking the garbage collector as necessary to
       * try to ensure that this will happen.
       *
       * @throws RuntimeException if timed out or interrupted while waiting
       */
      @SuppressWarnings("removal") // b/260137033
      public static void awaitDone(FinalizationPredicate predicate) {
        if (predicate.isDone()) {
          return;
        }
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Mon Mar 17 20:26:29 GMT 2025
    - 11.5K bytes
    - Click Count (0)
  4. guava-tests/test/com/google/common/collect/MultimapsCollectionTest.java

                        multimap.put("bar", 32);
                        multimap.put("foo", 16);
                        return filterKeys(multimap, not(Predicates.in(ImmutableSet.of("foo", "bar"))));
                      }
                    })
                .named("Multimaps.filterKeys[SetMultimap, Predicate]")
                .withFeatures(
                    CollectionSize.ANY,
                    MultimapFeature.VALUE_COLLECTIONS_SUPPORT_ITERATOR_REMOVE,
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Wed Sep 24 22:52:18 GMT 2025
    - 28.6K bytes
    - Click Count (0)
  5. guava/src/com/google/common/collect/FluentIterable.java

       *
       * <p><b>{@code Stream} equivalent:</b> {@link Stream#anyMatch} (same).
       */
      public final boolean anyMatch(Predicate<? super E> predicate) {
        return Iterables.any(getDelegate(), predicate);
      }
    
      /**
       * Returns {@code true} if every element in this fluent iterable satisfies the predicate. If this
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Mon Sep 22 18:35:44 GMT 2025
    - 34.7K bytes
    - Click Count (0)
  6. api/maven-api-xml/src/main/java/org/apache/maven/api/xml/ImmutableCollections.java

    import java.util.List;
    import java.util.Map;
    import java.util.NoSuchElementException;
    import java.util.Set;
    import java.util.function.BiFunction;
    import java.util.function.Function;
    import java.util.function.Predicate;
    
    /**
     * This should be removed when https://bugs.openjdk.org/browse/JDK-8323729
     * is released in our minimum JDK.
     */
    class ImmutableCollections {
    
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Mon Jul 07 11:47:42 GMT 2025
    - 7.8K bytes
    - Click Count (0)
  7. guava/src/com/google/common/collect/FilteredKeySetMultimap.java

     */
    
    package com.google.common.collect;
    
    import com.google.common.annotations.GwtCompatible;
    import com.google.common.base.Predicate;
    import java.util.Map.Entry;
    import java.util.Set;
    import org.jspecify.annotations.Nullable;
    
    /**
     * Implementation of {@link Multimaps#filterKeys(SetMultimap, Predicate)}.
     *
     * @author Louis Wasserman
     */
    @GwtCompatible
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Sat Aug 09 01:14:59 GMT 2025
    - 2.1K bytes
    - Click Count (0)
  8. impl/maven-core/src/main/java/org/apache/maven/execution/ProfileActivation.java

            this.activations.put(id, settings);
        }
    
        private Set<String> getProfileIds(final Predicate<ActivationSettings> predicate) {
            return this.activations.entrySet().stream()
                    .filter(e -> predicate.test(e.getValue()))
                    .map(Map.Entry::getKey)
                    .collect(toSet());
        }
    
        /**
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Tue Feb 11 16:38:19 GMT 2025
    - 5.6K bytes
    - Click Count (0)
  9. android/guava-testlib/src/com/google/common/testing/AbstractPackageSanityTests.java

      /**
       * A predicate that matches classes with an underscore in the class name. This can be used with
       * {@link #ignoreClasses} to exclude generated classes, such as the {@code AutoValue_Foo} classes
       * generated by <a href="https://github.com/google/auto/tree/master/value">AutoValue</a>.
       *
       * @since 19.0
       */
      public static final Predicate<Class<?>> UNDERSCORE_IN_NAME =
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue May 13 17:27:14 GMT 2025
    - 17.8K bytes
    - Click Count (0)
  10. api/maven-api-core/src/main/java/org/apache/maven/api/services/ProblemCollector.java

         * @param maxCountLimit the maximum number of problems to preserve
         * @param filter        predicate to decide which problems to record
         * @return a new filtered problem collector instance
         */
        @Nonnull
        static <P extends BuilderProblem> ProblemCollector<P> create(int maxCountLimit, Predicate<? super P> filter) {
            return new Impl<>(maxCountLimit, filter);
        }
    
        /**
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Jul 18 17:30:19 GMT 2025
    - 11.4K bytes
    - Click Count (0)
Back to Top