Packages

  • package root

    JSON (JavaScript Object Notation) is a lightweight data-interchange format.

    JSON (JavaScript Object Notation) is a lightweight data-interchange format. It is easy for humans to read and write. It is easy for machines to parse and generate. JSON is a text format that is completely language independent but uses conventions that are familiar to programmers of the C-family of languages,

    JSON has only types of string, number, boolean, object, array, and null. This library includes additional types such as date, int, long, double, counter, binary, UUID, ObjectId (as in BSON), etc.

    It is very easy to parse a JSON object:

    val doc =
      json"""
      {
        "store": {
          "book": [
            {
              "category": "reference",
              "author": "Nigel Rees",
              "title": "Sayings of the Century",
              "price": 8.95
            },
            {
              "category": "fiction",
              "author": "Evelyn Waugh",
              "title": "Sword of Honour",
              "price": 12.99
            },
            {
              "category": "fiction",
              "author": "Herman Melville",
              "title": "Moby Dick",
              "isbn": "0-553-21311-3",
              "price": 8.99
            },
            {
              "category": "fiction",
              "author": "J. R. R. Tolkien",
              "title": "The Lord of the Rings",
              "isbn": "0-395-19395-8",
              "price": 22.99
            }
          ],
          "bicycle": {
            "color": "red",
            "price": 19.95
          }
        }
      }
      """

    The interpolator json parse a string to JsObject. To parse an array, use the interpolator jsan to JsArray. It is also okay to embed variable references directly in processed string literals.

    val x = 1
    json"""
      {
        "x": $x
      }
    """

    If the string is not a JSON object but any other valid JSON expression, one may use parseJson method to convert the string to a JsValue.

    "1".parseJson

    The json interpolator can only be applied to string literals. If you want to parse a string variable, the parseJson method can always be employed. If you know the string contains a JSON object, you may also use the method parseJsObject.

    val s = """{"x":1}"""
    s.parseJsObject

    To serialize a JSON value (of type JsValue) in compact mode, you can just use toString. To pretty print, use the method prettyPrint.

    doc.toString
    doc.prettyPrint

    With a JsObject or JsArray, you can refer to the individual elements with a variation of array syntax, like this:

    doc("store")("bicycle")("color")
    doc("store")("book")(0)("author")

    Note that we follow Scala's array access convention by () rather than [] in JavaScript.

    Besides, you can use the dot notation to access its fields/elements just like in JavaScript:

    doc.store.bicycle.color
    doc.store.book(0).author

    It is worth noting that we didn't define the type/schema of the document while Scala is a strong type language. In other words, we have both the type safe features of strong type language and the flexibility of dynamic language in this JSON library.

    If you try to access a non-exist field, JsUndefined is returned.

    scala> doc.book
    res11: unicorn.json.JsValue = undefined

    Although there are already several nice JSON libraries for Scala, the JSON objects are immutable by design, which is a natural choice for a functional language. For database, however, data mutation is necessary. Therefore, JsObject and JsArray are mutable data structures. You can set/add a field just like in JavaScript:

    json.store.bicycle.color = "green"

    To delete a field from JsObject, use remove method:

    doc.store.book(0) remove "price"

    It is same as setting it JsUndefined:

    doc.store.book(0).price = `JsUndefined`

    To delete an element from JsArray, the remove method will effectively remove it from the array. However, setting an element to undefined doesn't reduce the array size.

    // delete the first element and array size is smaller
    doc.store.book.remove(0)
    // set the first element to undefined but array size keeps same
    doc.store.book(0) = JsUndefined

    It is also possible to append an element or another array to JsArray:

    val a = JsArray(1, 2, 3, 4)
    a += 5
    
    a ++= JsArray(5, 6)

    Common iterative operations such as foreach, map, reduce can be applied to JsArray too.

    doc.store.book.asInstanceOf[JsArray].foreach { book =>
     println(book.price)
    }

    Because Scala is a static language, it is impossible to know doc.store.book is an array at compile time. So it is typed as generic JsValue, which is the parent type of specific JSON data types. Therefore, we use asInstanceOf[JsArray] to convert it to JsArray in order to use foreach.

    Definition Classes
    root
  • package smile
    Definition Classes
    root
  • package json

    Definition Classes
    smile
  • CompactPrinter
  • JsArray
  • JsBinary
  • JsBoolean
  • JsCounter
  • JsDate
  • JsDateTime
  • JsDecimal
  • JsDouble
  • JsInt
  • JsLong
  • JsNull
  • JsObject
  • JsObjectId
  • JsString
  • JsTime
  • JsTimestamp
  • JsUUID
  • JsUndefined
  • JsValue
  • JsValueOrdering
  • JsonHelper
  • JsonParser
  • JsonPrinter
  • JsonSerializer
  • ObjectId
  • ParserInput
  • PrettyPrinter

