case class CBigInt(wrappedValue: BigInteger) extends TestBigInt with WrapperOf[BigInteger] with Product with Serializable
A default implementation of BigInt interface.
- See also
BigInt for detailed descriptions
- Alphabetic
- By Inheritance
- CBigInt
- Serializable
- Serializable
- Product
- Equals
- WrapperOf
- TestBigInt
- BigInt
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new CBigInt(wrappedValue: BigInteger)
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
- def %(m: BigInt): BigInt
- def &(that: BigInt): BigInt
- def *(that: BigInt): BigInt
- def +(that: BigInt): BigInt
- def -(that: BigInt): BigInt
- def /(that: BigInt): BigInt
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
add(that: BigInt): BigInt
Returns a BigInt whose value is
(this + that)
.Returns a BigInt whose value is
(this + that)
.- that
value to be added to this BigInt.
- returns
{ @code this + that}
- Definition Classes
- TestBigInt → BigInt
-
def
and(that: BigInt): BigInt
Returns a BigInteger whose value is
(this & that)
.Returns a BigInteger whose value is
(this & that)
. (This method returns a negative BigInteger if and only ifthis
andthat
are both negative.)- that
value to be AND'ed with this BigInteger.
- returns
this & that
- Definition Classes
- TestBigInt → BigInt
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
def
compareTo(that: BigInt): Int
Compares this numeric with that numeric for order.
Compares this numeric with that numeric for order. Returns a negative integer, zero, or a positive integer as the
this
is less than, equal to, or greater thanthat
.- Definition Classes
- TestBigInt → BigInt
-
def
divide(that: BigInt): BigInt
Returns a BigInt whose value is
(this / that)
.Returns a BigInt whose value is
(this / that)
.- that
value by which this BigInt is to be divided.
- returns
{ @code this / that}
- Definition Classes
- TestBigInt → BigInt
- Exceptions thrown
ArithmeticException
if { @code that} is zero.
-
val
dsl: CostingSigmaDslBuilder.type
- Definition Classes
- CBigInt → TestBigInt
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
inverseModQ: BigInt
Multiply this number with
other
by module Q.Multiply this number with
other
by module Q.- Definition Classes
- TestBigInt → BigInt
- Since
Mainnet
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
max(that: BigInt): BigInt
Returns the maximum of this BigInteger and
val
.Returns the maximum of this BigInteger and
val
.- that
value with which the maximum is to be computed.
- returns
the BigInteger whose value is the greater of this and { @code val}. If they are equal, either may be returned.
- Definition Classes
- TestBigInt → BigInt
-
def
min(that: BigInt): BigInt
Returns the minimum of this BigInteger and
val
.Returns the minimum of this BigInteger and
val
.- that
value with which the minimum is to be computed.
- returns
the BigInteger whose value is the lesser of this BigInteger and { @code val}. If they are equal, either may be returned.
- Definition Classes
- TestBigInt → BigInt
-
def
minusModQ(other: BigInt): BigInt
Subtracts this number with
other
by module Q.Subtracts this number with
other
by module Q.- Definition Classes
- TestBigInt → BigInt
- Since
2.0
-
def
mod(m: BigInt): BigInt
Returns a BigInt whose value is
(this mod m
).Returns a BigInt whose value is
(this mod m
). This method differs fromremainder
in that it always returns a non-negative BigInteger.- m
the modulus.
- returns
{ @code this mod m}
- Definition Classes
- TestBigInt → BigInt
- Exceptions thrown
ArithmeticException
{ @code m} ≤ 0- See also
#remainder
-
def
modQ: BigInt
Returns this
mod
Q, i.e.Returns this
mod
Q, i.e. remainder of division by Q, where Q is an order of the cryprographic group.- Definition Classes
- TestBigInt → BigInt
- Since
2.0
-
def
multModQ(other: BigInt): BigInt
Multiply this number with
other
by module Q.Multiply this number with
other
by module Q.- Definition Classes
- TestBigInt → BigInt
- Since
2.0
-
def
multiply(that: BigInt): BigInt
Returns a BigInt whose value is
(this * that)
.Returns a BigInt whose value is
(this * that)
.- that
value to be multiplied by this BigInt.
- returns
{ @code this * that}
- Definition Classes
- TestBigInt → BigInt
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
negate(): BigInt
Returns a BigInt whose value is
(-this)
. -
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
def
or(that: BigInt): BigInt
Returns a BigInteger whose value is
(this | that)
.Returns a BigInteger whose value is
(this | that)
. (This method returns a negative BigInteger if and only if eitherthis
orthat
is negative.)
- that
value to be OR'ed with this BigInteger.
- returns
this | that
- Definition Classes
- TestBigInt → BigInt
-
def
plusModQ(other: BigInt): BigInt
Adds this number with
other
by module Q.Adds this number with
other
by module Q.- Definition Classes
- TestBigInt → BigInt
- Since
2.0
-
def
remainder(that: BigInt): BigInt
Returns a BigInt whose value is
(this % that)
.Returns a BigInt whose value is
(this % that)
.- that
value by which this BigInt is to be divided, and the remainder computed.
- returns
{ @code this % that}
- Definition Classes
- TestBigInt → BigInt
- Exceptions thrown
ArithmeticException
if { @code that} is zero.
-
def
signum: Int
Returns the signum function of this BigInt.
Returns the signum function of this BigInt.
- returns
-1, 0 or 1 as the value of this BigInt is negative, zero or positive.
- Definition Classes
- TestBigInt → BigInt
-
def
subtract(that: BigInt): BigInt
Returns a BigInt whose value is
(this - that)
.Returns a BigInt whose value is
(this - that)
.- that
value to be subtracted from this BigInt.
- returns
{ @code this - that}
- Definition Classes
- TestBigInt → BigInt
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toAbs: BigInt
Absolute value of this numeric value.
Absolute value of this numeric value.
- Definition Classes
- TestBigInt → BigInt
- Since
2.0
-
def
toBits: Coll[Boolean]
Returns a big-endian representation of this BigInt in a collection of Booleans.
Returns a big-endian representation of this BigInt in a collection of Booleans. Each boolean corresponds to one bit of the representation.
- Definition Classes
- TestBigInt → BigInt
- Since
2.0
-
def
toByte: Byte
Convert this BigInt value to Byte.
Convert this BigInt value to Byte.
- Definition Classes
- TestBigInt → BigInt
- Exceptions thrown
ArithmeticException
if overflow happens.
-
def
toBytes: Coll[Byte]
Returns a big-endian representation of this BigInt in a collection of bytes.
Returns a big-endian representation of this BigInt in a collection of bytes. For example, the value
0x1213141516171819
would yield the byte array{0x12, 0x13, 0x14, 0x15, 0x16, 0x17, 0x18, 0x19
}.- Definition Classes
- TestBigInt → BigInt
- Since
2.0
-
def
toInt: Int
Convert this BigInt value to Int.
Convert this BigInt value to Int.
- Definition Classes
- TestBigInt → BigInt
- Exceptions thrown
ArithmeticException
if overflow happens.
-
def
toLong: Long
Convert this BigInt value to Int.
Convert this BigInt value to Int.
- Definition Classes
- TestBigInt → BigInt
- Exceptions thrown
ArithmeticException
if overflow happens.
-
def
toShort: Short
Convert this BigInt value to Short.
Convert this BigInt value to Short.
- Definition Classes
- TestBigInt → BigInt
- Exceptions thrown
ArithmeticException
if overflow happens.
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
val
wrappedValue: BigInteger
The data value wrapped by this wrapper.
- def |(that: BigInt): BigInt