public abstract static class MediaRanges.PredefinedMediaRange extends MediaRange implements LazyValueBytesRenderable, scala.Product, java.io.Serializable
MediaRange.One, MediaRange.One$
Constructor and Description |
---|
PredefinedMediaRange(java.lang.String value) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
mainType()
Returns the main-type this media-range matches.
|
scala.collection.immutable.Map<java.lang.String,scala.runtime.Nothing$> |
params() |
float |
qValue()
Returns the qValue of this media-range.
|
java.lang.String |
value() |
MediaRange |
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 |
withQValue(float qValue)
Returns a copy of this instance with a changed qValue.
|
apply, apply, custom, getParams, isApplication, isAudio, isImage, isMessage, isMultipart, isText, isVideo, isWildcard, matches, matches, splitOffQValue, withCharsetRange
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
render, toString, valueBytes
$init$, productArity, productElement, productElementName, productElementNames, productIterator, productPrefix
withQValue
public java.lang.String value()
value
in interface LazyValueBytesRenderable
value
in class MediaRange
public java.lang.String mainType()
MediaRange
mainType
in class MediaRange
public scala.collection.immutable.Map<java.lang.String,scala.runtime.Nothing$> params()
public float qValue()
MediaRange
qValue
in class MediaRange
public MediaRange 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 withQValue(float qValue)
MediaRange
withQValue
in interface WithQValue<MediaRange>
withQValue
in class MediaRange