Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 25 for removeMin (0.54 sec)

  1. 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)
  2. 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);
      }
    
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Sep 16 18:35:28 UTC 2025
    - 43.8K bytes
    - Viewed (0)
  3. guava-testlib/src/com/google/common/collect/testing/google/UnmodifiableCollectionTests.java

        } catch (UnsupportedOperationException expected) {
        }
        assertCollectionsAreEquivalent(multiset, copy);
    
        try {
          multiset.removeIf(x -> false);
          fail("removeIf(Predicate) succeeded on unmodifiable collection");
        } catch (UnsupportedOperationException expected) {
        }
        assertCollectionsAreEquivalent(multiset, copy);
    
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Sun Aug 10 19:54:19 UTC 2025
    - 14.9K bytes
    - Viewed (0)
  4. 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() {
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Fri Oct 10 23:13:45 UTC 2025
    - 11.7K bytes
    - Viewed (0)
  5. 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;
                    }
                });
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 20.5K bytes
    - Viewed (0)
  6. 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;
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 30.5K bytes
    - Viewed (0)
  7. 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 {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 26.6K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/Collections2.java

          for (E element : collection) {
            checkArgument(predicate.apply(element));
          }
          return unfiltered.addAll(collection);
        }
    
        @Override
        public void clear() {
          Iterables.removeIf(unfiltered, predicate);
        }
    
        @Override
        public boolean contains(@Nullable Object element) {
          if (safeContains(unfiltered, element)) {
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 22.6K bytes
    - Viewed (0)
  9. 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");
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Oct 28 18:44:53 UTC 2025
    - 56.7K bytes
    - Viewed (0)
  10. 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());
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 18.8K bytes
    - Viewed (0)
Back to top