Code example for HashMultimap

Methods: remove

0
     */ 
    public void remove(K key) {
 
        V removedValue = m_forwardMap.remove(key);
        if (removedValue != null) {
            m_reverseMap.remove(removedValue, key);
        } 
    } 
 
    /** 
     * Removes all entries with the given value.<p> 
     *  
     * @param value the value  
     */ 
    public void removeValue(V value) {
 
        Set<K> keys = m_reverseMap.removeAll(value);
        for (K key : keys) {
            m_forwardMap.remove(key);
        } 
Experience pair programming with AI  Get Codota for Java