- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 69 for predicate (0.06 seconds)
The search processing time has exceeded the limit. The displayed results may be partial.
-
android/guava/src/com/google/common/base/Predicates.java
<T extends @Nullable Object> Predicate<T> withNarrowedType() { return (Predicate<T>) this; } } /** * @see Predicates#not(Predicate) */ private static final class NotPredicate<T extends @Nullable Object> implements Predicate<T>, Serializable { final Predicate<T> predicate; NotPredicate(Predicate<T> predicate) { this.predicate = checkNotNull(predicate); }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sun Mar 08 16:16:42 GMT 2026 - 26.6K bytes - Click Count (0) -
guava/src/com/google/common/base/Predicates.java
<T extends @Nullable Object> Predicate<T> withNarrowedType() { return (Predicate<T>) this; } } /** * @see Predicates#not(Predicate) */ private static final class NotPredicate<T extends @Nullable Object> implements Predicate<T>, Serializable { final Predicate<T> predicate; NotPredicate(Predicate<T> predicate) { this.predicate = checkNotNull(predicate); }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sun Mar 08 16:16:42 GMT 2026 - 26.6K 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 Apr 03 12:43:13 GMT 2026 - Last Modified: Wed Mar 18 18:06:14 GMT 2026 - 32.2K 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 Apr 03 12:43:13 GMT 2026 - Last Modified: Sun Mar 08 16:16:42 GMT 2026 - 43.6K bytes - Click Count (0) -
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
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Feb 23 19:19:10 GMT 2026 - 83K bytes - Click Count (0) -
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: *
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Mar 13 13:01:07 GMT 2026 - 31.2K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/collect/MultimapsFilterEntriesAsMapTest.java
* @author Jared Levy */ @GwtIncompatible // 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 Apr 03 12:43:13 GMT 2026 - Last Modified: Sun Mar 08 16:16:42 GMT 2026 - 2.1K bytes - Click Count (0) -
guava-tests/test/com/google/common/collect/IterablesTest.java
List<String> list = new ArrayList<>(); Predicate<String> predicate = equalTo("pants"); assertFalse(any(list, predicate)); list.add("cool"); assertFalse(any(list, predicate)); list.add("pants"); assertTrue(any(list, predicate)); } public void testAll() { List<String> list = new ArrayList<>(); Predicate<String> predicate = equalTo("cool");
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Mar 13 13:01:07 GMT 2026 - 47.5K bytes - Click Count (0) -
android/guava/src/com/google/common/collect/Maps.java
extends ViewCachingAbstractMap<K, V> { final Map<K, V> unfiltered; final Predicate<? super Entry<K, V>> predicate; AbstractFilteredMap(Map<K, V> unfiltered, Predicate<? super Entry<K, V>> predicate) { this.unfiltered = unfiltered; this.predicate = predicate; } boolean apply(@Nullable Object key, @ParametricNullness V value) {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed Apr 01 17:27:13 GMT 2026 - 157.6K bytes - Click Count (0) -
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
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Feb 23 19:19:10 GMT 2026 - 81.4K bytes - Click Count (0)