case class JsInt(value: Int) extends JsValue with Ordered[JsInt] with Product with Serializable

Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. JsInt
  2. Serializable
  3. Product
  4. Equals
  5. Ordered
  6. Comparable
  7. JsValue
  8. Dynamic
  9. AnyRef
  10. Any
Implicitly
  1. by json2Int
  2. by orderingToOrdered
  3. by any2stringadd
  4. by StringFormat
  5. by Ensuring
  6. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new JsInt(value: Int)

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. def %(x: Double): Double
    Implicit
    This member is added by an implicit conversion from JsInt toInt performed by method json2Int in smile.json.
    Definition Classes
    Int
  4. def %(x: Float): Float
    Implicit
    This member is added by an implicit conversion from JsInt toInt performed by method json2Int in smile.json.
    Definition Classes
    Int
  5. def %(x: Long): Long
    Implicit
    This member is added by an implicit conversion from JsInt toInt performed by method json2Int in smile.json.
    Definition Classes
    Int
  6. def %(x: Int): Int
    Implicit
    This member is added by an implicit conversion from JsInt toInt performed by method json2Int in smile.json.
    Definition Classes
    Int
  7. def %(x: Char): Int
    Implicit
    This member is added by an implicit conversion from JsInt toInt performed by method json2Int in smile.json.
    Definition Classes
    Int
  8. def %(x: Short): Int
    Implicit
    This member is added by an implicit conversion from JsInt toInt performed by method json2Int in smile.json.
    Definition Classes
    Int
  9. def %(x: Byte): Int
    Implicit
    This member is added by an implicit conversion from JsInt toInt performed by method json2Int in smile.json.
    Definition Classes
    Int
  10. def &(x: Long): Long
    Implicit
    This member is added by an implicit conversion from JsInt toInt performed by method json2Int in smile.json.
    Definition Classes
    Int
  11. def &(x: Int): Int
    Implicit
    This member is added by an implicit conversion from JsInt toInt performed by method json2Int in smile.json.
    Definition Classes
    Int
  12. def &(x: Char): Int
    Implicit
    This member is added by an implicit conversion from JsInt toInt performed by method json2Int in smile.json.
    Definition Classes
    Int
  13. def &(x: Short): Int
    Implicit
    This member is added by an implicit conversion from JsInt toInt performed by method json2Int in smile.json.
    Definition Classes
    Int
  14. def &(x: Byte): Int
    Implicit
    This member is added by an implicit conversion from JsInt toInt performed by method json2Int in smile.json.
    Definition Classes
    Int
  15. def *(x: Double): Double
    Implicit
    This member is added by an implicit conversion from JsInt toInt performed by method json2Int in smile.json.
    Definition Classes
    Int
  16. def *(x: Float): Float
    Implicit
    This member is added by an implicit conversion from JsInt toInt performed by method json2Int in smile.json.
    Definition Classes
    Int
  17. def *(x: Long): Long
    Implicit
    This member is added by an implicit conversion from JsInt toInt performed by method json2Int in smile.json.
    Definition Classes
    Int
  18. def *(x: Int): Int
    Implicit
    This member is added by an implicit conversion from JsInt toInt performed by method json2Int in smile.json.
    Definition Classes
    Int
  19. def *(x: Char): Int
    Implicit
    This member is added by an implicit conversion from JsInt toInt performed by method json2Int in smile.json.
    Definition Classes
    Int
  20. def *(x: Short): Int
    Implicit
    This member is added by an implicit conversion from JsInt toInt performed by method json2Int in smile.json.
    Definition Classes
    Int
  21. def *(x: Byte): Int
    Implicit
    This member is added by an implicit conversion from JsInt toInt performed by method json2Int in smile.json.
    Definition Classes
    Int
  22. def +(x: Double): Double
    Implicit
    This member is added by an implicit conversion from JsInt toInt performed by method json2Int in smile.json.
    Definition Classes
    Int
  23. def +(x: Float): Float
    Implicit
    This member is added by an implicit conversion from JsInt toInt performed by method json2Int in smile.json.
    Definition Classes
    Int
  24. def +(x: Long): Long
    Implicit
    This member is added by an implicit conversion from JsInt toInt performed by method json2Int in smile.json.
    Definition Classes
    Int
  25. def +(x: Int): Int
    Implicit
    This member is added by an implicit conversion from JsInt toInt performed by method json2Int in smile.json.
    Definition Classes
    Int
  26. def +(x: Char): Int
    Implicit
    This member is added by an implicit conversion from JsInt toInt performed by method json2Int in smile.json.
    Definition Classes
    Int
  27. def +(x: Short): Int
    Implicit
    This member is added by an implicit conversion from JsInt toInt performed by method json2Int in smile.json.
    Definition Classes
    Int
  28. def +(x: Byte): Int
    Implicit
    This member is added by an implicit conversion from JsInt toInt performed by method json2Int in smile.json.
    Definition Classes
    Int
  29. def -(x: Double): Double
    Implicit
    This member is added by an implicit conversion from JsInt toInt performed by method json2Int in smile.json.
    Definition Classes
    Int
  30. def -(x: Float): Float
    Implicit
    This member is added by an implicit conversion from JsInt toInt performed by method json2Int in smile.json.
    Definition Classes
    Int
  31. def -(x: Long): Long
    Implicit
    This member is added by an implicit conversion from JsInt toInt performed by method json2Int in smile.json.
    Definition Classes
    Int
  32. def -(x: Int): Int
    Implicit
    This member is added by an implicit conversion from JsInt toInt performed by method json2Int in smile.json.
    Definition Classes
    Int
  33. def -(x: Char): Int
    Implicit
    This member is added by an implicit conversion from JsInt toInt performed by method json2Int in smile.json.
    Definition Classes
    Int
  34. def -(x: Short): Int
    Implicit
    This member is added by an implicit conversion from JsInt toInt performed by method json2Int in smile.json.
    Definition Classes
    Int
  35. def -(x: Byte): Int
    Implicit
    This member is added by an implicit conversion from JsInt toInt performed by method json2Int in smile.json.
    Definition Classes
    Int
  36. def ->[B](y: B): (JsInt, B)
    Implicit
    This member is added by an implicit conversion from JsInt toArrowAssoc[JsInt] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  37. def /(x: Double): Double
    Implicit
    This member is added by an implicit conversion from JsInt toInt performed by method json2Int in smile.json.
    Definition Classes
    Int
  38. def /(x: Float): Float
    Implicit
    This member is added by an implicit conversion from JsInt toInt performed by method json2Int in smile.json.
    Definition Classes
    Int
  39. def /(x: Long): Long
    Implicit
    This member is added by an implicit conversion from JsInt toInt performed by method json2Int in smile.json.
    Definition Classes
    Int
  40. def /(x: Int): Int
    Implicit
    This member is added by an implicit conversion from JsInt toInt performed by method json2Int in smile.json.
    Definition Classes
    Int
  41. def /(x: Char): Int
    Implicit
    This member is added by an implicit conversion from JsInt toInt performed by method json2Int in smile.json.
    Definition Classes
    Int
  42. def /(x: Short): Int
    Implicit
    This member is added by an implicit conversion from JsInt toInt performed by method json2Int in smile.json.
    Definition Classes
    Int
  43. def /(x: Byte): Int
    Implicit
    This member is added by an implicit conversion from JsInt toInt performed by method json2Int in smile.json.
    Definition Classes
    Int
  44. def <(that: JsInt): Boolean
    Definition Classes
    Ordered
  45. def <<(x: Int): Int
    Implicit
    This member is added by an implicit conversion from JsInt toInt performed by method json2Int in smile.json.
    Definition Classes
    Int
  46. def <=(that: JsInt): Boolean
    Definition Classes
    Ordered
  47. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  48. def >(that: JsInt): Boolean
    Definition Classes
    Ordered
  49. def >=(that: JsInt): Boolean
    Definition Classes
    Ordered
  50. def >>(x: Int): Int
    Implicit
    This member is added by an implicit conversion from JsInt toInt performed by method json2Int in smile.json.
    Definition Classes
    Int
  51. def >>>(x: Int): Int
    Implicit
    This member is added by an implicit conversion from JsInt toInt performed by method json2Int in smile.json.
    Definition Classes
    Int
  52. def ^(x: Long): Long
    Implicit
    This member is added by an implicit conversion from JsInt toInt performed by method json2Int in smile.json.
    Definition Classes
    Int
  53. def ^(x: Int): Int
    Implicit
    This member is added by an implicit conversion from JsInt toInt performed by method json2Int in smile.json.
    Definition Classes
    Int
  54. def ^(x: Char): Int
    Implicit
    This member is added by an implicit conversion from JsInt toInt performed by method json2Int in smile.json.
    Definition Classes
    Int
  55. def ^(x: Short): Int
    Implicit
    This member is added by an implicit conversion from JsInt toInt performed by method json2Int in smile.json.
    Definition Classes
    Int
  56. def ^(x: Byte): Int
    Implicit
    This member is added by an implicit conversion from JsInt toInt performed by method json2Int in smile.json.
    Definition Classes
    Int
  57. def apply(range: Range): JsArray
    Definition Classes
    JsValue
  58. def apply(start: Int, end: Int, step: Int): JsArray
    Definition Classes
    JsValue
  59. def apply(start: Int, end: Int): JsArray
    Definition Classes
    JsValue
  60. def apply(index: Int): JsValue
    Definition Classes
    JsValue
  61. def apply(key: String): JsValue
    Definition Classes
    JsValue
  62. def applyDynamic(key: String)(index: Int): JsValue
    Definition Classes
    JsValue
  63. def asBoolean: Boolean
    Definition Classes
    JsIntJsValue
  64. def asDate: LocalDate
    Definition Classes
    JsValue
  65. def asDateTime: LocalDateTime
    Definition Classes
    JsValue
  66. def asDecimal: BigDecimal
    Definition Classes
    JsValue
  67. def asDouble: Double
    Definition Classes
    JsIntJsValue
  68. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  69. def asInt: Int
    Definition Classes
    JsIntJsValue
  70. def asLong: Long
    Definition Classes
    JsIntJsValue
  71. def asTime: LocalTime
    Definition Classes
    JsValue
  72. def asTimestamp: Timestamp
    Definition Classes
    JsValue
  73. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  74. def compactPrint: String
    Definition Classes
    JsValue
  75. def compare(that: JsInt): Int
    Definition Classes
    JsInt → Ordered
  76. def compareTo(that: JsInt): Int
    Definition Classes
    Ordered → Comparable
  77. def ensuring(cond: (JsInt) => Boolean, msg: => Any): JsInt
    Implicit
    This member is added by an implicit conversion from JsInt toEnsuring[JsInt] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  78. def ensuring(cond: (JsInt) => Boolean): JsInt
    Implicit
    This member is added by an implicit conversion from JsInt toEnsuring[JsInt] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  79. def ensuring(cond: Boolean, msg: => Any): JsInt
    Implicit
    This member is added by an implicit conversion from JsInt toEnsuring[JsInt] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  80. def ensuring(cond: Boolean): JsInt
    Implicit
    This member is added by an implicit conversion from JsInt toEnsuring[JsInt] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  81. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  82. def equals(o: Any): Boolean
    Definition Classes
    JsInt → Equals → AnyRef → Any
  83. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  84. def get(key: String): Option[JsValue]
    Definition Classes
    JsValue
  85. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  86. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  87. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  88. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  89. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  90. def prettyPrint: String
    Definition Classes
    JsValue
  91. def productElementNames: Iterator[String]
    Definition Classes
    Product
  92. def remove(index: Int): JsValue
    Definition Classes
    JsValue
  93. def remove(key: String): Option[JsValue]
    Definition Classes
    JsValue
  94. def selectDynamic(key: String): JsValue
    Definition Classes
    JsValue
  95. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  96. def toByte: Byte
    Implicit
    This member is added by an implicit conversion from JsInt toInt performed by method json2Int in smile.json.
    Definition Classes
    Int
  97. def toChar: Char
    Implicit
    This member is added by an implicit conversion from JsInt toInt performed by method json2Int in smile.json.
    Definition Classes
    Int
  98. def toDouble: Double
    Implicit
    This member is added by an implicit conversion from JsInt toInt performed by method json2Int in smile.json.
    Definition Classes
    Int
  99. def toFloat: Float
    Implicit
    This member is added by an implicit conversion from JsInt toInt performed by method json2Int in smile.json.
    Definition Classes
    Int
  100. def toInt: Int
    Implicit
    This member is added by an implicit conversion from JsInt toInt performed by method json2Int in smile.json.
    Definition Classes
    Int
  101. def toLong: Long
    Implicit
    This member is added by an implicit conversion from JsInt toInt performed by method json2Int in smile.json.
    Definition Classes
    Int
  102. def toShort: Short
    Implicit
    This member is added by an implicit conversion from JsInt toInt performed by method json2Int in smile.json.
    Definition Classes
    Int
  103. def toString(): String
    Definition Classes
    JsIntJsValue → AnyRef → Any
  104. def unary_+: Int
    Implicit
    This member is added by an implicit conversion from JsInt toInt performed by method json2Int in smile.json.
    Definition Classes
    Int
  105. def unary_-: Int
    Implicit
    This member is added by an implicit conversion from JsInt toInt performed by method json2Int in smile.json.
    Definition Classes
    Int
  106. def unary_~: Int
    Implicit
    This member is added by an implicit conversion from JsInt toInt performed by method json2Int in smile.json.
    Definition Classes
    Int
  107. def update(index: Int, value: JsValue): JsValue
    Definition Classes
    JsValue
  108. def update(key: String, value: JsValue): JsValue
    Definition Classes
    JsValue
  109. def updateDynamic(index: Int)(value: JsValue): JsValue
    Definition Classes
    JsValue
  110. def updateDynamic(key: String)(value: JsValue): JsValue
    Definition Classes
    JsValue
  111. val value: Int
  112. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  113. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  114. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  115. def |(x: Long): Long
    Implicit
    This member is added by an implicit conversion from JsInt toInt performed by method json2Int in smile.json.
    Definition Classes
    Int
  116. def |(x: Int): Int
    Implicit
    This member is added by an implicit conversion from JsInt toInt performed by method json2Int in smile.json.
    Definition Classes
    Int
  117. def |(x: Char): Int
    Implicit
    This member is added by an implicit conversion from JsInt toInt performed by method json2Int in smile.json.
    Definition Classes
    Int
  118. def |(x: Short): Int
    Implicit
    This member is added by an implicit conversion from JsInt toInt performed by method json2Int in smile.json.
    Definition Classes
    Int
  119. def |(x: Byte): Int
    Implicit
    This member is added by an implicit conversion from JsInt toInt performed by method json2Int in smile.json.
    Definition Classes
    Int

