object Instance extends NumInt[Any] with NumBool[Any] with FromAny[Any] with ToNum[Any] with Scalar[Any] with Factory
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- Instance
- Factory
- Scalar
- ToNum
- FromAny
- NumBool
- NumInt
- NumLogic
- NumDiv
- Num
- Ord
- Eq
- Adjunct
- Writable
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Type Members
Value Members
- final def !=(arg0: Any): scala.Boolean
- Definition Classes
- AnyRef → Any
- final def ##: scala.Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): scala.Boolean
- Definition Classes
- AnyRef → Any
- def abs(a: Any): Any
- def absDif(a: Any, b: Any): Any
- def and(a: Any, b: Any): Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clip(a: Any, lo: Any, hi: Any): Any
- def clip2(a: Any, b: Any): Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
- def cubed(a: Any): Any
- def difSqr(a: Any, b: Any): Any
- def div(a: Any, b: Any): Any
- def eq(a: Any, b: Any): Boolean
- final def eq(arg0: AnyRef): scala.Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): scala.Boolean
- Definition Classes
- AnyRef → Any
- def excess(a: Any, b: Any): Any
- def fold(a: Any, lo: Any, hi: Any): Any
- def fold2(a: Any, b: Any): Any
- def fromAny(in: Any): Option[Any]
Tries to extract a value of type
A
from an unknown input value.Tries to extract a value of type
A
from an unknown input value. If the input value is generally incompatible withA
, returnsNone
.The extraction should be direct and lossless. For example, a
FromAny[Int]
should not try to parse a string, nor should it cast aLong
to anInt
. On the other hand, aFromAny[Double]
should accept aFloat
as input. - def gcd(a: Any, b: Any): Any
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def gt(a: Any, b: Any): Boolean
- def gteq(a: Any, b: Any): Boolean
- def hashCode(): scala.Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final val id: Int(5000)
- def isEven(a: Any): Boolean
- final def isInstanceOf[T0]: scala.Boolean
- Definition Classes
- Any
- def isOdd(a: Any): Boolean
- def isPowerOfTwo(a: Any): Boolean
- def lcm(a: Any, b: Any): Any
- def lt(a: Any, b: Any): Boolean
- def lteq(a: Any, b: Any): Boolean
- def max(a: Any, b: Any): Any
- def min(a: Any, b: Any): Any
- def minus(a: Any, b: Any): Any
- def mod(a: Any, b: Any): Any
- final def ne(arg0: AnyRef): scala.Boolean
- Definition Classes
- AnyRef
- def negate(a: Any): Any
- def neq(a: Any, b: Any): Boolean
- def nextPowerOfTwo(a: Any): Any
- def not(a: Any): Any
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def one: Any
- def or(a: Any, b: Any): Any
- def plus(a: Any, b: Any): Any
- def rand[Tx](a: Any)(implicit r: Random[Tx], tx: Tx): Any
A random number between zero (inclusive) and
a
(exclusive). - def rand2[Tx](a: Any)(implicit r: Random[Tx], tx: Tx): Any
- def rangeRand[Tx](a: Any, b: Any)(implicit r: Random[Tx], tx: Tx): Any
- def readIdentifiedAdjunct(in: DataInput): Adjunct
- def rem(a: Any, b: Any): Any
- def roundTo(a: Any, b: Any): Any
- def roundUpTo(a: Any, b: Any): Any
- def shiftLeft(a: Any, b: Any): Any
- def shiftRight(a: Any, b: Any): Any
- def signum(a: Any): Any
- def sqrDif(a: Any, b: Any): Any
- def sqrSum(a: Any, b: Any): Any
- def squared(a: Any): Any
- def sumSqr(a: Any, b: Any): Any
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def times(a: Any, b: Any): Any
- def toDouble(a: Any): Double
- def toInt(a: Any): Int
- def toLong(a: Any): Long
- def toString(): String
- Definition Classes
- AnyRef → Any
- def trunc(a: Any, b: Any): Any
- def unsignedShiftRight(a: Any, b: Any): Any
- final def wait(arg0: scala.Long, arg1: scala.Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: scala.Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- def wrap(a: Any, lo: Any, hi: Any): Any
- def wrap2(a: Any, b: Any): Any
- def write(out: DataOutput): Unit
- def xor(a: Any, b: Any): Any
- def zero: Any
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated