- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 1,574 for removeIf (0.06 seconds)
-
guava-testlib/src/com/google/common/collect/testing/testers/CollectionRemoveIfTester.java
assertFalse("removeIf(x -> false) should return false", collection.removeIf(x -> false)); expectUnchanged(); } @CollectionFeature.Require(SUPPORTS_ITERATOR_REMOVE) @CollectionSize.Require(absent = ZERO) public void testRemoveIf_sometimesTrue() { assertTrue( "removeIf(isEqual(present)) should return true", collection.removeIf(Predicate.isEqual(samples.e0())));
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed Jul 16 20:34:52 GMT 2025 - 4.2K bytes - Click Count (0) -
build-logic/binary-compatibility/src/main/groovy/gradlebuild/binarycompatibility/rules/UpgradePropertiesRulePostProcess.java
throw new RuntimeException("The following accessors were upgraded, but didn't match any removed/changed method:\n\n" + formattedLeft); } // Find accessors that were removed but shouldn't be Map<AccessorKey, ReplacedAccessor> removedAccessors = new HashMap<>(oldAccessorsOfUpgradedProperties); removedAccessors.entrySet().removeIf(e -> { if (!seenUpgradedAccessorsChanges.contains(e.getKey())) {
Created: Wed Apr 01 11:36:16 GMT 2026 - Last Modified: Mon Aug 19 15:30:48 GMT 2024 - 3.5K bytes - Click Count (0) -
android/guava-testlib/src/com/google/common/collect/testing/testers/CollectionRemoveIfTester.java
assertFalse("removeIf(x -> false) should return false", collection.removeIf(x -> false)); expectUnchanged(); } @CollectionFeature.Require(SUPPORTS_ITERATOR_REMOVE) @CollectionSize.Require(absent = ZERO) public void testRemoveIf_sometimesTrue() { assertTrue( "removeIf(isEqual(present)) should return true", collection.removeIf(Predicate.isEqual(samples.e0())));
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed Jul 16 20:34:52 GMT 2025 - 4.2K bytes - Click Count (0) -
guava-tests/test/com/google/common/collect/IterablesTest.java
assertTrue( removeIf( list, new Predicate<String>() { @Override public boolean apply(String s) { return s.equals("b") || s.equals("d") || s.equals("f"); } })); assertEquals(newArrayList("a", "c", "e"), list); assertFalse( removeIf( list,
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) -
build-logic/binary-compatibility/src/main/groovy/gradlebuild/binarycompatibility/rules/BinaryBreakingChangesRule.java
// See https://github.com/melix/japicmp-gradle-plugin/issues/92 private void removeAnnotationChanges(JApiCompatibility member) { member.getCompatibilityChanges().removeIf(change -> ANNOTATION_RELATED_CHANGES.contains(change.getType())); }Created: Wed Apr 01 11:36:16 GMT 2026 - Last Modified: Wed Dec 24 14:15:15 GMT 2025 - 3.8K bytes - Click Count (0) -
src/main/java/jcifs/util/AuthenticationRateLimiter.java
// Clean up account attempts accountAttempts.entrySet().removeIf(entry -> { AccountAttempts account = entry.getValue(); return !account.isLockedOut() && account.getLastAttempt().plus(cleanupInterval).isBefore(now); }); // Clean up IP attempts ipAttempts.entrySet().removeIf(entry -> { IpAttempts ip = entry.getValue();Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 30 05:58:03 GMT 2025 - 15.1K bytes - Click Count (0) -
guava/src/com/google/common/collect/Collections2.java
} @Override public boolean remove(@Nullable Object element) { return contains(element) && unfiltered.remove(element); } @Override public boolean removeAll(Collection<?> collection) { return removeIf(collection::contains); } @Override public boolean retainAll(Collection<?> collection) { return removeIf(element -> !collection.contains(element)); }Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sun Mar 08 16:16:42 GMT 2026 - 23K bytes - Click Count (0) -
guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ImmutableCollection.java
@Override public final boolean removeAll(Collection<?> oldElements) { throw new UnsupportedOperationException(); } @Override public final boolean removeIf(Predicate<? super E> predicate) { throw new UnsupportedOperationException(); } @Override public final boolean retainAll(Collection<?> elementsToKeep) { throw new UnsupportedOperationException(); } @Override public final void clear() {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed Aug 06 18:32:41 GMT 2025 - 5.1K bytes - Click Count (0) -
compat/maven-embedder/src/main/java/org/apache/maven/cli/props/MavenPropertiesLoader.java
props.put(overrideName, substVars(value, name, props, callback)); } else { props.put(name, substVars(value, name, props, callback)); } } props.keySet().removeIf(k -> k.startsWith(OVERRIDE_PREFIX)); } private static MavenProperties loadPropertiesFile(Path path, boolean failIfNotFound, UnaryOperator<String> callback) throws IOException {
Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Fri Jan 24 17:29:44 GMT 2025 - 6.5K bytes - Click Count (0) -
guava-testlib/test/com/google/common/collect/testing/MapTestSuiteBuilderTests.java
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Mar 17 19:26:39 GMT 2026 - 11.6K bytes - Click Count (0)