Class/Object

json

JNumber

Related Docs: object JNumber | package json

Permalink

sealed abstract class JNumber extends JValue with JNumberBase

JSON numeric value (stored as 64-bit double)

Self Type
JNumberImpl
Linear Supertypes
JNumberBase, JValue, JValueBase, JValueLike, Equals, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. JNumber
  2. JNumberBase
  3. JValue
  4. JValueBase
  5. JValueLike
  6. Equals
  7. AnyRef
  8. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def canEqual(that: Any): Boolean

    Permalink
    Definition Classes
    Equals
  2. abstract val value: Double

    Permalink

    underlying scala value for this JValue

    underlying scala value for this JValue

    Definition Classes
    JNumber → JNumberBase → JValueLike

Concrete Value Members

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

    Permalink
    Definition Classes
    AnyRef → Any
  2. def !==(to: JValue): Boolean

    Permalink
    Definition Classes
    JValueLike
  3. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  4. def ++(that: JValue): JValue

    Permalink

    concats another JObject or JArray onto this value.

    concats another JObject or JArray onto this value. Must be the same type!

    Definition Classes
    JValueLike
  5. def -(other: JNumber): JNumber

    Permalink
  6. def -[T](key: T)(implicit acc: JSONAccessor[T]): JValue

    Permalink
    Definition Classes
    JValueLike
  7. final def -(x: JValue): JValue

    Permalink

    equivalent to javascript delete object[field]

    equivalent to javascript delete object[field]

    Definition Classes
    JValueLike
  8. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  9. def ===(x: JValue): Boolean

    Permalink
    Definition Classes
    JValueLike
  10. def \(idx: Int): JValue

    Permalink
    Definition Classes
    JValueLike
  11. def \(key: String): JValue

    Permalink

    alternate operator form of json.JValue#apply(key:String):json\.JValue

    alternate operator form of json.JValue#apply(key:String):json\.JValue

    Definition Classes
    JValueLike
  12. def appendJSONStringBuilder(settings: JSONBuilderSettings = JSONBuilderSettings.pretty, out: SimpleStringBuilder, lvl: Int): SimpleStringBuilder

    Permalink
    Definition Classes
    JNumber → JValueLike
  13. def apply(key: JValue): JValue

    Permalink

    select a key from this JValue using a JValue.

    select a key from this JValue using a JValue. Equivalent to bracket selects in JS.

    Definition Classes
    JNumber → JValueLike
  14. def apply(key: String): JValue

    Permalink

    select a key from this JValue.

    select a key from this JValue. Equivalent to bracket selects in JS.

    Definition Classes
    JValueLike
  15. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  16. def bool: Boolean

    Permalink

    gets the boolean value using jBoolean

    gets the boolean value using jBoolean

    Definition Classes
    JValueLike
  17. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  18. def d: JDynamic

    Permalink
    Definition Classes
    JValueLike
  19. def dynamic: JDynamic

    Permalink
    Definition Classes
    JValueLike
  20. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  21. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  22. def fields: Map[String, JValue]

    Permalink

    gets the Map[String, JValue] value using jObject

    gets the Map[String, JValue] value using jObject

    Definition Classes
    JValueLike
  23. def finalize(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  26. def isBoolean: Boolean

    Permalink
    Definition Classes
    JValueLike
  27. final def isDefined: Boolean

    Permalink
    Definition Classes
    JValueLike
  28. def isDefinedAt(x: JValue): Boolean

    Permalink
    Definition Classes
    JValueLike
  29. def isInfinity: Boolean

    Permalink
  30. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  31. def isInt: Boolean

    Permalink
  32. def isNaN: Boolean

    Permalink
    Definition Classes
    JNumber → JValueLike
  33. final def isNull: Boolean

    Permalink
    Definition Classes
    JValueLike
  34. final def isNullOrUndefined: Boolean

    Permalink
    Definition Classes
    JValueLike
  35. def isObject: Boolean

    Permalink
    Definition Classes
    JValueLike
  36. final def isUndefined: Boolean

    Permalink
    Definition Classes
    JValueLike
  37. def isValid: Boolean

    Permalink
  38. def iterator: Iterator[JValue]

    Permalink
  39. def jArray: JArray

    Permalink

    quickly cast to and array or throw a GenericJSONException otherwise.

    quickly cast to and array or throw a GenericJSONException otherwise.

    Definition Classes
    JValueLike
  40. def jBoolean: JBoolean

    Permalink

    quickly cast to a boolean or throw a GenericJSONException otherwise.

    quickly cast to a boolean or throw a GenericJSONException otherwise.

    Definition Classes
    JValueLike
  41. def jNumber: JNumber

    Permalink

    quickly cast to a number or throw a GenericJSONException otherwise.

    quickly cast to a number or throw a GenericJSONException otherwise.

    Definition Classes
    JNumber → JValueLike
  42. def jObject: JObject

    Permalink

    quickly cast to and object or throw a GenericJSONException otherwise.

    quickly cast to and object or throw a GenericJSONException otherwise.

    Definition Classes
    JValueLike
  43. def jString: JString

    Permalink

    quickly cast to a string or throw a GenericJSONException otherwise.

    quickly cast to a string or throw a GenericJSONException otherwise.

    Definition Classes
    JValueLike
  44. def jValue: JNumberImpl

    Permalink
    Definition Classes
    JNumber → JValueLike
  45. def keys: Iterable[JValue]

    Permalink

    keys for this JValue.

    keys for this JValue. Either iterable array indexes from JArray or iterable keys from a JObject

    Definition Classes
    JValueLike
  46. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  49. def num: Double

    Permalink

    gets the number value using jNumber

    gets the number value using jNumber

    Definition Classes
    JValueLike
  50. def numToString: String

    Permalink
  51. def select(seqStr: String): JValue

    Permalink

    select from a value with a '.' delimited string

    select from a value with a '.' delimited string

    Definition Classes
    JValueLike
  52. def select(seq: Seq[String], safe: Boolean): JValue

    Permalink

    select from a value with a sequence of keys

    select from a value with a sequence of keys

    Definition Classes
    JValueLike
  53. def select(seqStr: String, safe: Boolean): JValue

    Permalink

    select from a value with a '.' delimited string

    select from a value with a '.' delimited string

    seqStr

    period delimited string

    safe

    if true, you will get back JUndefined instead of an exception for undefined access

    Definition Classes
    JValueLike
  54. def str: String

    Permalink

    gets the string value using jString

    gets the string value using jString

    Definition Classes
    JValueLike
  55. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  56. def to[T](implicit arg0: JSONAccessor[T]): T

    Permalink

    converts this JValue into the desired type using the implicit JSONAccessor

    converts this JValue into the desired type using the implicit JSONAccessor

    Definition Classes
    JValueLike
  57. def toDenseString: String

    Permalink

    toString method that uses the dense builder settings

    toString method that uses the dense builder settings

    Definition Classes
    JValueLike
  58. def toDouble: Double

    Permalink
  59. def toFloat: Float

    Permalink
  60. def toInt: Int

    Permalink
  61. def toJArray: JArray

    Permalink

    convert this JValue into an array if possible

    convert this JValue into an array if possible

    Definition Classes
    JValueLike
  62. def toJBoolean: JBoolean

    Permalink

    JS-like boolean representation of this value.

    JS-like boolean representation of this value.

    Definition Classes
    JNumber → JValueLike
  63. def toJNumber: JNumber

    Permalink

    JS-like numeric representation of this value.

    JS-like numeric representation of this value.

    Definition Classes
    JNumber → JValueLike
  64. def toJObject: JObject

    Permalink

    convert this JValue into an object if possible

    convert this JValue into an object if possible

    Definition Classes
    JValueLike
  65. def toJSON(): Any

    Permalink
    Definition Classes
    JValueBase
    Annotations
    @JSExport()
  66. def toJSONString: String

    Permalink
    Definition Classes
    JValueLike
  67. def toJSONStringBuilder(settings: JSONBuilderSettings = JSONBuilderSettings.pretty, lvl: Int = 0): SimpleStringBuilder

    Permalink
    Definition Classes
    JValueLike
  68. def toJString: JString

    Permalink

    JS-like string representation of this value.

    JS-like string representation of this value.

    Definition Classes
    JNumber → JValueLike
  69. def toJValue: JValue

    Permalink
    Definition Classes
    JValueLike
  70. def toLong: Long

    Permalink
  71. def toNativeJS: Any

    Permalink
    Definition Classes
    JNumberBase
  72. def toObject[T](implicit acc: JSONAccessor[T]): T

    Permalink

    alternate and recommended form of to

    alternate and recommended form of to

    Definition Classes
    JValueLike
  73. final def toOption: Option[JValue]

    Permalink

    return Some(x) if value is not undefined or null

    return Some(x) if value is not undefined or null

    Definition Classes
    JValueLike
  74. def toPrettyString: String

    Permalink

    toString method that uses the pretty builder settings

    toString method that uses the pretty builder settings

    Definition Classes
    JValueLike
  75. def toString(): String

    Permalink
    Definition Classes
    JValue → AnyRef → Any
  76. def toString(settings: JSONBuilderSettings, lvl: Int = 0): String

    Permalink

    toString method that uses a specific json.JSONBuilderSettings and specific indent level to generate JSON

    toString method that uses a specific json.JSONBuilderSettings and specific indent level to generate JSON

    Definition Classes
    JValueLike
  77. def unary_!(): JBoolean

    Permalink

    Boolean not according to JS boolean logic

    Boolean not according to JS boolean logic

    Definition Classes
    JValueLike
  78. def values: Iterable[JValue]

    Permalink

    gets the iterable JValues using jArray or the object values if JObject

    gets the iterable JValues using jArray or the object values if JObject

    Definition Classes
    JValueLike
  79. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  82. def ||[T >: JNumber.this.type <: JValue](other: T): T

    Permalink

    Boolean OR using toJBoolean

    Boolean OR using toJBoolean

    Definition Classes
    JValue
  83. def ~~(to: JValue): Boolean

    Permalink

    This operator implements the JavaScript-like equality logic according to the JS Spec

    This operator implements the JavaScript-like equality logic according to the JS Spec

    Definition Classes
    JValueLike

Inherited from JNumberBase

Inherited from JValue

Inherited from JValueBase

Inherited from JValueLike

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped