public class KeyedLists<K extends java.lang.Comparable,V>
extends java.util.HashMap<K,java.util.List<V>>
This class extends HashMap to allow each key to take an ArrayList of values.
| Constructor and Description | 
|---|
| KeyedLists()Create a keyed lists object. | 
| Modifier and Type | Method and Description | 
|---|---|
| java.lang.Object | get(java.lang.Object key,
   int index)Get indexed entry in list for specified key. | 
| java.lang.Object | put(K key,
   V value)Add an entry to list for a key. | 
| java.lang.Object | putAll(K key,
      java.util.Collection<V> collection)Add all entries from a collection to list for a key. | 
| boolean | remove(K key,
      V value)Remove an entry from list for a key. | 
clear, clone, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, size, valuespublic java.lang.Object get(java.lang.Object key,
                   int index)
key - The key.index - Index of list entry to retrieve.public java.lang.Object putAll(K key, java.util.Collection<V> collection)
key - The key.collection - Collection whose entries should be added.public java.lang.Object put(K key, V value)
key - The key.value - Value to add to key's list.