- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 24 for removeMin (0.04 sec)
-
android/guava/src/com/google/common/collect/TreeMultiset.java
newTop.right = right.removeMin(newTop); newTop.left = left; newTop.distinctElements = distinctElements - 1; newTop.totalCount = totalCount - oldElemCount; return newTop.rebalance(); } } // Removes the minimum node from this subtree to be reused elsewhere private @Nullable AvlNode<E> removeMin(AvlNode<E> node) { if (left == null) {Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Tue Dec 09 15:58:48 UTC 2025 - 33.9K bytes - Viewed (0) -
guava/src/com/google/common/collect/TreeMultiset.java
newTop.right = right.removeMin(newTop); newTop.left = left; newTop.distinctElements = distinctElements - 1; newTop.totalCount = totalCount - oldElemCount; return newTop.rebalance(); } } // Removes the minimum node from this subtree to be reused elsewhere private @Nullable AvlNode<E> removeMin(AvlNode<E> node) { if (left == null) {Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Tue Dec 09 15:58:48 UTC 2025 - 34.3K bytes - Viewed (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())));
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Wed Jul 16 20:34:52 UTC 2025 - 4.2K bytes - Viewed (0) -
android/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,
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Tue Oct 28 18:44:53 UTC 2025 - 45.6K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/FilteredMultimapValues.java
return false; } @Override public boolean removeAll(Collection<?> c) { return Iterables.removeIf( multimap.unfiltered().entries(), and(multimap.entryPredicate(), valuePredicateOnEntries(in(c)))); } @Override public boolean retainAll(Collection<?> c) { return Iterables.removeIf( multimap.unfiltered().entries(),
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Tue Jul 08 18:32:10 UTC 2025 - 2.8K bytes - Viewed (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();Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 15.1K bytes - Viewed (0) -
src/main/java/jcifs/smb/SmbTransportPoolImpl.java
// Clean up old failure records long now = System.currentTimeMillis(); lastFailureTimes.entrySet().removeIf(entry -> now - entry.getValue() > FAILURE_RECOVERY_TIME * 2); // Clean up old consecutive failure counters consecutiveFailures.entrySet().removeIf(entry -> { String key = entry.getKey(); Long lastFailure = lastFailureTimes.get(key);Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 33.4K bytes - Viewed (0) -
guava/src/com/google/common/collect/Lists.java
T transform(@ParametricNullness F from) { return function.apply(from); } }; } @Override public boolean removeIf(Predicate<? super T> filter) { checkNotNull(filter); return fromList.removeIf(element -> filter.test(function.apply(element))); } @GwtIncompatible @J2ktIncompatible private static final long serialVersionUID = 0; } /**
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 42.6K bytes - Viewed (0) -
guava/src/com/google/common/collect/Iterables.java
* @since 2.0 */ @CanIgnoreReturnValue public static <T extends @Nullable Object> boolean removeIf( Iterable<T> removeFrom, Predicate<? super T> predicate) { if (removeFrom instanceof Collection) { return ((Collection<T>) removeFrom).removeIf(predicate); } return Iterators.removeIf(removeFrom.iterator(), predicate); }
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Mon Nov 17 22:50:48 UTC 2025 - 43.6K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/persistent/PersistentHandleManager.java
if (shutdown) { return; } lock.writeLock().lock(); try { // Clean up expired handles handles.entrySet().removeIf(entry -> { HandleInfo info = entry.getValue(); if (info.isExpired() && !info.isReconnecting()) { guidToHandle.remove(info.getCreateGuid());
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sun Aug 24 00:49:49 UTC 2025 - 13K bytes - Viewed (0)