c

value

JsLong

final case class JsLong(value: Long) extends JsNumber with Product with Serializable

Represents a number of type Long

value

the value of the number

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

Instance Constructors

  1. new JsLong(value: Long)

    value

    the value of the number

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 asJsArray: JsArray

    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
    JsNumberJsValue
    Exceptions thrown

    UserError if it's not an array

  6. def asJsBigDec: JsBigDec

    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
    JsLongJsValue
    Exceptions thrown

    UserError if the conversion can't be done

  7. def asJsBigInt: JsBigInt

    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
    JsLongJsValue
    Exceptions thrown

    UserError if the conversion can't be done

  8. def asJsBool: JsBool

    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
    JsNumberJsValue
    Exceptions thrown

    UserError if it's not a boolean

  9. def asJsDouble: JsDouble

    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
    JsLongJsValue
    Exceptions thrown

    UserError if the conversion can't be done

  10. def asJsInt: JsInt

    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
    JsLongJsValue
    Exceptions thrown

    UserError if the conversion can't be done

  11. def asJsLong: JsLong

    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

    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
    JsLongJsValue
    Exceptions thrown

    UserError if the conversion can't be done

  12. def asJsNull: JsNull.type

    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
    JsNumberJsValue
    Exceptions thrown

    UserError if it's not a boolean

  13. def asJsNumber: JsNumber

    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 call to this function doesn't fail. The guard condition

    isNumber

    can help to that purpose.

    isNumber }}}

    returns

    this value as a JsNumber

    Definition Classes
    JsNumberJsValue
    Exceptions thrown

    UserError if it's not a number

  14. def asJsObj: JsObj

    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
    JsNumberJsValue
    Exceptions thrown

    UserError if it's not an object

  15. def asJsStr: JsStr

    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
    JsNumberJsValue
    Exceptions thrown

    UserError if it's not a string

  16. def asJson: Json[_]

    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
    JsNumberJsValue
    Exceptions thrown

    UserError if it's not an array or an object

  17. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  18. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  19. def equals(that: Any): Boolean
    Definition Classes
    JsLong → Equals → AnyRef → Any
  20. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  21. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  22. def hashCode(): Int
    Definition Classes
    JsLong → AnyRef → Any
  23. 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
    JsLongJsValue
  24. def isArr: Boolean

    returns true if this is an array

    returns true if this is an array

    Definition Classes
    JsNumberJsValue
  25. 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
  26. 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
    JsLongJsValue
  27. def isBigDec(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
  28. 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
    JsLongJsValue
  29. def isBigInt(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
  30. def isBool: Boolean

    returns true if this is a boolean

    returns true if this is a boolean

    Definition Classes
    JsNumberJsValue
  31. 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
  32. def isDouble: Boolean

    returns true if this is a double

    returns true if this is a double

    Definition Classes
    JsLongJsValue
  33. 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
  34. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  35. def isInt: Boolean

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

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

    Definition Classes
    JsLongJsValue
  36. 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
  37. 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
  38. 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
  39. 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
  40. 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
    JsLongJsValue
  41. 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
  42. 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
  43. def isNotNumber: Boolean

    returns true if this is not a number

    returns true if this is not a number

    Definition Classes
    JsValue
  44. 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
    JsNumberJsValue
  45. 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
    JsNumberJsValue
  46. def isNumber: Boolean

    returns true if this is a number

    returns true if this is a number

    Definition Classes
    JsNumberJsValue
  47. def isObj: Boolean

    returns true if this is an object

    returns true if this is an object

    Definition Classes
    JsNumberJsValue
  48. 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
  49. def isStr: Boolean

    returns true if this is a string

    returns true if this is a string

    Definition Classes
    JsNumberJsValue
  50. 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
  51. def mapIfNotNothing[T](default: () => T, map: (JsValue) => T): T

    if this is JsNothing, it returns a value computed by the default supplier.

    if this is JsNothing, it returns a value computed by the default supplier. Otherwise, it returns the result of applying the map function to this.

    T

    the type of the returned value

    default

    the supplier to compute the default value

    map

    the map function

    returns

    a value of type T

    Definition Classes
    JsValue
  52. def mapIfNotNull[T](default: () => T, map: (JsValue) => T): T

    if this is JsNull, it returns a value computed by the default supplier.

    if this is JsNull, it returns a value computed by the default supplier. Otherwise, it returns the result of applying the map function to this.

    T

    the type of the returned value

    default

    the supplier to compute the default value

    map

    the map function

    returns

    a value of type T

    Definition Classes
    JsValue
  53. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  54. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  55. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  56. def productElementNames: Iterator[String]
    Definition Classes
    Product
  57. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  58. def toString(): String
    Definition Classes
    JsLong → AnyRef → Any
  59. val value: Long
  60. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  61. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  62. 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 JsNumber

Inherited from JsValue

Inherited from AnyRef

Inherited from Any

Ungrouped