- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 48 for Predicates (0.07 seconds)
-
impl/maven-core/src/main/java/org/apache/maven/artifact/resolver/filter/ExclusionArtifactFilter.java
this.exclusions = exclusions; this.predicates = exclusions.stream().map(ExclusionArtifactFilter::toPredicate).collect(Collectors.toList()); } @Override public boolean include(Artifact artifact) { return predicates.stream().noneMatch(p -> p.test(artifact)); } private static Predicate<Artifact> toPredicate(Exclusion exclusion) {Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Fri Oct 25 12:31:46 GMT 2024 - 3K bytes - Click Count (0) -
android/guava/src/com/google/common/collect/FilteredMultimapValues.java
import static com.google.common.base.Predicates.and; import static com.google.common.base.Predicates.in; import static com.google.common.base.Predicates.not; import static com.google.common.collect.Maps.valuePredicateOnEntries; import com.google.common.annotations.GwtCompatible; import com.google.common.base.Predicate; import com.google.j2objc.annotations.Weak; import java.util.AbstractCollection;
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Tue Jul 08 18:32:10 GMT 2025 - 2.8K bytes - Click Count (0) -
android/guava/src/com/google/common/base/Predicate.java
* java.util.function.Predicate java.util.function.Predicate}. * * <p>The {@link Predicates} class provides common predicates and related utilities. * * <p>See the Guava User Guide article on <a * href="https://github.com/google/guava/wiki/FunctionalExplained">the use of {@code Predicate}</a>. * * <h3>For Java 8+ users</h3> *Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Wed Jun 18 15:22:00 GMT 2025 - 3.4K bytes - Click Count (0) -
internal/bucket/lifecycle/and.go
} return false } // BySize returns true when sz satisfies a // ObjectSizeLessThan/ObjectSizeGreaterthan or a logical AND of these predicates // Note: And combines size and other predicates like Tags, Prefix, etc. This // method applies exclusively to size predicates only. func (a And) BySize(sz int64) bool { if a.ObjectSizeGreaterThan > 0 && sz <= a.ObjectSizeGreaterThan { return false }
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Thu Jan 18 07:03:17 GMT 2024 - 2.9K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/collect/MultisetsCollectionTest.java
} }; } private static final ImmutableMultiset<String> ELEMENTS_TO_FILTER_OUT = ImmutableMultiset.of("foobar", "bazfoo", "foobar", "foobar"); private static final Predicate<String> PREDICATE = not(Predicates.in(ELEMENTS_TO_FILTER_OUT)); private static TestStringMultisetGenerator filteredGenerator() { return new TestStringMultisetGenerator() { @OverrideCreated: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Tue Jul 08 18:32:10 GMT 2025 - 9.7K bytes - Click Count (0) -
guava-tests/test/com/google/common/collect/AbstractFilteredMapTest.java
Map<String, Integer> unfiltered = createUnfiltered(); unfiltered.put("cat", 3); unfiltered.put("dog", 2); unfiltered.put("horse", 5); Predicate<Object> predicate = Predicates.alwaysFalse(); Map<String, Integer> filtered = Maps.filterEntries(unfiltered, predicate); assertTrue(filtered.isEmpty()); } public void testFilteredEntriesWildCardEntryPredicate() {
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Sun Dec 22 03:38:46 GMT 2024 - 7.2K bytes - Click Count (0) -
android/guava-testlib/test/com/google/common/testing/AbstractPackageSanityTestsTest.java
* limitations under the License. */ package com.google.common.testing; import static com.google.common.truth.Truth.assertThat; import com.google.common.base.Predicates; import com.google.common.collect.ImmutableList; import java.util.Arrays; import java.util.List; import junit.framework.TestCase; import org.jspecify.annotations.NullUnmarked; /**
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Sat Dec 28 02:48:50 GMT 2024 - 5.4K bytes - Click Count (0) -
guava-tests/test/com/google/common/collect/MultisetsCollectionTest.java
} }; } private static final ImmutableMultiset<String> ELEMENTS_TO_FILTER_OUT = ImmutableMultiset.of("foobar", "bazfoo", "foobar", "foobar"); private static final Predicate<String> PREDICATE = not(Predicates.in(ELEMENTS_TO_FILTER_OUT)); private static TestStringMultisetGenerator filteredGenerator() { return new TestStringMultisetGenerator() { @OverrideCreated: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Tue Jul 08 18:32:10 GMT 2025 - 9.7K bytes - Click Count (0) -
internal/bucket/lifecycle/filter.go
v, ok := tagsMap[k] if !ok || v != cv { mismatch = true break } } return !mismatch } // BySize returns true if sz satisfies one of ObjectSizeGreaterThan, // ObjectSizeLessThan predicates or a combination of them via And. func (f Filter) BySize(sz int64) bool { if f.ObjectSizeGreaterThan > 0 && sz <= f.ObjectSizeGreaterThan { return false } if f.ObjectSizeLessThan > 0 &&
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Wed Sep 04 17:01:26 GMT 2024 - 6.2K bytes - Click Count (0) -
src/test/java/jcifs/smb1/UniAddressTest.java
* UniAddress} are network dependent and therefore not exercised here – they * would require complex stubbing of static methods. Instead the tests * concentrate on the instance methods and simple static predicates * that are observable without network access. */ @ExtendWith(MockitoExtension.class) class UniAddressTest { /* ---------------------------------------------------------------------Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 7.9K bytes - Click Count (0)