o

value

JsNothing

object JsNothing extends JsValue with Product with Serializable

It's a special Json value that represents 'nothing'. Inserting nothing in a json leaves the json unchanged. Functions that return a JsValue, return JsNothing when no element is found, what makes them total on their arguments.

val obj = JsObj.empty
obj("a") == JsNothing
obj.inserted("a",JsNothing) == obj
Linear Supertypes
Serializable, Product, Equals, JsValue, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. JsNothing
  2. Serializable
  3. Product
  4. Equals
  5. JsValue
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  6. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  7. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  8. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  9. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  10. def id: Int

    Every implementation of this trait has an unique identifier.

    Every implementation of this trait has an unique identifier.

    returns

    unique identifier of the type

    Definition Classes
    JsNothingJsValue
  11. def isArr: Boolean

    returns true if this is an array

    returns true if this is an array

    Definition Classes
    JsNothingJsValue
  12. def isArr(predicate: (JsArray) => Boolean): Boolean

    returns true if this is an array that satisfies a predicate

    returns true if this is an array that satisfies a predicate

    predicate

    the predicate

    Definition Classes
    JsValue
  13. def isBigDec: Boolean

    returns true if this is a big decimal.

    returns true if this is a big decimal.

    returns

    true if this is a big decimal and false otherwise. If this is a double, it returns false.

    Definition Classes
    JsNothingJsValue
  14. def isBigInt: Boolean

    returns true if this is a big integer.

    returns true if this is a big integer.

    returns

    true if this is a big integer and false otherwise. If this is either an integer or a long, it returns false.

    Definition Classes
    JsNothingJsValue
  15. def isBool: Boolean

    returns true if this is a boolean

    returns true if this is a boolean

    Definition Classes
    JsNothingJsValue
  16. def isDecimal(predicate: (BigDecimal) => Boolean): Boolean

    returns true if this is a big decimal that satisfies a predicate

    returns true if this is a big decimal that satisfies a predicate

    predicate

    the predicate

    returns

    true if this is a big decimal that satisfies the predicate. If this is a double, it returns false

    Definition Classes
    JsValue
  17. def isDecimal: Boolean

    returns true if this type is a decimal number

    returns true if this type is a decimal number

    returns

    isDouble || isBigDec
    Definition Classes
    JsValue
  18. def isDouble: Boolean

    returns true if this is a double

    returns true if this is a double

    Definition Classes
    JsNothingJsValue
  19. def isDouble(predicate: (Double) => Boolean): Boolean

    returns true if this is a double that satisfies a predicate

    returns true if this is a double that satisfies a predicate

    predicate

    the predicate

    returns

    true if this is a double that satisfies the predicate

    Definition Classes
    JsValue
  20. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  21. def isInt: Boolean

    returns true if this is an integer (32 bit precision number)

    returns true if this is an integer (32 bit precision number)

    Definition Classes
    JsNothingJsValue
  22. def isInt(predicate: (Int) => Boolean): Boolean

    returns true if this is an integer that satisfies a predicate

    returns true if this is an integer that satisfies a predicate

    predicate

    the predicate

    Definition Classes
    JsValue
  23. def isIntegral(predicate: (BigInt) => Boolean): Boolean

    returns true if this is a big integer that satisfies a predicate

    returns true if this is a big integer that satisfies a predicate

    predicate

    the predicate

    returns

    true if this is a big integer that satisfies the predicate. If this is either an integer or a long, it returns false.

    Definition Classes
    JsValue
  24. def isIntegral: Boolean

    returns true if this type is an integral number

    returns true if this type is an integral number

    returns

    isInt || isLong || isBigInt
    Definition Classes
    JsValue
  25. def isJson(predicate: (Json[_]) => Boolean): Boolean

    returns true if this is a json that satisfy a predicate

    returns true if this is a json that satisfy a predicate

    predicate

    the predicate

    Definition Classes
    JsValue
  26. def isJson: Boolean

    returns true is this type is an array or an object

    returns true is this type is an array or an object

    Definition Classes
    JsValue
  27. def isLong: Boolean

    returns true if this is a long (62 bit precision number)

    returns true if this is a long (62 bit precision number)

    returns

    true if this is a long and false otherwise. If this is an integer, it returns false.

    Definition Classes
    JsNothingJsValue
  28. def isLong(predicate: (Long) => Boolean): Boolean

    returns true if this is a long that satisfies a predicate

    returns true if this is a long that satisfies a predicate

    predicate

    the predicate

    returns

    true if this is a long that satisfies the predicate and false otherwise. If this is an integer, it returns false.

    Definition Classes
    JsValue
  29. def isNotJson: Boolean

    returns true if this is neither an object nor an array

    returns true if this is neither an object nor an array

    Definition Classes
    JsValue
  30. def isNotNull: Boolean

    returns true if this is not null

    returns true if this is not null

    returns

    true if this is not null, false otherwise

    Definition Classes
    JsValue
  31. def isNotNumber: Boolean

    returns true if this is not a number

    returns true if this is not a number

    Definition Classes
    JsValue
  32. def isNothing: Boolean

    returns true if this is JsNothing

    returns true if this is JsNothing

    returns

    true if this is JsNothing, false otherwise

    Definition Classes
    JsNothingJsValue
  33. def isNull: Boolean

    returns true if this is JsNull

    returns true if this is JsNull

    returns

    true if this is JsNull, false otherwise

    Definition Classes
    JsNothingJsValue
  34. def isNumber: Boolean

    returns true if this is a number

    returns true if this is a number

    Definition Classes
    JsNothingJsValue
  35. def isObj: Boolean

    returns true if this is an object

    returns true if this is an object

    Definition Classes
    JsNothingJsValue
  36. def isObj(predicate: (JsObj) => Boolean): Boolean

    returns true if this is an object that satisfies a predicate

    returns true if this is an object that satisfies a predicate

    predicate

    the predicate

    Definition Classes
    JsValue
  37. def isStr: Boolean

    returns true if this is a string

    returns true if this is a string

    Definition Classes
    JsNothingJsValue
  38. def isStr(predicate: (String) => Boolean): Boolean

    returns true if this is a string that satisfies a predicate

    returns true if this is a string that satisfies a predicate

    predicate

    the predicate

    Definition Classes
    JsValue
  39. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  40. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  41. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  42. def productElementName(n: Int): String
    Definition Classes
    Product
  43. def productElementNames: Iterator[String]
    Definition Classes
    Product
  44. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  45. def toJsArray: Nothing

    returns this value as a JsArray if it's an array, throwing an UserError otherwise.

    returns this value as a JsArray if it's an array, throwing an UserError otherwise. It's the responsibility of the caller to make sure the call to this function doesn't fail. The guard condition

    isArr

    can help to that purpose.

    isArr }}}

    returns

    this value as a JsArray

    Definition Classes
    JsNothingJsValue
  46. def toJsBigDec: Nothing

    returns this value as a JsBigDec if it's a decimal number, throwing an UserError otherwise.

    returns this value as a JsBigDec if it's a decimal number, throwing an UserError otherwise. It's the responsibility of the caller to make sure the call to this function doesn't fail. The guard condition

    isDecimal

    can help to that purpose.

    isDecimal }}}

    returns

    this value as a JsBigDec

    Definition Classes
    JsNothingJsValue
  47. def toJsBigInt: Nothing

    returns this value as a JsBigInt if it's an integral number, throwing an UserError otherwise.

    returns this value as a JsBigInt if it's an integral number, throwing an UserError otherwise. It's the responsibility of the caller to make sure the call to this function doesn't fail. The guard condition

    isIntegral

    can help to that purpose.

    isIntegral }}}

    returns

    this value as a JsBigInt

    Definition Classes
    JsNothingJsValue
  48. def toJsBool: Nothing

    returns this value as a JsBool if it's a boolean, throwing an UserError otherwise.

    returns this value as a JsBool if it's a boolean, throwing an UserError otherwise. It's the responsibility of the caller to make sure the call to this function doesn't fail. The guard condition

    isBool

    can help to that purpose.

    isBool }}}

    returns

    this value as a JsBool

    Definition Classes
    JsNothingJsValue
  49. def toJsDouble: Nothing

    returns this value as a JsDouble if it is a JsLong or a JsInt or a JsDouble, throwing an UserError otherwise.

    returns this value as a JsDouble if it is a JsLong or a JsInt or a JsDouble, throwing an UserError otherwise. It's the responsibility of the caller to make sure the call to this function doesn't fail. The guard condition

    isInt || isLong || isDouble

    can help to that purpose.

    isInt || isLong || isDouble }}}

    returns

    this value as a JsDouble

    Definition Classes
    JsNothingJsValue
  50. def toJsInt: Nothing

    returns this value as a JsInt, throwing an UserError otherwise.

    returns this value as a JsInt, throwing an UserError otherwise. It's the responsibility of the caller to make sure the call to this function doesn't fail. The guard condition

    isInt

    can help to that purpose.

    isInt }}}

    returns

    this value as a JsInt

    Definition Classes
    JsNothingJsValue
  51. def toJsLong: Nothing

    returns this value as a JsLong if it is a JsLong or a JsInt, throwing an UserError otherwise.

    returns this value as a JsLong if it is a JsLong or a JsInt, throwing an UserError otherwise. It's the responsibility of the caller to make sure the call to this function doesn't fail. The guard condition

    isInt || isLong

    can help to that purpose.

    isInt || isLong }}}

    returns

    this value as a JsLong

    Definition Classes
    JsNothingJsValue
  52. def toJsNull: Nothing

    returns this value as a JsNull if it's null, throwing an UserError otherwise.

    returns this value as a JsNull if it's null, throwing an UserError otherwise. It's the responsibility of the caller to make sure the call to this function doesn't fail. The guard condition

    isNull

    can help to that purpose.

    isNull }}}

    returns

    this value as a JsNull

    Definition Classes
    JsNothingJsValue
  53. def toJsNumber: Nothing

    returns this value as a JsNumber if it's a number, throwing an UserError otherwise.

    returns this value as a JsNumber if it's a number, throwing an UserError otherwise. It's the responsibility of the caller to make sure the invocation to this function doesn't fail. The guard condition

    isNumber

    can help to that purpose.

    isNumber }}}

    returns

    this value as a JsNumber

    Definition Classes
    JsNothingJsValue
  54. def toJsObj: Nothing

    returns this value as a JsObj if it's an object, throwing an UserError otherwise.

    returns this value as a JsObj if it's an object, throwing an UserError otherwise. It's the responsibility of the caller to make sure the call to this function doesn't fail. The guard condition

    isObj

    can help to that purpose.

    isObj }}}

    returns

    this value as a JsObj

    Definition Classes
    JsNothingJsValue
  55. def toJsStr: Nothing

    returns this value as a JsStr if it's a string, throwing an UserError otherwise.

    returns this value as a JsStr if it's a string, throwing an UserError otherwise. It's the responsibility of the caller to make sure the call to this function doesn't fail. The guard condition

    isStr

    can help to that purpose.

    isStr }}}

    returns

    this value as a JsStr

    Definition Classes
    JsNothingJsValue
  56. def toJson: Nothing

    returns this value as a Json if it's an object or an array, throwing an UserError otherwise.

    returns this value as a Json if it's an object or an array, throwing an UserError otherwise. It's the responsibility of the caller to make sure the call to this function doesn't fail. The guard condition

    isJson

    can help to that purpose.

    isJson }}}

    returns

    this value as a Json

    Definition Classes
    JsNothingJsValue
  57. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  58. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  59. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from JsValue

Inherited from AnyRef

Inherited from Any

Ungrouped