Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 39 for RemoveAll (0.17 sec)

  1. android/guava-tests/test/com/google/common/collect/TreeMultisetTest.java

        SortedSet<String> subset = elementSet.subSet("b", "f");
        assertThat(subset).containsExactly("b", "c", "d", "e").inOrder();
    
        assertTrue(subset.removeAll(Arrays.asList("a", "c")));
        assertThat(elementSet).containsExactly("a", "b", "d", "e", "f").inOrder();
        assertThat(subset).containsExactly("b", "d", "e").inOrder();
        assertEquals(10, ms.size());
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 12.9K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/ArrayListMultimap.java

     * value and the old value.
     *
     * <p>Keys and values may be null. All optional multimap methods are supported, and all returned
     * views are modifiable.
     *
     * <p>The lists returned by {@link #get}, {@link #removeAll}, and {@link #replaceValues} all
     * implement {@link java.util.RandomAccess}.
     *
     * <p>This class is not threadsafe when any concurrent operations update the multimap. Concurrent
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 6.9K bytes
    - Viewed (0)
  3. android/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 May 03 12:43:13 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 36.1K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/TreeMultimap.java

     * Object#equals}.
     *
     * <p>The collections returned by {@code keySet} and {@code asMap} iterate through the keys
     * according to the key comparator ordering or the natural ordering of the keys. Similarly, {@code
     * get}, {@code removeAll}, and {@code replaceValues} return collections that iterate through the
     * values according to the value comparator ordering or the natural ordering of the values. The
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Sat Mar 09 00:21:17 GMT 2024
    - 8.7K bytes
    - Viewed (0)
  5. android/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 May 03 12:43:13 GMT 2024
    - Last Modified: Tue Apr 30 18:43:01 GMT 2024
    - 56.5K bytes
    - Viewed (0)
  6. guava/src/com/google/common/collect/ArrayListMultimap.java

     * value and the old value.
     *
     * <p>Keys and values may be null. All optional multimap methods are supported, and all returned
     * views are modifiable.
     *
     * <p>The lists returned by {@link #get}, {@link #removeAll}, and {@link #replaceValues} all
     * implement {@link java.util.RandomAccess}.
     *
     * <p>This class is not threadsafe when any concurrent operations update the multimap. Concurrent
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 6.9K bytes
    - Viewed (0)
  7. android/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 May 03 12:43:13 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 46K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/collect/MultimapsTest.java

        assertEquals(3, multimap.size());
        assertEquals(Collections.emptySet(), multimap.removeAll("dog"));
        assertEquals(3, multimap.size());
        assertTrue(multimap.containsKey("bar"));
        assertEquals(Collections.singleton(2), multimap.removeAll("bar"));
        assertEquals(2, multimap.size());
        assertFalse(multimap.containsKey("bar"));
      }
    
      public void testForMapAsMap() {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 39.1K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/ImmutableSetMultimap.java

       * @deprecated Unsupported operation.
       */
      @CanIgnoreReturnValue
      @Deprecated
      @Override
      @DoNotCall("Always throws UnsupportedOperationException")
      public final ImmutableSet<V> removeAll(@CheckForNull Object key) {
        throw new UnsupportedOperationException();
      }
    
      /**
       * Guaranteed to throw an exception and leave the multimap unmodified.
       *
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 23.6K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/collect/TreeMultisetTest.java

        SortedSet<String> subset = elementSet.subSet("b", "f");
        assertThat(subset).containsExactly("b", "c", "d", "e").inOrder();
    
        assertTrue(subset.removeAll(Arrays.asList("a", "c")));
        assertThat(elementSet).containsExactly("a", "b", "d", "e", "f").inOrder();
        assertThat(subset).containsExactly("b", "d", "e").inOrder();
        assertEquals(10, ms.size());
      }
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 12.9K bytes
    - Viewed (0)
Back to top