K
- the key typeV
- the value typepublic class ArrayListMultimap<K,V> extends AbstractMultimap<K,V> implements ListMultimap<K,V>
AbstractMultimap.EntriesCollection, AbstractMultimap.EntryIterator, AbstractMultimap.ValueIterator, AbstractMultimap.ValuesCollection, AbstractMultimap.WrappedCollection, AbstractMultimap.WrappedKeySet, AbstractMultimap.WrappedList, AbstractMultimap.WrappedMap, AbstractMultimap.WrappedSortedKeySet
Modifier | Constructor and Description |
---|---|
protected |
ArrayListMultimap() |
Modifier and Type | Method and Description |
---|---|
static <K,V> ArrayListMultimap<K,V> |
create()
Creates a new, empty
LinkedHashMultimap (that allows no duplicates) with the default initial capacity. |
protected Collection<V> |
createCollection() |
protected Collection<V> |
createUnmodifiableEmptyCollection() |
List<V> |
get(K key)
Get the collection of values that are associated with the supplied key.
|
asMap, clear, containsEntry, containsKey, containsValue, createEntryIterator, createUnmodifiable, entries, equals, getOrCreateCollection, hashCode, isEmpty, keySet, put, rawData, remove, removeAll, removeAllValuesForKey, size, toString, values, wrapCollection, wrapKeySet, wrapList, wrapMap
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
asMap, clear, containsEntry, containsKey, containsValue, entries, isEmpty, keySet, put, remove, removeAll, size, values
public static <K,V> ArrayListMultimap<K,V> create()
LinkedHashMultimap
(that allows no duplicates) with the default initial capacity.K
- the key typeV
- the value typeprotected Collection<V> createCollection()
createCollection
in class AbstractMultimap<K,V>
AbstractMultimap.createCollection()
protected Collection<V> createUnmodifiableEmptyCollection()
createUnmodifiableEmptyCollection
in class AbstractMultimap<K,V>
AbstractMultimap.createUnmodifiableEmptyCollection()
public List<V> get(K key)
Changes to the returned collection will update the values that this multimap associates with the key.
get
in interface ListMultimap<K,V>
get
in interface Multimap<K,V>
get
in class AbstractMultimap<K,V>
key
- the keyAbstractMultimap.get(java.lang.Object)
Copyright © 2008-2014 JBoss, a division of Red Hat. All Rights Reserved.