final case class One(mediaType: MediaType, qValue: Float) extends MediaRange with ValueRenderable with Product with Serializable
- Source
- MediaRange.scala
- Alphabetic
- By Inheritance
- One
- Serializable
- Serializable
- Product
- Equals
- ValueRenderable
- ToStringRenderable
- MediaRange
- WithQValue
- Renderable
- MediaRange
- AnyRef
- Any
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- All
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( ... ) @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] )
- def formatted(fmtstr: String): String
-
final
def
getClass(): Class[_]
- 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
-
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( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @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
- def →[B](y: B): (One, B)