play.api.libs.json

JsNumber

case class JsNumber (value: BigDecimal) extends JsValue with Product with Serializable

Represent a Json number value.

Linear Supertypes
Serializable, Serializable, Product, Equals, JsValue, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Hide All
  2. Show all
  1. JsNumber
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. JsValue
  7. AnyRef
  8. Any
Visibility
  1. Public
  2. All

Instance Constructors

  1. new JsNumber (value: BigDecimal)

Value Members

  1. def != (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  2. def != (arg0: Any): Boolean

    Attributes
    final
    Definition Classes
    Any
  3. def ## (): Int

    Attributes
    final
    Definition Classes
    AnyRef → Any
  4. def == (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  5. def == (arg0: Any): Boolean

    Attributes
    final
    Definition Classes
    Any
  6. def \ (fieldName: String): JsValue

    Return the property corresponding to the fieldName, supposing we have a JsObject.

    Return the property corresponding to the fieldName, supposing we have a JsObject.

    fieldName

    the name of the property to lookup

    returns

    the resulting JsValue. If the current node is not a JsObject or doesn't have the property, a JsUndefined will be returned.

    Definition Classes
    JsValue
  7. def \\ (fieldName: String): Seq[JsValue]

    Lookup for fieldName in the current object and all descendants.

    Lookup for fieldName in the current object and all descendants.

    returns

    the list of matching nodes

    Definition Classes
    JsValue
  8. def apply (idx: Int): JsValue

    Return the element at a given index, supposing we have a JsArray.

    Return the element at a given index, supposing we have a JsArray.

    idx

    the index to lookup

    Definition Classes
    JsValue
  9. def as [T] (implicit fjs: Reads[T]): T

    Tries to convert the node into a T, throwing an exception if it can't.

    Tries to convert the node into a T, throwing an exception if it can't. An implicit Reads[T] must be defined.

    Definition Classes
    JsValue
  10. def asInstanceOf [T0] : T0

    Attributes
    final
    Definition Classes
    Any
  11. def asOpt [T] (implicit fjs: Reads[T]): Option[T]

    Tries to convert the node into a T.

    Tries to convert the node into a T. An implicit Reads[T] must be defined.

    returns

    Some[T] if it succeeds, None if it fails.

    Definition Classes
    JsValue
  12. def canEqual (arg0: Any): Boolean

    Definition Classes
    JsNumber → Equals
  13. def clone (): AnyRef

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  14. def eq (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  15. def equals (arg0: Any): Boolean

    Definition Classes
    JsNumber → Equals → AnyRef → Any
  16. def finalize (): Unit

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  17. def getClass (): java.lang.Class[_]

    Attributes
    final
    Definition Classes
    AnyRef → Any
  18. def hashCode (): Int

    Definition Classes
    JsNumber → AnyRef → Any
  19. def isInstanceOf [T0] : Boolean

    Attributes
    final
    Definition Classes
    Any
  20. def ne (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  21. def notify (): Unit

    Attributes
    final
    Definition Classes
    AnyRef
  22. def notifyAll (): Unit

    Attributes
    final
    Definition Classes
    AnyRef
  23. def productArity : Int

    Definition Classes
    JsNumber → Product
  24. def productElement (arg0: Int): Any

    Definition Classes
    JsNumber → Product
  25. def productIterator : Iterator[Any]

    Definition Classes
    Product
  26. def productPrefix : String

    Definition Classes
    JsNumber → Product
  27. def synchronized [T0] (arg0: ⇒ T0): T0

    Attributes
    final
    Definition Classes
    AnyRef
  28. def toString (): String

    Definition Classes
    JsValue → AnyRef → Any
  29. val value : BigDecimal

  30. def wait (): Unit

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

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

    Attributes
    final
    Definition Classes
    AnyRef
    Annotations
    @throws()

Deprecated Value Members

  1. def productElements : Iterator[Any]

    Definition Classes
    Product
    Annotations
    @deprecated
    Deprecated

    use productIterator instead

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from JsValue

Inherited from AnyRef

Inherited from Any