java.lang.Object
org.xbib.net.path.spring.util.MultiValueMapAdapter<K,V>
org.xbib.net.path.spring.util.LinkedMultiValueMap<K,V>
- Typparameter:
K- the key typeV- the value element type
- Alle implementierten Schnittstellen:
Map<K,,List<V>> MultiValueMap<K,V>
Simple implementation of
MultiValueMap that wraps a LinkedHashMap,
storing multiple values in an ArrayList.
This Map implementation is generally not thread-safe. It is primarily designed
for data structures exposed from request objects, for use in a single thread only.-
Verschachtelte Klassen - Übersicht
-
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungCreate a new LinkedMultiValueMap that wraps aLinkedHashMap.LinkedMultiValueMap(int expectedSize) Create a new LinkedMultiValueMap that wraps aLinkedHashMapwith an initial capacity that can accommodate the specified number of elements without any immediate resize/rehash operations to be expected.LinkedMultiValueMap(Map<K, List<V>> otherMap) Copy constructor: Create a new LinkedMultiValueMap with the same mappings as the specified Map. -
Methodenübersicht
Von Klasse geerbte Methoden org.xbib.net.path.spring.util.MultiValueMapAdapter
add, addAll, addAll, clear, containsKey, containsValue, entrySet, equals, get, hashCode, isEmpty, keySet, put, putAll, remove, size, toString, valuesVon Klasse geerbte Methoden java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitVon Schnittstelle geerbte Methoden java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
Konstruktordetails
-
LinkedMultiValueMap
public LinkedMultiValueMap()Create a new LinkedMultiValueMap that wraps aLinkedHashMap. -
LinkedMultiValueMap
public LinkedMultiValueMap(int expectedSize) Create a new LinkedMultiValueMap that wraps aLinkedHashMapwith an initial capacity that can accommodate the specified number of elements without any immediate resize/rehash operations to be expected.- Parameter:
expectedSize- the expected number of elements (with a corresponding capacity to be derived so that no resize/rehash operations are needed)
-
LinkedMultiValueMap
Copy constructor: Create a new LinkedMultiValueMap with the same mappings as the specified Map. Note that this will be a shallow copy; its value-holding List entries will get reused and therefore cannot get modified independently.- Parameter:
otherMap- the Map whose mappings are to be placed in this Map- Siehe auch:
-
-
Methodendetails
-
deepCopy
Create a deep copy of this Map.- Gibt zurück:
- a copy of this Map, including a copy of each value-holding List entry
(consistently using an independent modifiable
ArrayListfor each entry) along the lines ofMultiValueMap.addAllsemantics - Siehe auch:
-