Example usage for org.apache.commons.collections15 MultiMap putAll

List of usage examples for org.apache.commons.collections15 MultiMap putAll

Introduction

In this page you can find the example usage for org.apache.commons.collections15 MultiMap putAll.

Prototype

void putAll(MultiMap<? extends K, ? extends V> t);

Source Link

Document

Copies all of the mappings from the specified multimap to this multimap (optional operation).

Usage

From source file:de.dhke.projects.cutil.collections.cow.CopyOnWriteMultiMap.java

public boolean copy() {
    if (!_isWasCopied) {
        final MultiMap<K, V> newMap = getFactory().getInstance();
        newMap.putAll(_baseMap);
        _baseMap = newMap;//w ww.  j a v a 2s. c o  m
        _isWasCopied = true;
        return true;
    } else
        return false;
}