sealed abstract class JsonNumber extends Serializable
- Alphabetic
- By Inheritance
- JsonNumber
- Serializable
- AnyRef
- Any
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- Protected
Abstract Value Members
- abstract def toBigDecimal: Option[BigDecimal]
Return this number as a scala.math.BigDecimal.
- abstract def toBigInt: Option[BigInt]
Return this number as a scala.math.BigInt if it's a sufficiently small whole number.
- abstract def toDouble: Double
Convert this number to its best scala.Double approximation.
Convert this number to its best scala.Double approximation.
Anything over
Double.MaxValue
will be rounded toDouble.PositiveInfinity
and anything belowDouble.MinValue
is rounded toDouble.NegativeInfinity
. - abstract def toFloat: Float
Convert this number to its best scala.Float approximation.
Convert this number to its best scala.Float approximation.
Anything over
Float.MaxValue
will be rounded toFloat.PositiveInfinity
and anything belowFloat.MinValue
is rounded toFloat.NegativeInfinity
. - abstract def toLong: Option[Long]
Return this number as a scala.Long if it's a valid scala.Long.
Concrete Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- def +(other: String): String
- Implicit
- This member is added by an implicit conversion from JsonNumber toany2stringadd[JsonNumber] performed by method any2stringadd in scala.Predef.
- Definition Classes
- any2stringadd
- def ->[B](y: B): (JsonNumber, B)
- Implicit
- This member is added by an implicit conversion from JsonNumber toArrowAssoc[JsonNumber] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc
- Annotations
- @inline()
- 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: (JsonNumber) => Boolean, msg: => Any): JsonNumber
- Implicit
- This member is added by an implicit conversion from JsonNumber toEnsuring[JsonNumber] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
- def ensuring(cond: (JsonNumber) => Boolean): JsonNumber
- Implicit
- This member is added by an implicit conversion from JsonNumber toEnsuring[JsonNumber] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
- def ensuring(cond: Boolean, msg: => Any): JsonNumber
- Implicit
- This member is added by an implicit conversion from JsonNumber toEnsuring[JsonNumber] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
- def ensuring(cond: Boolean): JsonNumber
- Implicit
- This member is added by an implicit conversion from JsonNumber toEnsuring[JsonNumber] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def equals(that: Any): Boolean
Universal equality derived from our type-safe equality.
Universal equality derived from our type-safe equality.
- Definition Classes
- JsonNumber → AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- def formatted(fmtstr: String): String
- Implicit
- This member is added by an implicit conversion from JsonNumber toStringFormat[JsonNumber] performed by method StringFormat in scala.Predef.
- Definition Classes
- StringFormat
- Annotations
- @inline()
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def hashCode(): Int
Hashing that is consistent with our universal equality.
Hashing that is consistent with our universal equality.
- Definition Classes
- JsonNumber → AnyRef → Any
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- 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()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- final def toByte: Option[Byte]
Return this number as a scala.Byte if it's a valid scala.Byte.
- final def toInt: Option[Int]
Return this number as an scala.Int if it's a valid scala.Int.
- final def toShort: Option[Short]
Return this number as a scala.Short if it's a valid scala.Short.
- def toString(): String
- Definition Classes
- AnyRef → Any
- 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()
Deprecated Value Members
- def →[B](y: B): (JsonNumber, B)
- Implicit
- This member is added by an implicit conversion from JsonNumber toArrowAssoc[JsonNumber] 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.