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)
void
addAll(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.void
addValues(K key, List<V> newValues)
void
clear()
boolean
contains(K key)
List<V>
get(K key)
get the listV
get(K key, V defaultValue)
Map<K,List<V>>
getMap()
List<V>
getValues(K key, List<V> defaultValue)
Set<K>
keySet()
static void
main(String[] args)
List<V>
remove(K key, V value)
List<V>
removeValues(K key)
List<List<V>>
values()
-