Package io.undertow.server
Class MultiValueHashListStorage<K,V>
- java.lang.Object
-
- io.undertow.server.MultiValueHashListStorage<K,V>
-
- Type Parameters:
K- - key typeV- - value type
public final class MultiValueHashListStorage<K,V> extends Object
This class allows to store multiple values for single key value. Key and value order are honored. Duplicate entries of key-value pair is not allowed, it is vetted viajava.lang.Object#equals()method.- Author:
- baranowb
-
-
Constructor Summary
Constructors Constructor Description MultiValueHashListStorage()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()booleancontainsKey(Object key)booleancontainsValue(Object value)booleancontainsValue(Object key, Object value)List<V>get(Object key)booleanisEmpty()Set<K>keySet()voidput(K key, V value)Vremove(Object key, Object value)Collection<V>removeAll(Object key)intsize()StringtoString()Iterator<V>valuesIterator()
-
-
-
Method Detail
-
size
public int size()
-
isEmpty
public boolean isEmpty()
-
containsKey
public boolean containsKey(Object key)
-
containsValue
public boolean containsValue(Object value)
-
removeAll
public Collection<V> removeAll(Object key)
-
clear
public void clear()
-
-