Shadowed Implicit Value Members

  1. def !=(x: Double): Boolean
    Implicit
    This member is added by an implicit conversion from JsInt toInt performed by method json2Int in smile.json.
    Shadowing
    This implicitly inherited member is shadowed by one or more members in this class.
    To access this member you can use a type ascription:
    (jsInt: Int).!=(x)
    Definition Classes
    Int
  2. def !=(x: Float): Boolean
    Implicit
    This member is added by an implicit conversion from JsInt toInt performed by method json2Int in smile.json.
    Shadowing
    This implicitly inherited member is shadowed by one or more members in this class.
    To access this member you can use a type ascription:
    (jsInt: Int).!=(x)
    Definition Classes
    Int
  3. def !=(x: Long): Boolean
    Implicit
    This member is added by an implicit conversion from JsInt toInt performed by method json2Int in smile.json.
    Shadowing
    This implicitly inherited member is shadowed by one or more members in this class.
    To access this member you can use a type ascription:
    (jsInt: Int).!=(x)
    Definition Classes
    Int
  4. def !=(x: Int): Boolean
    Implicit
    This member is added by an implicit conversion from JsInt toInt performed by method json2Int in smile.json.
    Shadowing
    This implicitly inherited member is shadowed by one or more members in this class.
    To access this member you can use a type ascription:
    (jsInt: Int).!=(x)
    Definition Classes
    Int
  5. def !=(x: Char): Boolean
    Implicit
    This member is added by an implicit conversion from JsInt toInt performed by method json2Int in smile.json.
    Shadowing
    This implicitly inherited member is shadowed by one or more members in this class.
    To access this member you can use a type ascription:
    (jsInt: Int).!=(x)
    Definition Classes
    Int
  6. def !=(x: Short): Boolean
    Implicit
    This member is added by an implicit conversion from JsInt toInt performed by method json2Int in smile.json.
    Shadowing
    This implicitly inherited member is shadowed by one or more members in this class.
    To access this member you can use a type ascription:
    (jsInt: Int).!=(x)
    Definition Classes
    Int
  7. def !=(x: Byte): Boolean
    Implicit
    This member is added by an implicit conversion from JsInt toInt performed by method json2Int in smile.json.
    Shadowing
    This implicitly inherited member is shadowed by one or more members in this class.
    To access this member you can use a type ascription:
    (jsInt: Int).!=(x)
    Definition Classes
    Int
  8. def +(other: String): String
    Implicit
    This member is added by an implicit conversion from JsInt toany2stringadd[JsInt] performed by method any2stringadd in scala.Predef.
    Shadowing
    This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
    To access this member you can use a type ascription:
    (jsInt: any2stringadd[JsInt]).+(other)
    Definition Classes
    any2stringadd
  9. def <(x: Double): Boolean
    Implicit
    This member is added by an implicit conversion from JsInt toInt performed by method json2Int in smile.json.
    Shadowing
    This implicitly inherited member is shadowed by one or more members in this class.
    To access this member you can use a type ascription:
    (jsInt: Int).<(x)
    Definition Classes
    Int
  10. def <(x: Float): Boolean
    Implicit
    This member is added by an implicit conversion from JsInt toInt performed by method json2Int in smile.json.
    Shadowing
    This implicitly inherited member is shadowed by one or more members in this class.
    To access this member you can use a type ascription:
    (jsInt: Int).<(x)
    Definition Classes
    Int
  11. def <(x: Long): Boolean
    Implicit
    This member is added by an implicit conversion from JsInt toInt performed by method json2Int in smile.json.
    Shadowing
    This implicitly inherited member is shadowed by one or more members in this class.
    To access this member you can use a type ascription:
    (jsInt: Int).<(x)
    Definition Classes
    Int
  12. def <(x: Int): Boolean
    Implicit
    This member is added by an implicit conversion from JsInt toInt performed by method json2Int in smile.json.
    Shadowing
    This implicitly inherited member is shadowed by one or more members in this class.
    To access this member you can use a type ascription:
    (jsInt: Int).<(x)
    Definition Classes
    Int
  13. def <(x: Char): Boolean
    Implicit
    This member is added by an implicit conversion from JsInt toInt performed by method json2Int in smile.json.
    Shadowing
    This implicitly inherited member is shadowed by one or more members in this class.
    To access this member you can use a type ascription:
    (jsInt: Int).<(x)
    Definition Classes
    Int
  14. def <(x: Short): Boolean
    Implicit
    This member is added by an implicit conversion from JsInt toInt performed by method json2Int in smile.json.
    Shadowing
    This implicitly inherited member is shadowed by one or more members in this class.
    To access this member you can use a type ascription:
    (jsInt: Int).<(x)
    Definition Classes
    Int
  15. def <(x: Byte): Boolean
    Implicit
    This member is added by an implicit conversion from JsInt toInt performed by method json2Int in smile.json.
    Shadowing
    This implicitly inherited member is shadowed by one or more members in this class.
    To access this member you can use a type ascription:
    (jsInt: Int).<(x)
    Definition Classes
    Int
  16. def <(that: JsInt): Boolean
    Implicit
    This member is added by an implicit conversion from JsInt toOrdered[JsInt] performed by method orderingToOrdered in scala.math.Ordered.
    Shadowing
    This implicitly inherited member is shadowed by one or more members in this class.
    To access this member you can use a type ascription:
    (jsInt: Ordered[JsInt]).<(that)
    Definition Classes
    Ordered
  17. def <=(x: Double): Boolean
    Implicit
    This member is added by an implicit conversion from JsInt toInt performed by method json2Int in smile.json.
    Shadowing
    This implicitly inherited member is shadowed by one or more members in this class.
    To access this member you can use a type ascription:
    (jsInt: Int).<=(x)
    Definition Classes
    Int
  18. def <=(x: Float): Boolean
    Implicit
    This member is added by an implicit conversion from JsInt toInt performed by method json2Int in smile.json.
    Shadowing
    This implicitly inherited member is shadowed by one or more members in this class.
    To access this member you can use a type ascription:
    (jsInt: Int).<=(x)
    Definition Classes
    Int
  19. def <=(x: Long): Boolean
    Implicit
    This member is added by an implicit conversion from JsInt toInt performed by method json2Int in smile.json.
    Shadowing
    This implicitly inherited member is shadowed by one or more members in this class.
    To access this member you can use a type ascription:
    (jsInt: Int).<=(x)
    Definition Classes
    Int
  20. def <=(x: Int): Boolean
    Implicit
    This member is added by an implicit conversion from JsInt toInt performed by method json2Int in smile.json.
    Shadowing
    This implicitly inherited member is shadowed by one or more members in this class.
    To access this member you can use a type ascription:
    (jsInt: Int).<=(x)
    Definition Classes
    Int
  21. def <=(x: Char): Boolean
    Implicit
    This member is added by an implicit conversion from JsInt toInt performed by method json2Int in smile.json.
    Shadowing
    This implicitly inherited member is shadowed by one or more members in this class.
    To access this member you can use a type ascription:
    (jsInt: Int).<=(x)
    Definition Classes
    Int
  22. def <=(x: Short): Boolean
    Implicit
    This member is added by an implicit conversion from JsInt toInt performed by method json2Int in smile.json.
    Shadowing
    This implicitly inherited member is shadowed by one or more members in this class.
    To access this member you can use a type ascription:
    (jsInt: Int).<=(x)
    Definition Classes
    Int
  23. def <=(x: Byte): Boolean
    Implicit
    This member is added by an implicit conversion from JsInt toInt performed by method json2Int in smile.json.
    Shadowing
    This implicitly inherited member is shadowed by one or more members in this class.
    To access this member you can use a type ascription:
    (jsInt: Int).<=(x)
    Definition Classes
    Int
  24. def <=(that: JsInt): Boolean
    Implicit
    This member is added by an implicit conversion from JsInt toOrdered[JsInt] performed by method orderingToOrdered in scala.math.Ordered.
    Shadowing
    This implicitly inherited member is shadowed by one or more members in this class.
    To access this member you can use a type ascription:
    (jsInt: Ordered[JsInt]).<=(that)
    Definition Classes
    Ordered
  25. def ==(x: Double): Boolean
    Implicit
    This member is added by an implicit conversion from JsInt toInt performed by method json2Int in smile.json.
    Shadowing
    This implicitly inherited member is shadowed by one or more members in this class.
    To access this member you can use a type ascription:
    (jsInt: Int).==(x)
    Definition Classes
    Int
  26. def ==(x: Float): Boolean
    Implicit
    This member is added by an implicit conversion from JsInt toInt performed by method json2Int in smile.json.
    Shadowing
    This implicitly inherited member is shadowed by one or more members in this class.
    To access this member you can use a type ascription:
    (jsInt: Int).==(x)
    Definition Classes
    Int
  27. def ==(x: Long): Boolean
    Implicit
    This member is added by an implicit conversion from JsInt toInt performed by method json2Int in smile.json.
    Shadowing
    This implicitly inherited member is shadowed by one or more members in this class.
    To access this member you can use a type ascription:
    (jsInt: Int).==(x)
    Definition Classes
    Int
  28. def ==(x: Int): Boolean
    Implicit
    This member is added by an implicit conversion from JsInt toInt performed by method json2Int in smile.json.
    Shadowing
    This implicitly inherited member is shadowed by one or more members in this class.
    To access this member you can use a type ascription:
    (jsInt: Int).==(x)
    Definition Classes
    Int
  29. def ==(x: Char): Boolean
    Implicit
    This member is added by an implicit conversion from JsInt toInt performed by method json2Int in smile.json.
    Shadowing
    This implicitly inherited member is shadowed by one or more members in this class.
    To access this member you can use a type ascription:
    (jsInt: Int).==(x)
    Definition Classes
    Int
  30. def ==(x: Short): Boolean
    Implicit
    This member is added by an implicit conversion from JsInt toInt performed by method json2Int in smile.json.
    Shadowing
    This implicitly inherited member is shadowed by one or more members in this class.
    To access this member you can use a type ascription:
    (jsInt: Int).==(x)
    Definition Classes
    Int
  31. def ==(x: Byte): Boolean
    Implicit
    This member is added by an implicit conversion from JsInt toInt performed by method json2Int in smile.json.
    Shadowing
    This implicitly inherited member is shadowed by one or more members in this class.
    To access this member you can use a type ascription:
    (jsInt: Int).==(x)
    Definition Classes
    Int
  32. def >(x: Double): Boolean
    Implicit
    This member is added by an implicit conversion from JsInt toInt performed by method json2Int in smile.json.
    Shadowing
    This implicitly inherited member is shadowed by one or more members in this class.
    To access this member you can use a type ascription:
    (jsInt: Int).>(x)
    Definition Classes
    Int
  33. def >(x: Float): Boolean
    Implicit
    This member is added by an implicit conversion from JsInt toInt performed by method json2Int in smile.json.
    Shadowing
    This implicitly inherited member is shadowed by one or more members in this class.
    To access this member you can use a type ascription:
    (jsInt: Int).>(x)
    Definition Classes
    Int
  34. def >(x: Long): Boolean
    Implicit
    This member is added by an implicit conversion from JsInt toInt performed by method json2Int in smile.json.
    Shadowing
    This implicitly inherited member is shadowed by one or more members in this class.
    To access this member you can use a type ascription:
    (jsInt: Int).>(x)
    Definition Classes
    Int
  35. def >(x: Int): Boolean
    Implicit
    This member is added by an implicit conversion from JsInt toInt performed by method json2Int in smile.json.
    Shadowing
    This implicitly inherited member is shadowed by one or more members in this class.
    To access this member you can use a type ascription:
    (jsInt: Int).>(x)
    Definition Classes
    Int
  36. def >(x: Char): Boolean
    Implicit
    This member is added by an implicit conversion from JsInt toInt performed by method json2Int in smile.json.
    Shadowing
    This implicitly inherited member is shadowed by one or more members in this class.
    To access this member you can use a type ascription:
    (jsInt: Int).>(x)
    Definition Classes
    Int
  37. def >(x: Short): Boolean
    Implicit
    This member is added by an implicit conversion from JsInt toInt performed by method json2Int in smile.json.
    Shadowing
    This implicitly inherited member is shadowed by one or more members in this class.
    To access this member you can use a type ascription:
    (jsInt: Int).>(x)
    Definition Classes
    Int
  38. def >(x: Byte): Boolean
    Implicit
    This member is added by an implicit conversion from JsInt toInt performed by method json2Int in smile.json.
    Shadowing
    This implicitly inherited member is shadowed by one or more members in this class.
    To access this member you can use a type ascription:
    (jsInt: Int).>(x)
    Definition Classes
    Int
  39. def >(that: JsInt): Boolean
    Implicit
    This member is added by an implicit conversion from JsInt toOrdered[JsInt] performed by method orderingToOrdered in scala.math.Ordered.
    Shadowing
    This implicitly inherited member is shadowed by one or more members in this class.
    To access this member you can use a type ascription:
    (jsInt: Ordered[JsInt]).>(that)
    Definition Classes
    Ordered
  40. def >=(x: Double): Boolean
    Implicit
    This member is added by an implicit conversion from JsInt toInt performed by method json2Int in smile.json.
    Shadowing
    This implicitly inherited member is shadowed by one or more members in this class.
    To access this member you can use a type ascription:
    (jsInt: Int).>=(x)
    Definition Classes
    Int
  41. def >=(x: Float): Boolean
    Implicit
    This member is added by an implicit conversion from JsInt toInt performed by method json2Int in smile.json.
    Shadowing
    This implicitly inherited member is shadowed by one or more members in this class.
    To access this member you can use a type ascription:
    (jsInt: Int).>=(x)
    Definition Classes
    Int
  42. def >=(x: Long): Boolean
    Implicit
    This member is added by an implicit conversion from JsInt toInt performed by method json2Int in smile.json.
    Shadowing
    This implicitly inherited member is shadowed by one or more members in this class.
    To access this member you can use a type ascription:
    (jsInt: Int).>=(x)
    Definition Classes
    Int
  43. def >=(x: Int): Boolean
    Implicit
    This member is added by an implicit conversion from JsInt toInt performed by method json2Int in smile.json.
    Shadowing
    This implicitly inherited member is shadowed by one or more members in this class.
    To access this member you can use a type ascription:
    (jsInt: Int).>=(x)
    Definition Classes
    Int
  44. def >=(x: Char): Boolean
    Implicit
    This member is added by an implicit conversion from JsInt toInt performed by method json2Int in smile.json.
    Shadowing
    This implicitly inherited member is shadowed by one or more members in this class.
    To access this member you can use a type ascription:
    (jsInt: Int).>=(x)
    Definition Classes
    Int
  45. def >=(x: Short): Boolean
    Implicit
    This member is added by an implicit conversion from JsInt toInt performed by method json2Int in smile.json.
    Shadowing
    This implicitly inherited member is shadowed by one or more members in this class.
    To access this member you can use a type ascription:
    (jsInt: Int).>=(x)
    Definition Classes
    Int
  46. def >=(x: Byte): Boolean
    Implicit
    This member is added by an implicit conversion from JsInt toInt performed by method json2Int in smile.json.
    Shadowing
    This implicitly inherited member is shadowed by one or more members in this class.
    To access this member you can use a type ascription:
    (jsInt: Int).>=(x)
    Definition Classes
    Int
  47. def >=(that: JsInt): Boolean
    Implicit
    This member is added by an implicit conversion from JsInt toOrdered[JsInt] performed by method orderingToOrdered in scala.math.Ordered.
    Shadowing
    This implicitly inherited member is shadowed by one or more members in this class.
    To access this member you can use a type ascription:
    (jsInt: Ordered[JsInt]).>=(that)
    Definition Classes
    Ordered
  48. def compare(that: JsInt): Int
    Implicit
    This member is added by an implicit conversion from JsInt toOrdered[JsInt] performed by method orderingToOrdered in scala.math.Ordered.
    Shadowing
    This implicitly inherited member is shadowed by one or more members in this class.
    To access this member you can use a type ascription:
    (jsInt: Ordered[JsInt]).compare(that)
    Definition Classes
    Ordered
  49. def compareTo(that: JsInt): Int
    Implicit
    This member is added by an implicit conversion from JsInt toOrdered[JsInt] performed by method orderingToOrdered in scala.math.Ordered.
    Shadowing
    This implicitly inherited member is shadowed by one or more members in this class.
    To access this member you can use a type ascription:
    (jsInt: Ordered[JsInt]).compareTo(that)
    Definition Classes
    Ordered → Comparable

