Package icyllis.arc3d.engine
Class LinkedListMultimap<K,V>
java.lang.Object
java.util.AbstractMap<K,LinkedList<V>>
java.util.HashMap<K,LinkedList<V>>
icyllis.arc3d.engine.LinkedListMultimap<K,V>
- All Implemented Interfaces:
Serializable,Cloneable,Map<K,LinkedList<V>>
Implementation of
Multimap that uses an LinkedList to store the values for a given
key. A HashMap associates each key with an LinkedList of values. Empty
LinkedList values will be automatically removed.- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K, V> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddFirstEntry(K k, V v) voidaddLastEntry(K k, V v) peekFirstEntry(K k) peekLastEntry(K k) pollFirstEntry(K k) pollLastEntry(K k) voidremoveFirstEntry(K k, V v) voidremoveLastEntry(K k, V v) Methods inherited from class java.util.HashMap
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, newHashMap, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, valuesMethods inherited from class java.util.AbstractMap
equals, hashCode, toString
-
Constructor Details
-
LinkedListMultimap
public LinkedListMultimap() -
LinkedListMultimap
-
-
Method Details
-
addFirstEntry
-
addLastEntry
-
pollFirstEntry
-
pollLastEntry
-
peekFirstEntry
-
peekLastEntry
-
removeFirstEntry
-
removeLastEntry
-