K - the class of the keyV - the class of the elements held in the collectionpublic abstract class MapToCollection<K,V> extends Object implements Serializable
| Constructor and Description |
|---|
MapToCollection() |
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
boolean |
containsKey(K key) |
protected abstract Collection<V> |
createValuesCollection()
This is a factory method for nested collections
|
Set<Map.Entry<K,Collection<V>>> |
entrySet() |
Collection<V> |
get(K key) |
boolean |
isEmpty() |
Set<K> |
keySet() |
Collection<V> |
put(K key,
Collection<V> value) |
Collection<V> |
put(K key,
V value) |
void |
putAll(MapToCollection<K,V> t) |
Collection<V> |
remove(K key)
Removes the whole collection bound to the key
|
boolean |
remove(K key,
V value)
Removes the value from the collection for that key
|
Map<K,Collection<V>> |
toMap() |
String |
toString() |
Collection<V> |
values() |
public MapToCollection()
public final void clear()
Map.clear()public final boolean containsKey(K key)
Map.containsKey(java.lang.Object)public Collection<V> get(K key)
key - Map.get(java.lang.Object)public final boolean isEmpty()
Map.isEmpty()public final Set<K> keySet()
Map.keySet()public final Set<Map.Entry<K,Collection<V>>> entrySet()
Map.keySet()public final Collection<V> put(K key, V value)
Map.put(java.lang.Object, java.lang.Object)public final Collection<V> put(K key, Collection<V> value)
public final void putAll(MapToCollection<K,V> t)
Map.putAll(java.util.Map)public final Collection<V> remove(K key)
Map.remove(java.lang.Object)public final boolean remove(K key, V value)
Map.remove(java.lang.Object)public final Collection<V> values()
Map.values()protected abstract Collection<V> createValuesCollection()
public String toString()
toString in class ObjectObject.toString()public final Map<K,Collection<V>> toMap()
Copyright © 2001–2018 MDA Tools. All rights reserved.