Skip to content

Instantly share code, notes, and snippets.

View SoKnight's full-sized avatar
Kotlin or Java?

Konstantin SoKnight

Kotlin or Java?
View GitHub Profile
@kostapc
kostapc / ConcurrentMultiValuedMap.java
Created March 30, 2017 17:44
concurrent MultiValuedMap implementation
public class ConcurrentMultiValuedMap<K,V> implements MultiValuedMap<K,V> {
private Map<K, Collection<V>> storage = new ConcurrentHashMap<>();
@Override
public int size() {
return storage.size();
}
@Override