| 程序包 | 说明 |
|---|---|
| org.tron.tronj.crypto.tuweniTypes |
| 限定符和类型 | 字段和说明 |
|---|---|
static UInt256 |
UInt256.MAX_VALUE
The maximum value of a UInt256
|
static UInt256 |
UInt256.MIN_VALUE
The minimum value of a UInt256
|
static UInt256 |
UInt256.ONE
The value 1
|
static UInt256 |
UInt256.ZERO
The value 0
|
| 限定符和类型 | 方法和说明 |
|---|---|
UInt256 |
UInt256.add(long value) |
UInt256 |
UInt256.add(UInt256 value) |
UInt256 |
UInt256.addMod(long value,
long modulus) |
UInt256 |
UInt256.addMod(long value,
UInt256 modulus) |
UInt256 |
UInt256.addMod(UInt256 value,
UInt256 modulus) |
UInt256 |
UInt256.and(Bytes32 bytes)
Return a bit-wise AND of this value and the supplied bytes.
|
UInt256 |
UInt256.and(UInt256 value)
Return a bit-wise AND of this value and the supplied value.
|
UInt256 |
UInt256.divide(long value) |
UInt256 |
UInt256.divide(UInt256 value) |
UInt256 |
UInt256.divideCeil(long value) |
UInt256 |
UInt256.divideCeil(UInt256 value) |
static UInt256 |
UInt256.fromBytes(Bytes bytes)
Return a
UInt256 containing the value described by the specified bytes. |
static UInt256 |
UInt256.fromHexString(String str)
Parse a hexadecimal string into a
UInt256. |
UInt256 |
UInt256.mod(long modulus) |
UInt256 |
UInt256.mod(UInt256 modulus) |
UInt256 |
UInt256.mod0(long modulus) |
UInt256 |
UInt256.mod0(UInt256 modulus) |
UInt256 |
UInt256.multiply(long value) |
UInt256 |
UInt256.multiply(UInt256 value) |
UInt256 |
UInt256.multiplyMod(long value,
long modulus) |
UInt256 |
UInt256.multiplyMod(long value,
UInt256 modulus) |
UInt256 |
UInt256.multiplyMod(UInt256 value,
UInt256 modulus) |
UInt256 |
UInt256.not()
Return a bit-wise NOT of this value.
|
UInt256 |
UInt256.or(Bytes32 bytes)
Return a bit-wise OR of this value and the supplied bytes.
|
UInt256 |
UInt256.or(UInt256 value)
Return a bit-wise OR of this value and the supplied value.
|
UInt256 |
UInt256.pow(long exponent) |
UInt256 |
UInt256.pow(UInt256 exponent) |
UInt256 |
UInt256.shiftLeft(int distance)
Shift all bits in this value to the left.
|
UInt256 |
UInt256.shiftRight(int distance)
Shift all bits in this value to the right.
|
UInt256 |
UInt256.subtract(long value) |
UInt256 |
UInt256.subtract(UInt256 value) |
UInt256 |
UInt256.toUInt256() |
UInt256 |
UInt256Value.toUInt256()
Convert this value to a
UInt256. |
static UInt256 |
UInt256.valueOf(BigInteger value)
Return a
UInt256 containing the specified value. |
static UInt256 |
UInt256.valueOf(long value)
Return a
UInt256 containing the specified value. |
UInt256 |
UInt256.xor(Bytes32 bytes)
Return a bit-wise XOR of this value and the supplied bytes.
|
UInt256 |
UInt256.xor(UInt256 value)
Return a bit-wise XOR of this value and the supplied value.
|
| 限定符和类型 | 方法和说明 |
|---|---|
UInt256 |
UInt256.add(UInt256 value) |
UInt256 |
UInt256.addMod(long value,
UInt256 modulus) |
T |
UInt256Value.addMod(long value,
UInt256 modulus)
Returns a value equivalent to
((this + value) mod modulus). |
T |
UInt256Value.addMod(T value,
UInt256 modulus)
Returns a value equivalent to
((this + value) mod modulus). |
UInt256 |
UInt256.addMod(UInt256 value,
UInt256 modulus) |
UInt256 |
UInt256.and(UInt256 value)
Return a bit-wise AND of this value and the supplied value.
|
int |
UInt256.compareTo(UInt256 other) |
UInt256 |
UInt256.divide(UInt256 value) |
UInt256 |
UInt256.divideCeil(UInt256 value) |
UInt256 |
UInt256.mod(UInt256 modulus) |
T |
UInt256Value.mod(UInt256 modulus)
Returns a value that is
(this mod modulus). |
UInt256 |
UInt256.mod0(UInt256 modulus) |
T |
UInt256Value.mod0(UInt256 modulus)
Returns a value that is
(this mod modulus), or 0 if modulus is 0. |
UInt256 |
UInt256.multiply(UInt256 value) |
UInt256 |
UInt256.multiplyMod(long value,
UInt256 modulus) |
T |
UInt256Value.multiplyMod(long value,
UInt256 modulus)
Returns a value that is
((this * value) mod modulus). |
T |
UInt256Value.multiplyMod(T value,
UInt256 modulus)
Returns a value that is
((this * value) mod modulus). |
UInt256 |
UInt256.multiplyMod(UInt256 value,
UInt256 modulus) |
UInt256 |
UInt256.or(UInt256 value)
Return a bit-wise OR of this value and the supplied value.
|
UInt256 |
UInt256.pow(UInt256 exponent) |
T |
UInt256Value.pow(UInt256 exponent)
Returns a value that is
(this<sup>exponent</sup> mod 2<sup>256</sup>)
This calculates an exponentiation over the modulus of 2^256. |
UInt256 |
UInt256.subtract(UInt256 value) |
UInt256 |
UInt256.xor(UInt256 value)
Return a bit-wise XOR of this value and the supplied value.
|
Copyright © 2021. All rights reserved.