Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 1,357 for removeAt (0.58 sec)

  1. guava-testlib/src/com/google/common/collect/testing/testers/SetRemoveTester.java

      @CollectionFeature.Require(SUPPORTS_REMOVE)
      @CollectionSize.Require(absent = ZERO)
      public void testRemove_present() {
        getSet().remove(e0());
        assertFalse(
            "After remove(present) a set should not contain the removed element.",
            getSet().contains(e0()));
      }
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Nov 14 23:40:07 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  2. internal/lru/lru.go

    		}
    		return ent.Value, true
    	}
    	return
    }
    
    // Remove removes the provided key from the cache, returning if the
    // key was contained.
    func (c *LRU[K, V]) Remove(key K) bool {
    	c.mu.Lock()
    	defer c.mu.Unlock()
    	if ent, ok := c.items[key]; ok {
    		c.removeElement(ent)
    		return true
    	}
    	return false
    }
    
    // RemoveOldest removes the oldest item from the cache.
    Registered: Sun Dec 28 09:35:17 UTC 2025
    - Last Modified: Fri Apr 25 08:22:26 UTC 2025
    - 12.5K bytes
    - Viewed (0)
  3. CHANGELOG/CHANGELOG-1.14.md

        - [(No, really, you MUST read this before you upgrade)](#no-really-you-must-read-this-before-you-upgrade)
      - [Deprecations](#deprecations)
      - [Removed and deprecated metrics](#removed-and-deprecated-metrics)
        - [Removed metrics](#removed-metrics)
        - [Deprecated metrics](#deprecated-metrics)
      - [Notable Features](#notable-features)
      - [API Changes](#api-changes)
    Registered: Fri Dec 26 09:05:12 UTC 2025
    - Last Modified: Mon Jun 14 22:06:39 UTC 2021
    - 271.5K bytes
    - Viewed (0)
  4. impl/maven-cli/src/test/java/org/apache/maven/cling/invoker/mvnup/goals/InferenceStrategyTest.java

                // Verify correct behavior for external parent:
                // - groupId should NOT be removed (external parents need groupId to be located)
                // - artifactId should NOT be removed (external parents need artifactId to be located)
                // - version should NOT be removed (external parents need version to be located)
                // This prevents the "parent.groupId is missing" error reported in issue #7934
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Tue Nov 18 18:03:26 UTC 2025
    - 35.2K bytes
    - Viewed (0)
  5. 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)
  6. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/cisupport/CIDetectorHelper.java

                    .filter(Optional::isPresent)
                    .map(Optional::get)
                    .collect(Collectors.toCollection(ArrayList::new));
    
            if (result.size() > 1) {
                // remove generic
                result.removeIf(c -> GenericCIDetector.NAME.equals(c.name()));
            }
            return result;
        }
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Sun Apr 13 18:50:07 UTC 2025
    - 1.9K bytes
    - Viewed (0)
  7. okhttp-testing-support/src/main/kotlin/okhttp3/RecordingConnectionListener.kt

      private var lastTimestampNs: Long? = null
    
      /** Confirm that the thread does not hold a lock on `lock` during the callback. */
      fun forbidLock(lock: Any) {
        forbiddenLocks.add(lock)
      }
    
      /**
       * Removes recorded events up to (and including) an event is found whose class equals [eventClass]
       * and returns it.
       */
      fun <T : ConnectionEvent> removeUpToEvent(eventClass: Class<T>): T {
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Fri May 30 21:28:20 UTC 2025
    - 5.7K bytes
    - Viewed (0)
  8. impl/maven-cli/src/test/java/org/apache/maven/cling/invoker/mvnup/goals/CompatibilityFixStrategyTest.java

                UpgradeResult result = strategy.doApply(context, pomMap);
    
                assertTrue(result.success(), "Compatibility fix should succeed");
                assertTrue(result.modifiedCount() > 0, "Should have removed duplicate dependency");
    
                // Verify only one dependency remains
                Editor editor = new Editor(document);
                Element root = editor.root();
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Tue Nov 18 18:03:26 UTC 2025
    - 12.6K bytes
    - Viewed (0)
  9. src/test/java/jcifs/util/SecureKeyManagerTest.java

            // Remove main key
            keyManager.removeSessionKey(sessionId);
    
            // Verify main key is removed (archives stay)
            assertFalse(keyManager.hasSessionKey(sessionId), "Main key should be removed");
            // Note: Archives are not automatically removed when removing main key
        }
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 14.2K bytes
    - Viewed (0)
  10. okhttp/src/jvmTest/kotlin/okhttp3/internal/cache/DiskLruCacheTest.kt

        taskFaker.runNextTask()
        assertThat(cache.remove("a")).isTrue()
        assertAbsent("a")
        cache.close()
        createNewCache()
    
        // The journal will have no record that 'a' was removed. It will have an entry for 'a', but when
        // it tries to read the cache files, it will find they were deleted. Once it encounters an entry
        // with missing cache files, it should remove it from the cache entirely.
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Sat Nov 01 12:18:11 UTC 2025
    - 59.4K bytes
    - Viewed (0)
Back to top