List of usage examples for org.apache.commons.collections4.map MultiValueMap MultiValueMap
@SuppressWarnings("unchecked") protected <C extends Collection<V>> MultiValueMap(final Map<K, ? super C> map, final Factory<C> collectionFactory)
map
and creates the value collections using the supplied collectionFactory
. From source file:com.offbynull.voip.kademlia.model.TimeSet.java
public TimeSet() { valueLookup = new HashMap<>(); timeLookup = new TreeMap<>(); timeLookupDecorator = MultiValueMap.multiValueMap(timeLookup, () -> new HashSet<>()); }