Packages

object QValue

Source
QValue.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. QValue
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. class Macros extends AnyRef
    Annotations
    @deprecated
    Deprecated

    (Since version 0.21.16) This location of the implementation complicates Dotty support

Value Members

  1. lazy val One: QValue
  2. lazy val Zero: QValue
  3. implicit val catsInstancesForHttp4sQValue: Order[QValue] with Show[QValue] with Hash[QValue] with HttpCodec[QValue] with BoundedEnumerable[QValue]
  4. def fromDouble(d: Double): ParseResult[QValue]
  5. def fromString(s: String): ParseResult[QValue]
  6. def fromThousandths(thousandths: Int): ParseResult[QValue]
  7. def parse(s: String): ParseResult[QValue]
  8. def unapply(qValue: QValue): Option[Int]
  9. def unsafeFromString(s: String): QValue
  10. def (thousandths: Int): QValue

    Exists to support compile-time verified literals.

    Exists to support compile-time verified literals. Do not call directly.

Deprecated Value Members

  1. val http4sHttpCodecForQValue: HttpCodec[QValue]
    Annotations
    @deprecated
    Deprecated

    (Since version 0.21.20) Use catsInstancesForHttp4sQValue

  2. val http4sOrderForQValue: Order[QValue]
    Annotations
    @deprecated
    Deprecated

    (Since version 0.21.20) Use catsInstancesForHttp4sQValue

  3. val http4sShowForQValue: Show[QValue]
    Annotations
    @deprecated
    Deprecated

    (Since version 0.21.20) Use catsInstancesForHttp4sQValue

  4. macro def q(d: Double): QValue

    Supports a literal syntax for validated QValues.

    Supports a literal syntax for validated QValues.

    Example:

    q(0.5).success == QValue.fromDouble(0.5)
    q(1.1) // does not compile: out of range
    val d = 0.5
    q(d) // does not compile: not a literal
    Annotations
    @deprecated
    Deprecated

    (Since version 0.20) use qValue"" string interpolation instead