K
- The Class of the key for this GenericMapToListV
- The Class of the Value for this GenericMapToListpublic class GenericMapToList<K,V> extends AbstractMapToList<K,V>
Constructor and Description |
---|
GenericMapToList(java.lang.Class<? extends java.util.Map> cl)
Creates a new GenericMapToList, using the given Class as the underlying
class for construction of the Map.
|
Modifier and Type | Method and Description |
---|---|
protected java.util.Set<K> |
getEmptySet()
Creates a new Set for use by AbstractMapToList.
|
static <K,V> GenericMapToList<K,V> |
getMapToList(java.lang.Class<? extends java.util.Map> cl)
A convenience method for constructing a new GenericMapToList.
|
addAllLists, addAllToListFor, addToListFor, addToListFor, clear, containsAnyInList, containsInList, containsListFor, equals, getElementInList, getKeySet, getListFor, hashCode, initializeListFor, isEmpty, removeFromListFor, removeListFor, size, sizeOfListFor, toString
public GenericMapToList(java.lang.Class<? extends java.util.Map> cl) throws java.lang.InstantiationException, java.lang.IllegalAccessException
cl
- The Class (extending Map) to be used as the underlying Map of
this GenericMapToListjava.lang.IllegalAccessException
- if there is a security problem in accessing the given classjava.lang.InstantiationException
- if the given class does not have a public, zero argument
constructorjava.lang.NullPointerException
- if the given Class is nullpublic static <K,V> GenericMapToList<K,V> getMapToList(java.lang.Class<? extends java.util.Map> cl)
K
- The type used as the Key in the GenericMapToListV
- The type used as values in the GenericMapToListcl
- The class to be used as the underlying class in the
GenericMapToListjava.lang.IllegalArgumentException
- if the given Class does not have a public, zero argument
constructorjava.lang.NullPointerException
- if the given Class is nullprotected java.util.Set<K> getEmptySet()
getEmptySet
in class AbstractMapToList<K,V>
AbstractMapToList.getEmptySet()