Deprecated Value Members

  1. def +(x: String): String
    Implicit
    This member is added by an implicit conversion from JsInt toInt performed by method json2Int in smile.json.
    Shadowing
    This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
    To access this member you can use a type ascription:
    (jsInt: Int).+(x)
    Definition Classes
    Int
    Annotations
    @deprecated
    Deprecated

    (Since version 2.13.0) Adding a number and a String is deprecated. Use the string interpolation s"$num$str"

  2. def <<(x: Long): Int
    Implicit
    This member is added by an implicit conversion from JsInt toInt performed by method json2Int in smile.json.
    Definition Classes
    Int
    Annotations
    @deprecated
    Deprecated

    (Since version 2.12.7) shifting a value by a Long argument is deprecated (except when the value is a Long). Call toInt on the argument to maintain the current behavior and avoid the deprecation warning.

  3. def >>(x: Long): Int
    Implicit
    This member is added by an implicit conversion from JsInt toInt performed by method json2Int in smile.json.
    Definition Classes
    Int
    Annotations
    @deprecated
    Deprecated

    (Since version 2.12.7) shifting a value by a Long argument is deprecated (except when the value is a Long). Call toInt on the argument to maintain the current behavior and avoid the deprecation warning.

  4. def >>>(x: Long): Int
    Implicit
    This member is added by an implicit conversion from JsInt toInt performed by method json2Int in smile.json.
    Definition Classes
    Int
    Annotations
    @deprecated
    Deprecated

    (Since version 2.12.7) shifting a value by a Long argument is deprecated (except when the value is a Long). Call toInt on the argument to maintain the current behavior and avoid the deprecation warning.

  5. def formatted(fmtstr: String): String
    Implicit
    This member is added by an implicit conversion from JsInt toStringFormat[JsInt] performed by method StringFormat in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @deprecated @inline()
    Deprecated

    (Since version 2.12.16) Use formatString.format(value) instead of value.formatted(formatString), or use the f"" string interpolator. In Java 15 and later, formatted resolves to the new method in String which has reversed parameters.

  6. def [B](y: B): (JsInt, B)
    Implicit
    This member is added by an implicit conversion from JsInt toArrowAssoc[JsInt] 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.

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from Ordered[JsInt]

Inherited from Comparable[JsInt]

Inherited from JsValue

Inherited from Dynamic

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion json2Int fromJsInt to Int

Inherited by implicit conversion orderingToOrdered fromJsInt to Ordered[JsInt]

Inherited by implicit conversion any2stringadd fromJsInt to any2stringadd[JsInt]

Inherited by implicit conversion StringFormat fromJsInt to StringFormat[JsInt]

Inherited by implicit conversion Ensuring fromJsInt to Ensuring[JsInt]

Inherited by implicit conversion ArrowAssoc fromJsInt to ArrowAssoc[JsInt]

Ungrouped