public interface MediaTypeMap<V>
| Modifier and Type | Method and Description |
|---|---|
boolean |
contains(MediaType mediaType)
Returns true if the map declares the specified media type.
|
boolean |
contains(MediaType mediaType,
V value)
Returns true if the map declares the specified media type with a specified value.
|
boolean |
contains(TypeDef type)
Returns true if the map declares the specified type.
|
boolean |
contains(TypeDef type,
V value)
Returns true if the map declares the specified type with a specific value.
|
boolean |
contains(V value)
Returns true if the map declares the specified value for any media type or any type.
|
Set<V> |
get(MediaType mediaType)
Returns the set of values declared for a given media type.
|
Set<V> |
get(TypeDef type)
Returns the set of values declared for a given type.
|
Set<MediaType> |
getMediaTypes()
Returns the set of declared media types.
|
Set<TypeDef> |
getTypes()
Returns the set of declared types.
|
Set<V> |
getValues()
Returns the set of declared values.
|
boolean |
isSupported(MediaType mediaType)
Returns true if the map supports the specified media type.
|
boolean |
isSupported(MediaType mediaType,
V value)
Returns true if the map supports the specified media type with a specified value.
|
boolean |
isSupported(TypeDef type)
Returns true if the map supports the specified type.
|
boolean |
isSupported(TypeDef type,
V value)
Returns true if the map supports the specified type with a specific value.
|
boolean |
isSupported(V value)
Returns true if the map supports the specified value for any media type or any type.
|
Set<V> |
resolve(MediaType mediaType)
Returns the set of values supported for a given media type.
|
Set<V> |
resolve(TypeDef type)
Returns the set of values supported for a given type.
|
boolean contains(MediaType mediaType) throws IllegalArgumentException
mediaType - the media typeIllegalArgumentException - if the argument is nullboolean contains(TypeDef type) throws IllegalArgumentException
type - the typeIllegalArgumentException - if the argument is nullboolean contains(MediaType mediaType, V value) throws IllegalArgumentException
mediaType - the media typevalue - the valueIllegalArgumentException - if any argument is nullboolean contains(TypeDef type, V value) throws IllegalArgumentException
type - the typevalue - the valueIllegalArgumentException - if any argument is nullboolean contains(V value) throws IllegalArgumentException
value - the valueIllegalArgumentException - if any argument is nullSet<V> get(MediaType mediaType) throws IllegalArgumentException
mediaType - the media typeIllegalArgumentException - if any argument is nullSet<V> get(TypeDef type) throws IllegalArgumentException
type - the typeIllegalArgumentException - if any argument is nullboolean isSupported(MediaType mediaType) throws IllegalArgumentException
mediaType - the media typeIllegalArgumentException - if the argument is nullboolean isSupported(TypeDef type) throws IllegalArgumentException
type - the typeIllegalArgumentException - if the argument is nullboolean isSupported(MediaType mediaType, V value) throws IllegalArgumentException
mediaType - the media typevalue - the valueIllegalArgumentException - if any argument is nullboolean isSupported(TypeDef type, V value) throws IllegalArgumentException
type - the typevalue - the valueIllegalArgumentException - if any argument is nullboolean isSupported(V value) throws IllegalArgumentException
value - the valueIllegalArgumentException - if any argument is nullSet<V> resolve(MediaType mediaType) throws IllegalArgumentException
mediaType - the media typeIllegalArgumentException - if any argument is nullSet<V> resolve(TypeDef type) throws IllegalArgumentException
type - the typeIllegalArgumentException - if any argument is nullSet<MediaType> getMediaTypes()
Copyright © 2025 JBoss by Red Hat. All Rights Reserved.