final case class One(mediaType: MediaType, qValue: Float) extends MediaRange with ValueRenderable with Product with Serializable
- Alphabetic
- By Inheritance
- One
- Serializable
- Product
- Equals
- ValueRenderable
- ToStringRenderable
- MediaRange
- WithQValue
- Renderable
- MediaRange
- AnyRef
- Any
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- def +(other: String): String
- def ->[B](y: B): (One, B)
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def ensuring(cond: (One) => Boolean, msg: => Any): One
- def ensuring(cond: (One) => Boolean): One
- def ensuring(cond: Boolean, msg: => Any): One
- def ensuring(cond: Boolean): One
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def getParams(): Map[String, String]
Java API
Java API
- Definition Classes
- MediaRange → MediaRange
- def isApplication: Boolean
- Definition Classes
- One → MediaRange
- def isAudio: Boolean
- Definition Classes
- One → MediaRange
- def isImage: Boolean
- Definition Classes
- One → MediaRange
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def isMessage: Boolean
- Definition Classes
- One → MediaRange
- def isMultipart: Boolean
- Definition Classes
- One → MediaRange
- def isText: Boolean
- Definition Classes
- One → MediaRange
- def isVideo: Boolean
- Definition Classes
- One → MediaRange
- def isWildcard: Boolean
- Definition Classes
- MediaRange
- def mainType(): String
Returns the main-type this media-range matches.
Returns the main-type this media-range matches.
- Definition Classes
- One → MediaRange → MediaRange
- def matches(mediaType: MediaType): Boolean
- Definition Classes
- One → MediaRange
- def matches(mediaType: javadsl.model.MediaType): Boolean
Java API
Java API
- Definition Classes
- MediaRange → MediaRange
- val mediaType: MediaType
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def params: Map[String, String]
- Definition Classes
- One → MediaRange
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- val qValue: Float
Returns the qValue of this media-range.
Returns the qValue of this media-range.
- Definition Classes
- One → MediaRange → MediaRange
- def render[R <: Rendering](r: R): r.type
- Definition Classes
- One → Renderable
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- ToStringRenderable → AnyRef → Any
- def value: String
- Definition Classes
- ValueRenderable
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- def withCharsetRange(charsetRange: HttpCharsetRange): ContentTypeRange
Constructs a
ContentTypeRange
from this instance and the given charset.Constructs a
ContentTypeRange
from this instance and the given charset.- Definition Classes
- MediaRange
- def withParams(params: Map[String, String]): One
Returns a copy of this instance with the params replaced by the given ones.
Returns a copy of this instance with the params replaced by the given ones. If the given map contains a "q" value the
qValue
member is (also) updated.- Definition Classes
- One → MediaRange
- def withQValue(qValue: Float): One
Returns a copy of this instance with a changed qValue.
Returns a copy of this instance with a changed qValue.
- Definition Classes
- One → WithQValue → MediaRange
- def withQValue(qValue: Double): MediaRange
truncates Double qValue to float and returns a new instance with this qValue set
truncates Double qValue to float and returns a new instance with this qValue set
- Definition Classes
- WithQValue
Deprecated Value Members
- def formatted(fmtstr: String): String
- Implicit
- This member is added by an implicit conversion from One toStringFormat[One] performed by method StringFormat in scala.Predef.
- Definition Classes
- StringFormat
- Annotations
- @deprecated @inline()
- Deprecated
(Since version 2.12.16) Use
formatString.format(value)
instead ofvalue.formatted(formatString)
, or use thef""
string interpolator. In Java 15 and later,formatted
resolves to the new method in String which has reversed parameters.
- def →[B](y: B): (One, B)
- Implicit
- This member is added by an implicit conversion from One toArrowAssoc[One] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc
- Annotations
- @deprecated
- Deprecated
(Since version 2.13.0) Use
->
instead. If you still wish to display it as one character, consider using a font with programming ligatures such as Fira Code.