Example usage for org.apache.commons.collections4.map MultiValueMap MultiValueMap

List of usage examples for org.apache.commons.collections4.map MultiValueMap MultiValueMap

Introduction

In this page you can find the example usage for org.apache.commons.collections4.map MultiValueMap MultiValueMap.

Prototype

@SuppressWarnings("unchecked")
protected <C extends Collection<V>> MultiValueMap(final Map<K, ? super C> map,
        final Factory<C> collectionFactory) 

Source Link

Document

Creates a MultiValueMap which decorates the given map and creates the value collections using the supplied collectionFactory.

Usage

From source file:com.offbynull.voip.kademlia.model.TimeSet.java

public TimeSet() {
    valueLookup = new HashMap<>();
    timeLookup = new TreeMap<>();
    timeLookupDecorator = MultiValueMap.multiValueMap(timeLookup, () -> new HashSet<>());
}