Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 128 for predicate (0.04 sec)

  1. guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ImmutableCollection.java

      }
    
      @Override
      public final boolean removeAll(Collection<?> oldElements) {
        throw new UnsupportedOperationException();
      }
    
      @Override
      public final boolean removeIf(Predicate<? super E> predicate) {
        throw new UnsupportedOperationException();
      }
    
      @Override
      public final boolean retainAll(Collection<?> elementsToKeep) {
        throw new UnsupportedOperationException();
      }
    
      @Override
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Aug 06 18:32:41 UTC 2025
    - 5.1K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/base/PredicatesTest.java

      }
    
      public void testAnd_listDefensivelyCopied() {
        List<Predicate<Object>> list = new ArrayList<>();
        Predicate<Object> predicate = Predicates.and(list);
        assertTrue(predicate.apply(1));
        list.add(Predicates.alwaysFalse());
        assertTrue(predicate.apply(1));
      }
    
      public void testAnd_iterableDefensivelyCopied() {
        List<Predicate<Object>> list = new ArrayList<>();
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 32.2K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/collect/IteratorsTest.java

        List<String> list = new ArrayList<>();
        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 = new ArrayList<>();
        Predicate<String> predicate = equalTo("cool");
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 54.4K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/collect/FilteredMultimapTest.java

    import static com.google.common.collect.Multimaps.filterValues;
    import static java.util.Arrays.asList;
    
    import com.google.common.annotations.GwtIncompatible;
    import com.google.common.base.Predicate;
    import java.util.Map.Entry;
    import java.util.Objects;
    import junit.framework.TestCase;
    import org.jspecify.annotations.NullUnmarked;
    
    /**
     * Unit tests for {@link Multimaps} filtering methods.
     *
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Feb 12 03:49:18 UTC 2025
    - 3.1K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/Iterables.java

          Iterable<T> iterable, Predicate<? super T> predicate) {
        return Iterators.find(iterable.iterator(), predicate);
      }
    
      /**
       * Returns the first element in {@code iterable} that satisfies the given predicate, or {@code
       * defaultValue} if none found. Note that this can usually be handled more naturally using {@code
       * tryFind(iterable, predicate).or(defaultValue)}.
       *
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 43.6K bytes
    - Viewed (0)
  6. 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 Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Mar 17 20:26:29 UTC 2025
    - 11.5K bytes
    - Viewed (0)
  7. guava/src/com/google/common/collect/FilteredEntryMultimap.java

        this.unfiltered = checkNotNull(unfiltered);
        this.predicate = checkNotNull(predicate);
      }
    
      @Override
      public Multimap<K, V> unfiltered() {
        return unfiltered;
      }
    
      @Override
      public Predicate<? super Entry<K, V>> entryPredicate() {
        return predicate;
      }
    
      @Override
      public int size() {
        return entries().size();
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 12.3K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/Sets.java

          Predicate<E> combinedPredicate = Predicates.and(filtered.predicate, predicate);
          return new FilteredSet<>((Set<E>) filtered.unfiltered, combinedPredicate);
        }
    
        return new FilteredSet<>(checkNotNull(unfiltered), checkNotNull(predicate));
      }
    
      /**
       * Returns the elements of a {@code SortedSet}, {@code unfiltered}, that satisfy a predicate. The
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 81.6K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/collect/AbstractFilteredMapTest.java

        Map<String, Integer> unfiltered = createUnfiltered();
        unfiltered.put("cat", 3);
        unfiltered.put("dog", 2);
        unfiltered.put("horse", 5);
        Predicate<Object> predicate = Predicates.alwaysFalse();
        Map<String, Integer> filtered = Maps.filterEntries(unfiltered, predicate);
        assertTrue(filtered.isEmpty());
      }
    
      public void testFilteredEntriesWildCardEntryPredicate() {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 7.2K bytes
    - Viewed (0)
  10. guava/src/com/google/common/collect/Iterables.java

          return ((Collection<T>) removeFrom).removeIf(predicate);
        }
        return Iterators.removeIf(removeFrom.iterator(), predicate);
      }
    
      /** Removes and returns the first matching element, or returns {@code null} if there is none. */
      static <T extends @Nullable Object> @Nullable T removeFirstMatching(
          Iterable<T> removeFrom, Predicate<? super T> predicate) {
        checkNotNull(predicate);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 43.3K bytes
    - Viewed (0)
Back to top