- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 683 for removeIf (0.04 sec)
-
guava-tests/test/com/google/common/collect/IteratorsTest.java
assertTrue(cycle.hasNext()); assertThrows(IllegalStateException.class, () -> cycle.remove()); } public void testCycleRemoveSameElementTwice() { Iterator<String> cycle = Iterators.cycle("a", "b"); cycle.next(); cycle.remove(); assertThrows(IllegalStateException.class, () -> cycle.remove()); } public void testCycleWhenRemoveIsNotSupported() {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 54.4K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/IteratorsTest.java
assertTrue(cycle.hasNext()); assertThrows(IllegalStateException.class, () -> cycle.remove()); } public void testCycleRemoveSameElementTwice() { Iterator<String> cycle = Iterators.cycle("a", "b"); cycle.next(); cycle.remove(); assertThrows(IllegalStateException.class, () -> cycle.remove()); } public void testCycleWhenRemoveIsNotSupported() {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 54.4K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/Iterators.java
} @Override public void remove() { iterator.remove(); } }; } /** * Returns an iterator that cycles indefinitely over the provided elements. * * <p>The returned iterator supports {@code remove()}. After {@code remove()} is called, * subsequent cycles omit the removed element, but {@code elements} does not change. The
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 50.5K bytes - Viewed (0) -
guava-tests/benchmark/com/google/common/util/concurrent/MonitorBasedArrayBlockingQueue.java
E x = items[takeIndex]; items[takeIndex] = null; takeIndex = inc(takeIndex); --count; return x; } /** * Utility for remove and iterator.remove: Delete item at position i. Call only when occupying * monitor. */ void removeAt(int i) { E[] items = this.items; // if removing front item, just advance if (i == takeIndex) { items[takeIndex] = null;
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Tue May 13 18:46:00 UTC 2025 - 22.4K bytes - Viewed (0) -
src/main/java/org/codelibs/core/collection/LruHashSet.java
} /** * Removes the specified element from this set if it is present. * * @param o * object to be removed from this set, if present. * @return true if the set contained the specified element. */ @Override public boolean remove(final Object o) { return map.remove(o) == PRESENT; } /**
Registered: Fri Sep 05 20:58:11 UTC 2025 - Last Modified: Sat Jul 05 00:11:05 UTC 2025 - 3.7K bytes - Viewed (0) -
src/main/java/org/codelibs/core/collection/SLinkedList.java
*/ public boolean contains(final E element) { return indexOf(element) != -1; } /** * Removes an element from the list. * * @param element the element * @return true if the element was removed, false otherwise */ public boolean remove(final E element) { if (element == null) { for (Entry e = header.next; e != header; e = e.next) {
Registered: Fri Sep 05 20:58:11 UTC 2025 - Last Modified: Thu Jun 19 09:12:22 UTC 2025 - 10.5K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/HashBiMap.java
K key = keys[entry]; removeEntryValueHashKnown(entry, valueHash); return key; } } /** Removes the entry at the specified index with no additional data. */ void removeEntry(int entry) { removeEntryKeyHashKnown(entry, Hashing.smearedHash(keys[entry])); } /** Removes the entry at the specified index, given the hash of its key and value. */
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Mon Aug 11 19:31:30 UTC 2025 - 36.2K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/Multiset.java
* * <p>This method refines {@link Collection#remove} to further specify that it <b>may not</b> * throw an exception in response to {@code element} being null or of the wrong type. * * <p>To both remove the element and obtain the previous count of that element, use {@link * #remove(Object, int) remove}{@code (element, 1)} instead. * * @param element the element to remove one occurrence of
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Tue Jul 08 18:32:10 UTC 2025 - 19.5K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/util/DocMap.java
} /** * Removes the mapping for a key from this map if it is present. * * @param key the key whose mapping is to be removed from the map * @return the previous value associated with key, or null if no mapping existed */ @Override public Object remove(final Object key) { return parent.remove(key); } /**
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Thu Jul 17 08:28:31 UTC 2025 - 5.7K bytes - Viewed (0) -
guava/src/com/google/common/collect/Multiset.java
* * <p>This method refines {@link Collection#remove} to further specify that it <b>may not</b> * throw an exception in response to {@code element} being null or of the wrong type. * * <p>To both remove the element and obtain the previous count of that element, use {@link * #remove(Object, int) remove}{@code (element, 1)} instead. * * @param element the element to remove one occurrence of
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Tue Jul 08 18:32:10 UTC 2025 - 20.9K bytes - Viewed (0)