Package org.javlo.utils
Class MapCollectionWrapper<K,V>
- java.lang.Object
-
- org.javlo.utils.MapCollectionWrapper<K,V>
-
- Type Parameters:
K- the type of the keyV- the type of element content in the collection
public class MapCollectionWrapper<K,V> extends Object
implement a Map with Collection as value.- Author:
- Patrick Vandermaesen
-
-
Constructor Summary
Constructors Constructor Description MapCollectionWrapper()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description List<V>add(K key, V value)voidaddAll(Map<? extends K,? extends List<V>> m)List<V>addOrChange(K key, V value)update the value, if hashcode allready exist in the List the oldest is removed.voidaddValues(K key, List<V> newValues)voidclear()booleancontains(K key)List<V>get(K key)get the listVget(K key, V defaultValue)Map<K,List<V>>getMap()List<V>getValues(K key, List<V> defaultValue)Set<K>keySet()static voidmain(String[] args)List<V>remove(K key, V value)List<V>removeValues(K key)List<List<V>>values()
-