- Sort Score
- Result 10 results
- Languages All
Results 1 - 8 of 8 for Predicate (0.13 sec)
-
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 Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Oct 21 14:28:19 UTC 2024 - 78.8K bytes - Viewed (0) -
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) -
guava/src/com/google/common/base/CharMatcher.java
/** Implementation of {@link #forPredicate(Predicate)}. */ private static final class ForPredicate extends CharMatcher { private final Predicate<? super Character> predicate; ForPredicate(Predicate<? super Character> predicate) { this.predicate = checkNotNull(predicate); } @Override public boolean matches(char c) { return predicate.apply(c); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Thu Oct 17 13:00:28 UTC 2024 - 53.9K bytes - Viewed (0) -
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) -
android/guava/src/com/google/common/collect/Multimaps.java
SetMultimap<K, V> filterFiltered( FilteredSetMultimap<K, V> multimap, Predicate<? super Entry<K, V>> entryPredicate) { Predicate<Entry<K, V>> predicate = Predicates.<Entry<K, V>>and(multimap.entryPredicate(), entryPredicate); return new FilteredEntrySetMultimap<>(multimap.unfiltered(), predicate); } static boolean equalsImpl(Multimap<?, ?> multimap, @CheckForNull Object object) {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 16 21:21:17 UTC 2024 - 86.3K bytes - Viewed (0) -
android/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) -
src/bytes/bytes_test.go
} } } } type predicate struct { f func(r rune) bool name string } var isSpace = predicate{unicode.IsSpace, "IsSpace"} var isDigit = predicate{unicode.IsDigit, "IsDigit"} var isUpper = predicate{unicode.IsUpper, "IsUpper"} var isValidRune = predicate{ func(r rune) bool { return r != utf8.RuneError }, "IsValidRune", }
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Mon Aug 19 19:09:04 UTC 2024 - 61.2K bytes - Viewed (0) -
guava/src/com/google/common/collect/Synchronized.java
import java.util.Spliterator; import java.util.function.BiConsumer; import java.util.function.BiFunction; import java.util.function.Consumer; import java.util.function.Function; import java.util.function.Predicate; import java.util.function.UnaryOperator; import java.util.stream.Stream; import javax.annotation.CheckForNull; import org.checkerframework.checker.nullness.qual.NonNull;
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 57.2K bytes - Viewed (0)