Example usage for org.apache.commons.collections4.multimap AbstractMultiValuedMap AbstractMultiValuedMap

List of usage examples for org.apache.commons.collections4.multimap AbstractMultiValuedMap AbstractMultiValuedMap

Introduction

In this page you can find the example usage for org.apache.commons.collections4.multimap AbstractMultiValuedMap AbstractMultiValuedMap.

Prototype

@SuppressWarnings("unchecked")
protected AbstractMultiValuedMap(final Map<K, ? extends Collection<V>> map) 

Source Link

Document

Constructor that wraps (not copies).

Usage

From source file:com.tussle.hitbox.HitboxLockComponent.java

public HitboxLockComponent() {
    //There ought to be a more pleasant loader method to do this
    lockMap = new AbstractMultiValuedMap<ScriptIterator, HitboxLock>(new ReferenceIdentityMap<>(
            AbstractReferenceMap.ReferenceStrength.SOFT, AbstractReferenceMap.ReferenceStrength.WEAK)) {
        protected HashSet<HitboxLock> createCollection() {
            return new HashSet<>();
        }//from   w ww . ja v a  2 s .c om
    };

}