- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 273 for removeIf (0.03 sec)
-
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 Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 46.6K 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 Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 45.2K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/Iterables.java
* removeFrom.removeIf(predicate)} instead. * * @param removeFrom the iterable to (potentially) remove elements from * @param predicate a predicate that determines whether an element should be removed * @return {@code true} if any elements were removed from the iterable * @throws UnsupportedOperationException if the iterable does not support {@code remove()}. * @since 2.0 */
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 43.6K bytes - Viewed (0) -
guava/src/com/google/common/collect/Iterables.java
* removeFrom.removeIf(predicate)} instead. * * @param removeFrom the iterable to (potentially) remove elements from * @param predicate a predicate that determines whether an element should be removed * @return {@code true} if any elements were removed from the iterable * @throws UnsupportedOperationException if the iterable does not support {@code remove()}. * @since 2.0 */
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 43.3K bytes - Viewed (0) -
guava/src/com/google/common/util/concurrent/AtomicLongMap.java
* otherwise, this method returns false. */ boolean remove(K key, long value) { return map.remove(key, value); } /** * Atomically remove {@code key} from the map iff its associated value is 0. * * @since 20.0 */ @CanIgnoreReturnValue public boolean removeIfZero(K key) { return remove(key, 0); } /**
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Mon Aug 11 19:31:30 UTC 2025 - 11.7K bytes - Viewed (0) -
guava/src/com/google/common/collect/ImmutableCollection.java
* @deprecated Unsupported operation. */ @CanIgnoreReturnValue @Deprecated @Override @DoNotCall("Always throws UnsupportedOperationException") public final boolean removeIf(Predicate<? super E> filter) { throw new UnsupportedOperationException(); } /** * Guaranteed to throw an exception and leave the collection unmodified. *
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 18.7K 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/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)