jetbrains.buildServer.util
Class MultiMap<K,V>

java.lang.Object
  extended by jetbrains.buildServer.util.MultiMap<K,V>

public class MultiMap<K,V>
extends java.lang.Object

Author:
Dmitry Avdeev

Constructor Summary
MultiMap()
           
 
Method Summary
 void clear()
           
 boolean containsKey(K elementPath)
           
 boolean containsScalarValue(V value)
           
protected  java.util.List<V> createCollection()
           
protected  java.util.Map<K,java.util.List<V>> createMap()
           
 java.util.Set<java.util.Map.Entry<K,java.util.List<V>>> entrySet()
           
 java.util.List<V> get(K key)
           
 boolean isEmpty()
           
 java.util.Set<K> keySet()
           
 void put(K key, java.util.List<V> values)
           
 void putValue(K key, V value)
           
 void remove(K key)
           
 void remove(K key, V value)
           
 void removeValue(V value)
           
 int size()
           
 java.util.Collection<java.util.List<V>> values()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MultiMap

public MultiMap()
Method Detail

createMap

protected java.util.Map<K,java.util.List<V>> createMap()

createCollection

protected java.util.List<V> createCollection()

putValue

public void putValue(K key,
                     V value)

isEmpty

public boolean isEmpty()

containsScalarValue

public boolean containsScalarValue(V value)

get

public java.util.List<V> get(K key)

removeValue

public void removeValue(V value)

keySet

public java.util.Set<K> keySet()

size

public int size()

put

public void put(K key,
                java.util.List<V> values)

remove

public void remove(K key)

remove

public void remove(K key,
                   V value)

containsKey

public boolean containsKey(K elementPath)

entrySet

public java.util.Set<java.util.Map.Entry<K,java.util.List<V>>> entrySet()

values

public java.util.Collection<java.util.List<V>> values()

clear

public void clear()