Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 158 for Predicate (0.1 sec)

  1. build-logic/binary-compatibility/src/main/kotlin/gradlebuild/binarycompatibility/metadata/HasKotlinFlagsMetadataQuery.kt

            MemberType.TYPE -> hasTypeAttribute(kmClass, jvmSignature, predicate)
            MemberType.FIELD -> hasPropertyAttribute(kmClass::properties, jvmSignature, predicate)
            MemberType.CONSTRUCTOR -> hasConstructorAttribute(kmClass::constructors, jvmSignature, predicate)
            MemberType.METHOD -> hasFunctionAttribute(kmClass::functions, jvmSignature, predicate) ||
                hasPropertyAttribute(kmClass::properties, jvmSignature, predicate)
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Wed Aug 21 11:57:24 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/collect/MultisetsCollectionTest.java

          }
        };
      }
    
      private static final ImmutableMultiset<String> ELEMENTS_TO_FILTER_OUT =
          ImmutableMultiset.of("foobar", "bazfoo", "foobar", "foobar");
    
      private static final Predicate<String> PREDICATE = not(Predicates.in(ELEMENTS_TO_FILTER_OUT));
    
      private static TestStringMultisetGenerator filteredGenerator() {
        return new TestStringMultisetGenerator() {
          @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 9.6K bytes
    - Viewed (0)
  3. 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;
        }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:26:48 UTC 2024
    - 11.6K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/util/concurrent/ReflectionFreeAssertThrows.java

          Class<T> expectedThrowable, ThrowingSupplier supplier, boolean userPassedSupplier) {
        checkNotNull(expectedThrowable);
        checkNotNull(supplier);
        Predicate<Throwable> predicate = INSTANCE_OF.get(expectedThrowable);
        if (predicate == null) {
          throw new IllegalArgumentException(
              expectedThrowable
                  + " is not yet supported by ReflectionFreeAssertThrows. Add an entry for it in the"
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 21 15:41:36 UTC 2024
    - 7K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/collect/IteratorsTest.java

        List<String> list = Lists.newArrayList();
        Predicate<String> predicate = equalTo("pants");
    
        assertFalse(any(list.iterator(), predicate));
        list.add("cool");
        assertFalse(any(list.iterator(), predicate));
        list.add("pants");
        assertTrue(any(list.iterator(), predicate));
      }
    
      public void testAll() {
        List<String> list = Lists.newArrayList();
        Predicate<String> predicate = equalTo("cool");
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 54.1K bytes
    - Viewed (0)
  6. 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: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 20:24:49 UTC 2024
    - 23.1K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/FilteredKeyMultimap.java

    /**
     * Implementation of {@link Multimaps#filterKeys(Multimap, Predicate)}.
     *
     * @author Louis Wasserman
     */
    @GwtCompatible
    @ElementTypesAreNonnullByDefault
    class FilteredKeyMultimap<K extends @Nullable Object, V extends @Nullable Object>
        extends AbstractMultimap<K, V> implements FilteredMultimap<K, V> {
      final Multimap<K, V> unfiltered;
      final Predicate<? super K> keyPredicate;
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/collect/FluentIterableTest.java

        Iterable<A> aIterable = ImmutableList.of();
        Iterable<B> bIterable = ImmutableList.of();
    
        Predicate<X> xPredicate = Predicates.alwaysTrue();
        Predicate<Y> yPredicate = Predicates.alwaysTrue();
    
        FluentIterable<?> unused =
            FluentIterable.concat(aIterable, bIterable).filter(xPredicate).filter(yPredicate);
    
        /* The following fails to compile:
         *
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 30.4K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/collect/MultisetsCollectionTest.java

          }
        };
      }
    
      private static final ImmutableMultiset<String> ELEMENTS_TO_FILTER_OUT =
          ImmutableMultiset.of("foobar", "bazfoo", "foobar", "foobar");
    
      private static final Predicate<String> PREDICATE = not(Predicates.in(ELEMENTS_TO_FILTER_OUT));
    
      private static TestStringMultisetGenerator filteredGenerator() {
        return new TestStringMultisetGenerator() {
          @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 9.6K bytes
    - Viewed (0)
  10. impl/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) {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 3K bytes
    - Viewed (0)
Back to top