Num

zio.blocks.jwt.JwtValue.Num
See theNum companion object
final case class Num(raw: String) extends JwtValue

JSON number value, preserved as the original JSON text (e.g. "1.5", "1e9", "-42"). Use toLong, toDouble, or bigDecimal to interpret numerically.

Attributes

Companion
object
Source
JwtValue.scala
Graph
Supertypes
trait JwtValue
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def bigDecimal: BigDecimal

Parses the raw text as a BigDecimal.

Parses the raw text as a BigDecimal.

Attributes

Source
JwtValue.scala
def toDouble: Double

Parses the raw text as a Double (may be Infinity if out of range).

Parses the raw text as a Double (may be Infinity if out of range).

Attributes

Source
JwtValue.scala

Inherited methods

def productElementNames: Iterator[String]

An iterator over the names of all the elements of this product.

An iterator over the names of all the elements of this product.

Attributes

Inherited from:
Product
Source
Product.scala
def productIterator: Iterator[Any]

An iterator over all the elements of this product.

An iterator over all the elements of this product.

Attributes

Returns

in the default implementation, an Iterator[Any]

Inherited from:
Product
Source
Product.scala