- Sort Score
- Num 10 results
- Language All
Results 21 - 30 of 34 for removeMin (0.06 seconds)
-
android/guava/src/com/google/common/collect/Iterables.java
*/ @CanIgnoreReturnValue public static <T extends @Nullable Object> boolean removeIf( Iterable<T> removeFrom, Predicate<? super T> predicate) { if (removeFrom instanceof RandomAccess && removeFrom instanceof List) { return removeIfFromRandomAccessList((List<T>) removeFrom, checkNotNull(predicate)); } return Iterators.removeIf(removeFrom.iterator(), predicate); }
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Tue Sep 16 18:35:28 GMT 2025 - 43.8K bytes - Click Count (0) -
guava/src/com/google/common/util/concurrent/AtomicLongMap.java
* * <p>This method is not atomic: the map may be visible in intermediate states, where some of the * zero values have been removed and others have not. */ public void removeAllZeros() { map.values().removeIf(x -> x == 0); } /** * Returns the sum of all values in this map. * * <p>This method is not atomic: the sum may or may not include other concurrent operations. */ public long sum() {
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Fri Oct 10 23:13:45 GMT 2025 - 11.7K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/collect/FluentIterableTest.java
* limitations under the License. */ package com.google.common.collect; import static com.google.common.base.Predicates.equalTo; import static com.google.common.collect.Iterables.removeIf; import static com.google.common.collect.Lists.newArrayList; import static com.google.common.collect.Maps.immutableEntry; import static com.google.common.collect.ReflectionFreeAssertThrows.assertThrows;
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Thu Aug 07 16:05:33 GMT 2025 - 30.5K bytes - Click Count (0) -
src/main/java/jcifs/smb/MultiChannelManager.java
} private List<NetworkInterface> getAvailableNetworkInterfaces() { try { List<NetworkInterface> interfaces = Collections.list(NetworkInterface.getNetworkInterfaces()); interfaces.removeIf(ni -> { try { return ni.isLoopback() || !ni.isUp() || ni.isVirtual(); } catch (Exception e) { return true; } });Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Sun Aug 31 08:00:57 GMT 2025 - 20.5K bytes - Click Count (0) -
src/main/java/jcifs/internal/smb2/lease/LeaseManager.java
fileCache.clear(); } /** * Clean up expired weak references from the file cache */ private void cleanupExpiredReferences() { try { fileCache.entrySet().removeIf(entry -> { WeakReference<SmbFile> ref = entry.getValue(); if (ref.get() == null) { log.debug("Removing expired file cache entry: {}", entry.getKey());
Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Sun Aug 31 08:00:57 GMT 2025 - 18.8K bytes - Click Count (0) -
src/main/java/jcifs/audit/SecurityAuditLogger.java
} private void cleanupOldRateLimitCounters(long currentWindow) { // Clean up counters from previous windows to prevent memory leaks rateLimitCounters.entrySet().removeIf(entry -> { String key = entry.getKey(); int lastUnderscore = key.lastIndexOf('_'); if (lastUnderscore > 0) { try {Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Sat Aug 30 05:58:03 GMT 2025 - 26.6K bytes - Click Count (0) -
guava-tests/test/com/google/common/collect/IteratorsTest.java
assertEquals(newArrayList("a", "c", "e"), list); } public void testRemoveIf() { List<String> list = newArrayList("a", "b", "c", "d", "e"); assertTrue( Iterators.removeIf( list.iterator(), new Predicate<String>() { @Override public boolean apply(String s) { return s.equals("b") || s.equals("d") || s.equals("f");
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Tue Oct 28 18:44:53 GMT 2025 - 56.7K bytes - Click Count (0) -
impl/maven-core/src/main/java/org/apache/maven/project/MavenProject.java
Path path = getBaseDirectory() .resolve(Objects.requireNonNull(directory, "directory cannot be null")) .normalize(); sources.removeIf(source -> source.scope() == scope && source.language() == language && source.directory().equals(path)); } /** * Removes a source root from the project. *
Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Fri Aug 29 12:47:20 GMT 2025 - 67K bytes - Click Count (0) -
android/guava/src/com/google/common/collect/Collections2.java
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Sat Aug 09 01:14:59 GMT 2025 - 22.6K bytes - Click Count (0) -
guava/src/com/google/common/collect/Synchronized.java
synchronized (mutex) { return delegate().retainAll(c); } } @Override public boolean removeIf(Predicate<? super E> filter) { synchronized (mutex) { return delegate().removeIf(filter); } } @Override public int size() { synchronized (mutex) { return delegate().size(); } }
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Fri Aug 08 15:11:10 GMT 2025 - 56.9K bytes - Click Count (0)