public static final class MediaRange.One extends MediaRange implements ValueRenderable, scala.Product, java.io.Serializable
MediaRange.One, MediaRange.One$
Modifier and Type | Method and Description |
---|---|
boolean |
isApplication() |
boolean |
isAudio() |
boolean |
isImage() |
boolean |
isMessage() |
boolean |
isMultipart() |
boolean |
isText() |
boolean |
isVideo() |
java.lang.String |
mainType()
Returns the main-type this media-range matches.
|
boolean |
matches(MediaType mediaType) |
MediaType |
mediaType() |
scala.collection.immutable.Map<java.lang.String,java.lang.String> |
params() |
float |
qValue()
Returns the qValue of this media-range.
|
<R extends Rendering> |
render(R r) |
MediaRange.One |
withParams(scala.collection.immutable.Map<java.lang.String,java.lang.String> params)
Returns a copy of this instance with the params replaced by the given ones.
|
MediaRange.One |
withQValue(float qValue)
Returns a copy of this instance with a changed qValue.
|
apply, apply, custom, getParams, isWildcard, matches, splitOffQValue, value, withCharsetRange
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
value
toString
$init$, productArity, productElement, productElementName, productElementNames, productIterator, productPrefix
withQValue
public One(MediaType mediaType, float qValue)
public MediaType mediaType()
public float qValue()
MediaRange
qValue
in class MediaRange
public java.lang.String mainType()
MediaRange
mainType
in class MediaRange
public scala.collection.immutable.Map<java.lang.String,java.lang.String> params()
params
in class MediaRange
public boolean isApplication()
isApplication
in class MediaRange
public boolean isAudio()
isAudio
in class MediaRange
public boolean isImage()
isImage
in class MediaRange
public boolean isMessage()
isMessage
in class MediaRange
public boolean isMultipart()
isMultipart
in class MediaRange
public boolean isText()
isText
in class MediaRange
public boolean isVideo()
isVideo
in class MediaRange
public boolean matches(MediaType mediaType)
matches
in class MediaRange
public MediaRange.One withParams(scala.collection.immutable.Map<java.lang.String,java.lang.String> params)
MediaRange
qValue
member is (also) updated.withParams
in class MediaRange
params
- (undocumented)public MediaRange.One withQValue(float qValue)
MediaRange
withQValue
in interface WithQValue<MediaRange>
withQValue
in class MediaRange
public <R extends Rendering> Rendering render(R r)
render
in interface Renderable