- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 80 for predicate (0.13 sec)
-
guava-tests/test/com/google/common/base/PredicatesTest.java
assertFalse(predicate.apply(1)); array[0] = Predicates.alwaysTrue(); assertFalse(predicate.apply(1)); } public void testOr_listDefensivelyCopied() { List<Predicate<Object>> list = newArrayList(); Predicate<Object> predicate = Predicates.or(list); assertFalse(predicate.apply(1)); list.add(Predicates.alwaysTrue()); assertFalse(predicate.apply(1)); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Thu Feb 22 17:15:24 UTC 2024 - 32.4K bytes - Viewed (0) -
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 Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 12.1K bytes - Viewed (0) -
android/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 - 22.8K bytes - Viewed (0) -
android/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 Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 12.1K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/IterablesTest.java
List<String> list = newArrayList(); 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 = newArrayList(); Predicate<String> predicate = equalTo("cool");
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 19:12:33 UTC 2024 - 45K bytes - Viewed (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)}. *
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Apr 24 19:38:27 UTC 2024 - 42.8K bytes - Viewed (0) -
guava/src/com/google/common/collect/Multisets.java
} private static final class FilteredMultiset<E extends @Nullable Object> extends ViewMultiset<E> { final Multiset<E> unfiltered; final Predicate<? super E> predicate; FilteredMultiset(Multiset<E> unfiltered, Predicate<? super E> predicate) { this.unfiltered = checkNotNull(unfiltered); this.predicate = checkNotNull(predicate); } @Override
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 19 00:05:46 UTC 2024 - 41.5K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/Multisets.java
} private static final class FilteredMultiset<E extends @Nullable Object> extends ViewMultiset<E> { final Multiset<E> unfiltered; final Predicate<? super E> predicate; FilteredMultiset(Multiset<E> unfiltered, Predicate<? super E> predicate) { this.unfiltered = checkNotNull(unfiltered); this.predicate = checkNotNull(predicate); } @Override
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 19 00:05:46 UTC 2024 - 41.7K bytes - Viewed (0) -
build-logic/binary-compatibility/src/main/kotlin/gradlebuild/binarycompatibility/sources/KotlinSourceQueries.kt
private fun KtFile.kotlinDeclarationSatisfies(declaringClass: CtClass, method: CtMethod, predicate: (KtDeclaration) -> Boolean): Boolean { val qualifiedBaseName = declaringClass.baseQualifiedKotlinName val functions = collectKtFunctionsFor(qualifiedBaseName, method) if (functions.isNotEmpty()) { return functions.all(predicate) } val properties = collectKtPropertiesFor(qualifiedBaseName, method)
Registered: Wed Nov 06 11:36:14 UTC 2024 - Last Modified: Thu Jul 04 08:05:22 UTC 2024 - 11.2K bytes - Viewed (0) -
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)