object JsNumberSpecs
Factory of specs to define values as numbers
- Alphabetic
- By Inheritance
- JsNumberSpecs
- 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()
- def decimal(nullable: Boolean = false, required: Boolean = true): JsSpec
returns a spec to specify that a value is a decimal number
returns a spec to specify that a value is a decimal number
- nullable
if true, null is allowed
- required
if true, the value is mandatory
- returns
a spec
- val decimal: JsSpec
spec to specify that a value is a decimal number
- def decimalSuchThat(p: (BigDecimal) => Result, nullable: Boolean = false, required: Boolean = true): JsSpec
returns a spec to specify that a value is a decimal number that satisfies a predicate
returns a spec to specify that a value is a decimal number that satisfies a predicate
- p
the predicate the decimal number has to be evaluated to true
- nullable
if true, null is allowed and the predicate is not evaluated
- required
if true, the value is mandatory
- returns
a spec
- 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 hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def int(nullable: Boolean = false, required: Boolean = true): JsSpec
returns a spec to specify that a value is an integer number (32 bits precision)
returns a spec to specify that a value is an integer number (32 bits precision)
- nullable
if true, null is allowed
- required
if true, the value is mandatory
- returns
a spec
- val int: JsSpec
spec to specify that a value is an integer number (32 bits precision)
- def intSuchThat(p: (Int) => Result, nullable: Boolean = false, required: Boolean = true): JsSpec
returns a spec to specify that a value is an integer number (32 bits precision) that satisfies a predicate
returns a spec to specify that a value is an integer number (32 bits precision) that satisfies a predicate
- p
the predicate the number has to be evaluated to true
- nullable
if true, null is allowed and the predicate is not evaluated
- required
if true, the value is mandatory
- returns
a spec
- def integral(nullable: Boolean = false, required: Boolean = true): JsSpec
returns a spec to specify that a value is an integral number
returns a spec to specify that a value is an integral number
- nullable
if true, null is allowed
- required
if true, the value is mandatory
- returns
a spec
- val integral: JsSpec
spec to specify that a value is an integral number
- def integralSuchThat(p: (BigInt) => Result, nullable: Boolean = false, required: Boolean = true): JsSpec
returns a spec to specify that a value is an integral number that satisfies a predicate
returns a spec to specify that a value is an integral number that satisfies a predicate
- p
the predicate the integral number has to be evaluated to true
- nullable
if true, null is allowed and the predicate is not evaluated
- required
if true, the value is mandatory
- returns
a spec
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def long(nullable: Boolean = false, required: Boolean = true): IsLong
returns a spec to specify that a value is a long number (64 bits precision)
returns a spec to specify that a value is a long number (64 bits precision)
- nullable
if true, null is allowed
- required
if true, the value is mandatory
- returns
a spec
- val long: JsSpec
spec to specify that a value is a long number (64 bits precision)
- def longSuchThat(p: (Long) => Result, nullable: Boolean = false, required: Boolean = true): JsSpec
returns a spec to specify that a value is a long number (64 bits precision) that satisfies a predicate
returns a spec to specify that a value is a long number (64 bits precision) that satisfies a predicate
- p
the predicate the number has to be evaluated to true
- nullable
if true, null is allowed and the predicate is not evaluated
- required
if true, the value is mandatory
- returns
a spec
- 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 number(nullable: Boolean = false, required: Boolean = true): JsSpec
returns a spec to specify that a value is a number
returns a spec to specify that a value is a number
- nullable
if true, null is allowed
- required
if true, the value is mandatory
- returns
a spec
- val number: JsSpec
spec to specify that a value is a number
- def numberSuchThat(p: (JsNumber) => Result, nullable: Boolean = false, required: Boolean = true): JsSpec
returns a spec to specify that a value is a number that satisfies a predicate
returns a spec to specify that a value is a number that satisfies a predicate
- p
the predicate the number has to be evaluated to true
- nullable
if true, null is allowed and the predicate is not evaluated
- required
if true, the value is mandatory
- returns
a spec
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- 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()