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
- Alphabetic
- By Inheritance
- JsNothing
- Serializable
- Product
- Equals
- JsValue
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##(): Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def id: Int
Every implementation of this trait has an unique identifier in order.
- def isArr: Boolean
returns true if this is an array
- 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
- Definition Classes
- JsValue
- def isBigDec: Boolean
returns true if this is a big decimal.
- def isBigInt: Boolean
returns true if this is a big integer.
- def isBool: Boolean
returns true if this is a boolean
- 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
- Definition Classes
- JsValue
- def isDecimal: Boolean
returns true if this type is a decimal number
- def isDouble: Boolean
returns true if this is a double
- 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
- Definition Classes
- JsValue
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def isInt: Boolean
returns true if this is an integer (32 bit precision number)
- 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
- Definition Classes
- JsValue
- 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
- Definition Classes
- JsValue
- 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
- 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
- def isJson(predicate: (Json[_]) => Boolean): Boolean
returns true if this is a json that satisfies a predicate
returns true if this is a json that satisfies a predicate
- predicate
the predicate
- Definition Classes
- JsValue
- def isLong: Boolean
returns true if this is a long (62 bit precision number)
- 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
- Definition Classes
- JsValue
- 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
- def isNotNull: Boolean
returns true if this is not null
returns true if this is not null
- Definition Classes
- JsValue
- def isNotNumber: Boolean
returns true if this is not a number
returns true if this is not a number
- Definition Classes
- JsValue
- def isNothing: Boolean
returns true if this is JsNothing
- def isNull: Boolean
returns true if this is JsNull
- def isNumber: Boolean
returns true if this is a number
- def isObj: Boolean
returns true if this is an object
- 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
- Definition Classes
- JsValue
- def isPrimitive: Boolean
returns true is this is a primitive type
- def isStr: Boolean
returns true if this is a string
- 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
- Definition Classes
- JsValue
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def productElementName(n: Int): String
- Definition Classes
- Product
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toJsArray: Nothing
returns this value as a JsArray if it's an array, throwing an UserError otherwise.
- def toJsBigDec: Nothing
returns this value as a JsBigDec if it's a decimal number, throwing an UserError otherwise.
- 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.
- def toJsBool: Nothing
returns this value as a JsBool if it's a boolean, throwing an UserError otherwise.
- 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 || isLong || isDouble can help to that purpose.
- def toJsInt: Nothing
returns this value as a JsInt, throwing an UserError otherwise.
- def toJsLong: Nothing
returns this value as a JsLong if it is a JsLong or a JsInt, throwing an UserError otherwise.
- def toJsNull: Nothing
returns this value as a JsNull if it's null, throwing an UserError otherwise.
- def toJsNumber: Nothing
returns this value as a JsNumber if it's a number, throwing an UserError otherwise.
- def toJsObj: Nothing
returns this value as a JsObj if it's an object, throwing an UserError otherwise.
- def toJsPrimitive: Nothing
- def toJsStr: Nothing
returns this value as a JsStr if it's a string, throwing an UserError otherwise.
- def toJson: Nothing
returns this value as a Json if it's an object or an array, throwing an UserError otherwise.
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()