List of usage examples for org.apache.commons.collections4.multimap AbstractMultiValuedMap AbstractMultiValuedMap
@SuppressWarnings("unchecked") protected AbstractMultiValuedMap(final Map<K, ? extends Collection<V>> map)
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 }; }