Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 39 of 39 for RemoveAll (0.15 sec)

  1. guava/src/com/google/common/collect/ImmutableCollection.java

       * @deprecated Unsupported operation.
       */
      @CanIgnoreReturnValue
      @Deprecated
      @Override
      @DoNotCall("Always throws UnsupportedOperationException")
      public final boolean removeAll(Collection<?> oldElements) {
        throw new UnsupportedOperationException();
      }
    
      /**
       * Guaranteed to throw an exception and leave the collection unmodified.
       *
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 18.7K bytes
    - Viewed (1)
  2. android/guava/src/com/google/common/collect/ImmutableListMultimap.java

       * @deprecated Unsupported operation.
       */
      @CanIgnoreReturnValue
      @Deprecated
      @Override
      @DoNotCall("Always throws UnsupportedOperationException")
      public final ImmutableList<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
    - 17.6K bytes
    - Viewed (0)
  3. 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 Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 42.2K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/ImmutableCollection.java

       * @deprecated Unsupported operation.
       */
      @CanIgnoreReturnValue
      @Deprecated
      @Override
      @DoNotCall("Always throws UnsupportedOperationException")
      public final boolean removeAll(Collection<?> oldElements) {
        throw new UnsupportedOperationException();
      }
    
      /**
       * Guaranteed to throw an exception and leave the collection unmodified.
       *
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 21.5K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/collect/MapsTest.java

        }
        try {
          values.remove("four");
          fail("UnsupportedOperationException expected");
        } catch (UnsupportedOperationException expected) {
        }
        try {
          values.removeAll(Collections.singleton("four"));
          fail("UnsupportedOperationException expected");
        } catch (UnsupportedOperationException expected) {
        }
        try {
          values.retainAll(Collections.singleton("four"));
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Mar 04 16:06:01 GMT 2024
    - 67.2K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/collect/MapsTest.java

        }
        try {
          values.remove("four");
          fail("UnsupportedOperationException expected");
        } catch (UnsupportedOperationException expected) {
        }
        try {
          values.removeAll(Collections.singleton("four"));
          fail("UnsupportedOperationException expected");
        } catch (UnsupportedOperationException expected) {
        }
        try {
          values.retainAll(Collections.singleton("four"));
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Mar 04 16:06:01 GMT 2024
    - 64.3K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/cache/LocalCacheTest.java

        map.put("foo", "bar");
        map.put("baz", "bar");
        map.put("quux", "quux");
        assertFalse(map.values() instanceof Set);
        assertTrue(map.values().removeAll(ImmutableSet.of("bar")));
        assertEquals(1, map.size());
      }
    
      public void testComputeIfAbsent_RemovalListener() {
        List<RemovalNotification<Object, Object>> notifications = new ArrayList<>();
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 14 23:06:48 GMT 2024
    - 112.3K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/cache/LocalCacheTest.java

        map.put("foo", "bar");
        map.put("baz", "bar");
        map.put("quux", "quux");
        assertFalse(map.values() instanceof Set);
        assertTrue(map.values().removeAll(ImmutableSet.of("bar")));
        assertEquals(1, map.size());
      }
    
      public void testCopyEntry_computing() {
        final CountDownLatch startSignal = new CountDownLatch(1);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Mar 14 23:06:48 GMT 2024
    - 110.7K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/Iterators.java

       * @param elementsToRemove the elements to remove
       * @return {@code true} if any element was removed from {@code iterator}
       */
      @CanIgnoreReturnValue
      public static boolean removeAll(Iterator<?> removeFrom, Collection<?> elementsToRemove) {
        checkNotNull(elementsToRemove);
        boolean result = false;
        while (removeFrom.hasNext()) {
          if (elementsToRemove.contains(removeFrom.next())) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Apr 30 18:43:01 GMT 2024
    - 51.1K bytes
    - Viewed (0)
Back to top