- Sort Score
- Num 10 results
- Language All
Results 91 - 100 of 202 for predicate (0.06 seconds)
-
impl/maven-core/src/main/java/org/apache/maven/execution/ProfileActivation.java
Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Tue Feb 11 16:38:19 GMT 2025 - 5.6K bytes - Click Count (0) -
android/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");
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Mar 13 13:01:07 GMT 2026 - 57.3K bytes - Click Count (0) -
android/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); } @OverrideCreated: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Jan 29 22:14:05 GMT 2026 - 53.9K bytes - Click Count (0) -
guava-tests/test/com/google/common/base/FunctionsTest.java
Predicate<? super Integer> h = Predicates.equalTo(42); Function<? super String, Integer> g = new HashCodeFunction(); Function<Float, String> f = Functions.forMap(m, "F"); Predicate<Float> p1 = Predicates.compose(Predicates.compose(h, g), f); Predicate<Float> p2 = Predicates.compose(h, Functions.compose(g, f)); // Might be nice (eventually) to have:
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 16 15:59:55 GMT 2026 - 16.2K bytes - Click Count (0) -
android/guava/src/com/google/common/collect/FilteredMultimap.java
import com.google.common.base.Predicate; import java.util.Map.Entry; import org.jspecify.annotations.Nullable; /** * An interface for all filtered multimap types. * * @author Louis Wasserman */ @GwtCompatible interface FilteredMultimap<K extends @Nullable Object, V extends @Nullable Object> extends Multimap<K, V> { Multimap<K, V> unfiltered(); Predicate<? super Entry<K, V>> entryPredicate();
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sun Dec 22 03:38:46 GMT 2024 - 1.1K bytes - Click Count (0) -
src/test/java/jcifs/util/SmbCircuitBreakerTest.java
// Reset for custom predicate test customCb.reset(); assertEquals(State.CLOSED, customCb.getState(), "Circuit should be CLOSED after reset"); // Only count specific exceptions as failures using custom predicate java.util.function.Predicate<Exception> isFailure = e -> e.getMessage() != null && e.getMessage().contains("critical");Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 30 05:58:03 GMT 2025 - 23.2K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/reflect/TypeTokenResolutionTest.java
} private interface StringListPredicate extends Predicate<List<String>> {} private interface IntegerSupplier extends Supplier<Integer> {} // Intentionally duplicate the Predicate interface to test that it won't cause // exceptions private interface IntegerStringFunction extends IntegerSupplier, Predicate<List<String>>, StringListPredicate {} public void testGenericInterface() {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Mar 12 17:47:10 GMT 2026 - 19.6K bytes - Click Count (0) -
guava-tests/test/com/google/common/reflect/TypeTokenResolutionTest.java
} private interface StringListPredicate extends Predicate<List<String>> {} private interface IntegerSupplier extends Supplier<Integer> {} // Intentionally duplicate the Predicate interface to test that it won't cause // exceptions private interface IntegerStringFunction extends IntegerSupplier, Predicate<List<String>>, StringListPredicate {} public void testGenericInterface() {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Mar 12 17:47:10 GMT 2026 - 19.6K bytes - Click Count (0) -
guava-testlib/src/com/google/common/testing/AbstractPackageSanityTests.java
import static com.google.common.base.Predicates.and; import static com.google.common.base.Predicates.not; import static com.google.common.testing.AbstractPackageSanityTests.Chopper.suffix; import com.google.common.annotations.GwtIncompatible; import com.google.common.annotations.J2ktIncompatible; import com.google.common.annotations.VisibleForTesting; import com.google.common.base.Predicate; import com.google.common.collect.HashMultimap;
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Apr 02 14:49:41 GMT 2026 - 17.9K bytes - Click Count (0) -
guava/src/com/google/common/base/Equivalence.java
return new PairwiseEquivalence<>(this); } /** * Returns a predicate that evaluates to true if and only if the input is equivalent to {@code * target} according to this equivalence relation. * * @since 10.0 */ public final Predicate<@Nullable T> equivalentTo(@Nullable T target) { return new EquivalentToPredicate<>(this, target); }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Jul 10 01:47:55 GMT 2025 - 15K bytes - Click Count (0)