Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 150 for predict0 (0.11 sec)

  1. 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)
  2. 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)
  3. android/guava/src/com/google/common/collect/Iterators.java

       * {@code predicate}.
       *
       * @since 2.0
       */
      public static <T extends @Nullable Object> int indexOf(
          Iterator<T> iterator, Predicate<? super T> predicate) {
        checkNotNull(predicate, "predicate");
        for (int i = 0; iterator.hasNext(); i++) {
          T current = iterator.next();
          if (predicate.apply(current)) {
            return i;
          }
        }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 50.3K bytes
    - Viewed (0)
  4. impl/maven-core/src/main/java/org/apache/maven/artifact/resolver/filter/ExclusionArtifactFilter.java

    import java.util.List;
    import java.util.function.Predicate;
    import java.util.stream.Collectors;
    
    import org.apache.maven.artifact.Artifact;
    import org.apache.maven.model.Exclusion;
    
    /**
     * Filter to exclude from a list of artifact patterns.
     */
    public class ExclusionArtifactFilter implements ArtifactFilter {
    
        private final List<Exclusion> exclusions;
        private final List<Predicate<Artifact>> predicates;
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 3K bytes
    - Viewed (0)
  5. android/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
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Sep 24 13:42:31 UTC 2024
    - 35.7K bytes
    - Viewed (0)
  6. guava/src/com/google/common/collect/FilteredMultimap.java

     * limitations under the License.
     */
    
    package com.google.common.collect;
    
    import com.google.common.annotations.GwtCompatible;
    import com.google.common.base.Predicate;
    import java.util.Map.Entry;
    import org.checkerframework.checker.nullness.qual.Nullable;
    
    /**
     * An interface for all filtered multimap types.
     *
     * @author Louis Wasserman
     */
    @GwtCompatible
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jun 15 21:08:00 UTC 2021
    - 1.1K bytes
    - Viewed (0)
  7. android/guava-testlib/src/com/google/common/collect/testing/testers/CollectionRemoveIfTester.java

              assertTrue(collection.removeIf(Predicate.isEqual(samples.e0())));
              iterator.next();
            });
      }
    
      @CollectionFeature.Require(absent = SUPPORTS_REMOVE)
      @CollectionSize.Require(ZERO)
      public void testRemoveIf_unsupportedEmptyCollection() {
        try {
          assertFalse(
              "removeIf(Predicate) should return false or throw " + "UnsupportedOperationException",
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 31 14:51:04 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  8. 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)
  9. 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());
        }
    
        /**
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/FilteredKeyListMultimap.java

    package com.google.common.collect;
    
    import com.google.common.annotations.GwtCompatible;
    import com.google.common.base.Predicate;
    import java.util.List;
    import javax.annotation.CheckForNull;
    import org.checkerframework.checker.nullness.qual.Nullable;
    
    /**
     * Implementation of {@link Multimaps#filterKeys(ListMultimap, Predicate)}.
     *
     * @author Louis Wasserman
     */
    @GwtCompatible
    @ElementTypesAreNonnullByDefault
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jun 15 21:08:00 UTC 2021
    - 1.8K bytes
    - Viewed (0)
Back to top