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>
protected Collection<V> createUnmodifiableEmptyCollection()
createUnmodifiableEmptyCollection
in class AbstractMultimap<K,V>
Copyright © 2008–2016 JBoss, a division of Red Hat. All rights reserved.