Class MediaTypeMultivaluedMap<V>
java.lang.Object
java.util.AbstractMap<javax.ws.rs.core.MediaType,List<V>>
java.util.TreeMap<javax.ws.rs.core.MediaType,List<V>>
org.exoplatform.services.rest.util.MediaTypeMap<List<V>>
org.exoplatform.services.rest.util.MediaTypeMultivaluedMap<V>
- All Implemented Interfaces:
Serializable,Cloneable,Map<javax.ws.rs.core.MediaType,,List<V>> NavigableMap<javax.ws.rs.core.MediaType,,List<V>> SequencedMap<javax.ws.rs.core.MediaType,,List<V>> SortedMap<javax.ws.rs.core.MediaType,,List<V>> javax.ws.rs.core.MultivaluedMap<javax.ws.rs.core.MediaType,,V> ExtMultivaluedMap<javax.ws.rs.core.MediaType,V>
public class MediaTypeMultivaluedMap<V>
extends MediaTypeMap<List<V>>
implements ExtMultivaluedMap<javax.ws.rs.core.MediaType,V>
- 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
Methods inherited from class java.util.TreeMap
ceilingEntry, ceilingKey, clear, clone, comparator, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, descendingKeySet, descendingMap, entrySet, firstEntry, firstKey, floorEntry, floorKey, forEach, get, headMap, headMap, higherEntry, higherKey, keySet, lastEntry, lastKey, lowerEntry, lowerKey, merge, navigableKeySet, pollFirstEntry, pollLastEntry, put, putAll, putFirst, putIfAbsent, putLast, remove, replace, replace, replaceAll, size, subMap, subMap, tailMap, tailMap, valuesMethods inherited from class java.util.AbstractMap
equals, hashCode, isEmpty, toStringMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Map
clear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, equals, forEach, get, getOrDefault, hashCode, isEmpty, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, sizeMethods inherited from interface java.util.NavigableMap
reversedMethods inherited from interface java.util.SequencedMap
sequencedEntrySet, sequencedKeySet, sequencedValues
-
Constructor Details
-
MediaTypeMultivaluedMap
public MediaTypeMultivaluedMap()
-
-
Method Details
-
getList
GetListwith specified key. If it does not exist new one be created.- Specified by:
getListin interfaceExtMultivaluedMap<javax.ws.rs.core.MediaType,V> - Parameters:
mediaType- MediaType- Returns:
- List of ProviderFactory if no value mapped to the specified key then empty list will be returned instead null
-
add
- Specified by:
addin interfacejavax.ws.rs.core.MultivaluedMap<javax.ws.rs.core.MediaType,V>
-
getFirst
- Specified by:
getFirstin interfacejavax.ws.rs.core.MultivaluedMap<javax.ws.rs.core.MediaType,V>
-
putSingle
- Specified by:
putSinglein interfacejavax.ws.rs.core.MultivaluedMap<javax.ws.rs.core.MediaType,V>
-