- Sort Score
- Num 10 results
- Language All
Results 11 - 20 of 139 for Predicate (0.05 seconds)
-
guava-tests/test/com/google/common/collect/MultimapsFilterEntriesAsMapTest.java
* @author Jared Levy */ @GwtIncompatible(value = "untested") @NullUnmarked public class MultimapsFilterEntriesAsMapTest extends AbstractMultimapAsMapImplementsMapTest { private static final Predicate<Entry<String, Integer>> PREDICATE = new Predicate<Entry<String, Integer>>() { @Override public boolean apply(Entry<String, Integer> entry) { return !Objects.equals(entry.getKey(), "badkey") && entry.getValue() != 55556;
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Wed Feb 12 03:49:18 GMT 2025 - 2.1K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/collect/IterablesFilterArrayListTest.java
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) -
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<>();
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Tue Oct 28 16:03:47 GMT 2025 - 32.3K bytes - Click Count (0) -
guava-tests/test/com/google/common/collect/SetsFilterSortedSetTest.java
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Tue May 13 18:46:00 GMT 2025 - 1.5K bytes - Click Count (0) -
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);
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Mon Nov 17 22:50:48 GMT 2025 - 43.6K bytes - Click Count (0) -
guava-testlib/src/com/google/common/collect/testing/testers/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"
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Thu Aug 07 16:05:33 GMT 2025 - 6.9K bytes - Click Count (0) -
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. *Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Wed Feb 12 03:49:18 GMT 2025 - 3.1K bytes - Click Count (0) -
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)}. *
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Tue Sep 16 18:35:28 GMT 2025 - 43.8K bytes - Click Count (0) -
guava/src/com/google/common/base/Functions.java
private final Predicate<T> predicate; private PredicateFunction(Predicate<T> predicate) { this.predicate = checkNotNull(predicate); } @Override public Boolean apply(@ParametricNullness T t) { return predicate.apply(t); } @Override public boolean equals(@Nullable Object obj) { if (obj instanceof PredicateFunction) {Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Wed Aug 06 17:32:30 GMT 2025 - 15.4K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/collect/MultimapsFilterEntriesAsMapTest.java
* @author Jared Levy */ @GwtIncompatible(value = "untested") @NullUnmarked public class MultimapsFilterEntriesAsMapTest extends AbstractMultimapAsMapImplementsMapTest { private static final Predicate<Entry<String, Integer>> PREDICATE = new Predicate<Entry<String, Integer>>() { @Override public boolean apply(Entry<String, Integer> entry) { return !Objects.equals(entry.getKey(), "badkey") && entry.getValue() != 55556;
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Wed Feb 12 03:49:18 GMT 2025 - 2.1K bytes - Click Count (0)