- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 39 for RemoveAll (0.16 sec)
-
android/guava/src/com/google/common/collect/ImmutableRangeSet.java
* * <p>This is essentially the same as {@code * TreeRangeSet.create(this).removeAll(other.complement())} except it returns an {@code * ImmutableRangeSet}. * * @since 21.0 */ public ImmutableRangeSet<C> intersection(RangeSet<C> other) { RangeSet<C> copy = TreeRangeSet.create(this); copy.removeAll(other.complement()); return copyOf(copy); } /**
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Wed May 01 18:44:57 GMT 2024 - 27.2K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/Multimaps.java
return get((K) key).remove(value); } @SuppressWarnings("unchecked") @Override public Collection<V2> removeAll(@CheckForNull Object key) { return transform((K) key, fromMultimap.removeAll(key)); } @Override public Collection<V2> replaceValues(@ParametricNullness K key, Iterable<? extends V2> values) {
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Wed May 01 18:44:57 GMT 2024 - 86.4K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/IterablesTest.java
} public void testRemoveAll_collection() { List<String> list = newArrayList("a", "b", "c", "d", "e"); assertTrue(Iterables.removeAll(list, newArrayList("b", "d", "f"))); assertEquals(newArrayList("a", "c", "e"), list); assertFalse(Iterables.removeAll(list, newArrayList("x", "y", "z"))); assertEquals(newArrayList("a", "c", "e"), list); } public void testRemoveAll_iterable() {
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Thu Mar 07 18:34:03 GMT 2024 - 47.5K bytes - Viewed (0) -
guava/src/com/google/common/collect/Collections2.java
* collection's {@code add()} and {@code addAll()} methods throw an {@link * IllegalArgumentException}. When methods such as {@code removeAll()} and {@code clear()} are * called on the filtered collection, only elements that satisfy the filter will be removed from * the underlying collection. *
Java - Registered: Fri Apr 05 12:43:09 GMT 2024 - Last Modified: Mon Apr 01 16:15:01 GMT 2024 - 23.1K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/AbstractMapsTransformValuesTest.java
} catch (RuntimeException tolerated) { // GWT's HashMap.keySet().removeAll(null) doesn't throws NPE. } } @Override public void testEntrySetRemoveAllNullFromEmpty() { try { super.testEntrySetRemoveAllNullFromEmpty(); } catch (RuntimeException tolerated) { // GWT's HashMap.entrySet().removeAll(null) doesn't throws NPE. } }
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Thu Mar 07 18:34:03 GMT 2024 - 9.3K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/AbstractMapsTransformValuesTest.java
} catch (RuntimeException tolerated) { // GWT's HashMap.keySet().removeAll(null) doesn't throws NPE. } } @Override public void testEntrySetRemoveAllNullFromEmpty() { try { super.testEntrySetRemoveAllNullFromEmpty(); } catch (RuntimeException tolerated) { // GWT's HashMap.entrySet().removeAll(null) doesn't throws NPE. } }
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Thu Mar 07 18:34:03 GMT 2024 - 9.3K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/Maps.java
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Wed May 01 18:44:57 GMT 2024 - 159.6K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/MinMaxPriorityQueueTest.java
assertEquals(47, (int) mmHeap.pollLast()); assertEquals(4, (int) mmHeap.pollLast()); mmHeap.removeAll(Lists.newArrayList(2, 3)); assertEquals(3, mmHeap.size()); assertTrue("Heap is not intact after removeAll()", mmHeap.isIntact()); } public void testContains() { MinMaxPriorityQueue<Integer> mmHeap = MinMaxPriorityQueue.create();
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Thu Mar 07 18:34:03 GMT 2024 - 36.1K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/IteratorsTest.java
}.test(); } public void testRemoveAll() { List<String> list = newArrayList("a", "b", "c", "d", "e"); assertTrue(Iterators.removeAll(list.iterator(), newArrayList("b", "d", "f"))); assertEquals(newArrayList("a", "c", "e"), list); assertFalse(Iterators.removeAll(list.iterator(), newArrayList("x", "y", "z"))); assertEquals(newArrayList("a", "c", "e"), list); } public void testRemoveIf() {
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Thu Mar 07 18:34:03 GMT 2024 - 55.7K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/Iterables.java
*/ @CanIgnoreReturnValue public static boolean removeAll(Iterable<?> removeFrom, Collection<?> elementsToRemove) { return (removeFrom instanceof Collection) ? ((Collection<?>) removeFrom).removeAll(checkNotNull(elementsToRemove)) : Iterators.removeAll(removeFrom.iterator(), elementsToRemove); } /**
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Wed Apr 24 19:38:27 GMT 2024 - 42.8K bytes - Viewed (0)