Java Map Remove removeAll(Map map, Set keys)

Here you can find the source of removeAll(Map map, Set keys)

Description

remove All

License

Apache License

Declaration

public static <K, V> void removeAll(Map<K, V> map, Set<K> keys) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

import java.util.*;

public class Main {
    public static <K, V> void removeAll(Map<K, V> map, Set<K> keys) {
        for (K k : keys) {
            map.remove(k);//from   w  w w  . j  av  a 2 s.c  om
        }
    }
}

Related

  1. remove(Map map, String key)
  2. remove(Map> map, K key, V value)
  3. remove(Map map, Collection keys)
  4. remove(Map map, K key)
  5. removeAll(final Map target, final Iterable keys, Collection values)
  6. removeAllFromCollection(Map> map, Object key, Collection values)
  7. removeAllNullValueEntry(Map source)
  8. removeAndCleanFromCollectionMap(KeyT key, ValT toBeRemoved, Map> map)
  9. removeApiUuidMap(String apiName)