Class LinkedMultiValueMap<K,V>

java.lang.Object
com.aspectran.utils.LinkedMultiValueMap<K,V>
Type Parameters:
K - the key type
V - the value element type
All Implemented Interfaces:
MultiValueMap<K,V>, Serializable, Cloneable, Map<K,List<V>>

public class LinkedMultiValueMap<K,V> extends Object implements MultiValueMap<K,V>, Serializable, Cloneable

This class is a clone of org.springframework.util.LinkedMultiValueMap

Simple implementation of MultiValueMap that wraps a LinkedHashMap, storing multiple values in a LinkedList.

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.

See Also:
  • Constructor Details

    • LinkedMultiValueMap

      public LinkedMultiValueMap()
      Create a new LinkedMultiValueMap that wraps a LinkedHashMap.
    • LinkedMultiValueMap

      public LinkedMultiValueMap(int initialCapacity)
      Create a new LinkedMultiValueMap that wraps a LinkedHashMap with the given initial capacity.
      Parameters:
      initialCapacity - the initial capacity
    • LinkedMultiValueMap

      public LinkedMultiValueMap(Map<K,List<V>> otherMap)
      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.
      Parameters:
      otherMap - the Map whose mappings are to be placed in this Map
      See Also:
  • Method Details