K
- the type of the keyV
- the type of element content in the collectionpublic class MapCollectionWrapper<K,V> extends Object
Constructor and Description |
---|
MapCollectionWrapper() |
Modifier and Type | Method and 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 list
|
V |
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() |
Copyright © 2012-2018. All Rights Reserved.