Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for retainAll (0.4 sec)

  1. android/guava/src/com/google/common/collect/Multisets.java

      }
    
      /** An implementation of {@link Multiset#retainAll}. */
      static boolean retainAllImpl(Multiset<?> self, Collection<?> elementsToRetain) {
        checkNotNull(elementsToRetain);
        Collection<?> collection =
            (elementsToRetain instanceof Multiset)
                ? ((Multiset<?>) elementsToRetain).elementSet()
                : elementsToRetain;
    
        return self.elementSet().retainAll(collection);
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 41.7K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/collect/IteratorsTest.java

                      }
    
                      @Override
                      public boolean retainAll(Collection<?> c) {
                        return Iterators.retainAll(iterator(), c);
                      }
                    };
                  }
                })
            .named("ArrayList with Iterators.removeAll and retainAll")
            .withFeatures(
    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)
  3. android/guava/src/com/google/common/collect/Sets.java

        @Override
        public boolean removeAll(Collection<?> c) {
          return removeAllImpl(this, c);
        }
    
        @Override
        public boolean retainAll(Collection<?> c) {
          return super.retainAll(checkNotNull(c)); // GWT compatibility
        }
      }
    
      /**
       * Returns an immutable set instance containing the given enum elements. Internally, the returned
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 77.4K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/Maps.java

              }
            }
            return map().keySet().removeAll(toRemove);
          }
        }
    
        @Override
        public boolean retainAll(Collection<?> c) {
          try {
            return super.retainAll(checkNotNull(c));
          } catch (UnsupportedOperationException e) {
            Set<K> toRetain = Sets.newHashSet();
            for (Entry<K, V> entry : map().entrySet()) {
    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)
  5. android/guava/src/com/google/common/collect/Iterators.java

       * @param elementsToRetain the elements to retain
       * @return {@code true} if any element was removed from {@code iterator}
       */
      @CanIgnoreReturnValue
      public static boolean retainAll(Iterator<?> removeFrom, Collection<?> elementsToRetain) {
        checkNotNull(elementsToRetain);
        boolean result = false;
        while (removeFrom.hasNext()) {
          if (!elementsToRetain.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