org.apache.clerezza.triaxrs.util
Class MultivaluedMapImpl<K,V>

java.lang.Object
  extended by org.apache.clerezza.triaxrs.util.MultivaluedMapImpl<K,V>
All Implemented Interfaces:
Cloneable, Map<K,List<V>>, javax.ws.rs.core.MultivaluedMap<K,V>
Direct Known Subclasses:
CaseInsensitiveMap

public class MultivaluedMapImpl<K,V>
extends Object
implements javax.ws.rs.core.MultivaluedMap<K,V>, Cloneable


Nested Class Summary
 
Nested classes/interfaces inherited from interface java.util.Map
Map.Entry<K,V>
 
Constructor Summary
MultivaluedMapImpl()
           
MultivaluedMapImpl(Map<K,V> map)
           
 
Method Summary
 void add(K key, V value)
           
static
<K,V> void
addAll(javax.ws.rs.core.MultivaluedMap<K,V> src, javax.ws.rs.core.MultivaluedMap<K,V> dest)
           
 void clear()
           
 MultivaluedMapImpl<K,V> clone()
           
static
<K,V> MultivaluedMapImpl<K,V>
clone(javax.ws.rs.core.MultivaluedMap<K,V> src)
           
 boolean containsKey(Object key)
           
 boolean containsValue(Object value)
           
static
<K,V> void
copy(javax.ws.rs.core.MultivaluedMap<K,V> src, javax.ws.rs.core.MultivaluedMap<K,V> dest)
           
 Set<Map.Entry<K,List<V>>> entrySet()
           
 boolean equals(Object o)
           
 List<V> get(Object key)
           
 V getFirst(K key)
           
 int hashCode()
           
 boolean isEmpty()
           
 Set<K> keySet()
           
 List<V> put(K key, List<V> value)
           
 void putAll(Map<? extends K,? extends List<V>> t)
           
 void putSingle(K key, V value)
           
 List<V> remove(Object key)
           
 int size()
           
static javax.ws.rs.core.MultivaluedMap<String,String> toMultivaluedMapString(Map<String,? extends Object> values)
           
 String toString()
           
static String toString(javax.ws.rs.core.MultivaluedMap<?,?> map, String delimiter)
           
 Collection<List<V>> values()
           
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MultivaluedMapImpl

public MultivaluedMapImpl()

MultivaluedMapImpl

public MultivaluedMapImpl(Map<K,V> map)
Method Detail

add

public void add(K key,
                V value)
Specified by:
add in interface javax.ws.rs.core.MultivaluedMap<K,V>

getFirst

public V getFirst(K key)
Specified by:
getFirst in interface javax.ws.rs.core.MultivaluedMap<K,V>

putSingle

public void putSingle(K key,
                      V value)
Specified by:
putSingle in interface javax.ws.rs.core.MultivaluedMap<K,V>

clone

public MultivaluedMapImpl<K,V> clone()
Overrides:
clone in class Object

clone

public static <K,V> MultivaluedMapImpl<K,V> clone(javax.ws.rs.core.MultivaluedMap<K,V> src)

copy

public static <K,V> void copy(javax.ws.rs.core.MultivaluedMap<K,V> src,
                              javax.ws.rs.core.MultivaluedMap<K,V> dest)

addAll

public static <K,V> void addAll(javax.ws.rs.core.MultivaluedMap<K,V> src,
                                javax.ws.rs.core.MultivaluedMap<K,V> dest)

toString

public String toString()
Overrides:
toString in class Object

toString

public static String toString(javax.ws.rs.core.MultivaluedMap<?,?> map,
                              String delimiter)

toMultivaluedMapString

public static javax.ws.rs.core.MultivaluedMap<String,String> toMultivaluedMapString(Map<String,? extends Object> values)

clear

public void clear()
Specified by:
clear in interface Map<K,List<V>>

containsKey

public boolean containsKey(Object key)
Specified by:
containsKey in interface Map<K,List<V>>

containsValue

public boolean containsValue(Object value)
Specified by:
containsValue in interface Map<K,List<V>>

entrySet

public Set<Map.Entry<K,List<V>>> entrySet()
Specified by:
entrySet in interface Map<K,List<V>>

equals

public boolean equals(Object o)
Specified by:
equals in interface Map<K,List<V>>
Overrides:
equals in class Object

get

public List<V> get(Object key)
Specified by:
get in interface Map<K,List<V>>

hashCode

public int hashCode()
Specified by:
hashCode in interface Map<K,List<V>>
Overrides:
hashCode in class Object

isEmpty

public boolean isEmpty()
Specified by:
isEmpty in interface Map<K,List<V>>

keySet

public Set<K> keySet()
Specified by:
keySet in interface Map<K,List<V>>

put

public List<V> put(K key,
                   List<V> value)
Specified by:
put in interface Map<K,List<V>>

putAll

public void putAll(Map<? extends K,? extends List<V>> t)
Specified by:
putAll in interface Map<K,List<V>>

remove

public List<V> remove(Object key)
Specified by:
remove in interface Map<K,List<V>>

size

public int size()
Specified by:
size in interface Map<K,List<V>>

values

public Collection<List<V>> values()
Specified by:
values in interface Map<K,List<V>>


Copyright © 2012 The Apache Software Foundation. All Rights Reserved.