Class/Object

io.circe

JsonNumber

Related Docs: object JsonNumber | package circe

Permalink

sealed abstract class JsonNumber extends Serializable

A JSON number with optimization by cases.

Linear Supertypes
Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. JsonNumber
  2. Serializable
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def toBigDecimal: Option[BigDecimal]

    Permalink

    Return this number as a scala.math.BigDecimal.

  2. abstract def toBigInt: Option[BigInt]

    Permalink

    Return this number as a scala.math.BigInt if it's a sufficiently small whole number.

  3. abstract def toDouble: Double

    Permalink

    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 to Double.PositiveInfinity and anything below Double.MinValue is rounded to Double.NegativeInfinity.

  4. abstract def toFloat: Float

    Permalink

    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 to Float.PositiveInfinity and anything below Float.MinValue is rounded to Float.NegativeInfinity.

  5. abstract def toLong: Option[Long]

    Permalink

    Return this number as a scala.Long if it's a valid scala.Long.

Concrete Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  7. final def equals(that: Any): Boolean

    Permalink

    Universal equality derived from our type-safe equality.

    Universal equality derived from our type-safe equality.

    Definition Classes
    JsonNumber → AnyRef → Any
  8. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  9. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  10. final def hashCode(): Int

    Permalink

    Hashing that is consistent with our universal equality.

    Hashing that is consistent with our universal equality.

    Definition Classes
    JsonNumber → AnyRef → Any
  11. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  12. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  13. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  14. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  15. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  16. final def toByte: Option[Byte]

    Permalink

    Return this number as a scala.Byte if it's a valid scala.Byte.

  17. final def toInt: Option[Int]

    Permalink

    Return this number as an scala.Int if it's a valid scala.Int.

  18. final def toShort: Option[Short]

    Permalink

    Return this number as a scala.Short if it's a valid scala.Short.

  19. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  20. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  21. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  22. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped