sealed abstract class JsonNumber extends Serializable
- Alphabetic
- By Inheritance
- JsonNumber
- Serializable
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
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
-
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()
-
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] )
-
final
def
getClass(): Class[_]
- 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( ... )
-
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()