tuweni / org.apache.tuweni.units.bigints / UInt384

UInt384

class UInt384 : UInt384Value<UInt384!> (source)

An unsigned 384-bit precision number. This is a raw UInt384Value - a 384-bit precision unsigned number of no particular unit.

Properties

MAX_VALUE

The maximum value of a UInt384

static val MAX_VALUE: UInt384!

MIN_VALUE

The minimum value of a UInt384

static val MIN_VALUE: UInt384!

ONE

The value 1

static val ONE: UInt384!

ZERO

The value 0

static val ZERO: UInt384!

Functions

add

fun add(value: UInt384!): UInt384!
fun add(value: Long): UInt384!

addMod

fun addMod(value: UInt384!, modulus: UInt384!): UInt384!
fun addMod(value: Long, modulus: UInt384!): UInt384!
fun addMod(value: Long, modulus: Long): UInt384!

and

Return a bit-wise AND of this value and the supplied value.

fun and(value: UInt384!): UInt384!

Return a bit-wise AND of this value and the supplied bytes.

fun and(bytes: Bytes48!): UInt384!

bitLength

fun bitLength(): Int

compareTo

fun compareTo(other: UInt384!): Int

divide

fun divide(value: UInt384!): UInt384!
fun divide(value: Long): UInt384!

equals

fun equals(other: Any?): Boolean

fitsInt

fun fitsInt(): Boolean

fitsLong

fun fitsLong(): Boolean

fromBytes

Return a UInt384 containing the value described by the specified bytes.

static fun fromBytes(bytes: Bytes!): UInt384!

fromHexString

Parse a hexadecimal string into a UInt384.

static fun fromHexString(str: String!): UInt384!

hashCode

fun hashCode(): Int

intValue

fun intValue(): Int

isZero

fun isZero(): Boolean

mod

fun mod(modulus: UInt384!): UInt384!
fun mod(modulus: Long): UInt384!

multiply

fun multiply(value: UInt384!): UInt384!
fun multiply(value: Long): UInt384!

multiplyMod

fun multiplyMod(value: UInt384!, modulus: UInt384!): UInt384!
fun multiplyMod(value: Long, modulus: UInt384!): UInt384!
fun multiplyMod(value: Long, modulus: Long): UInt384!

not

Return a bit-wise NOT of this value.

fun not(): UInt384!

numberOfLeadingZeros

fun numberOfLeadingZeros(): Int

or

Return a bit-wise OR of this value and the supplied value.

fun or(value: UInt384!): UInt384!

Return a bit-wise OR of this value and the supplied bytes.

fun or(bytes: Bytes48!): UInt384!

pow

fun pow(exponent: UInt384!): UInt384!
fun pow(exponent: Long): UInt384!

shiftLeft

Shift all bits in this value to the left.

fun shiftLeft(distance: Int): UInt384!

shiftRight

Shift all bits in this value to the right.

fun shiftRight(distance: Int): UInt384!

subtract

fun subtract(value: UInt384!): UInt384!
fun subtract(value: Long): UInt384!

toBigInteger

fun toBigInteger(): BigInteger!

toBytes

fun toBytes(): Bytes48!

toLong

fun toLong(): Long

toMinimalBytes

fun toMinimalBytes(): Bytes!

toString

fun toString(): String

toUInt384

fun toUInt384(): UInt384!

valueOf

Return a UInt384 containing the specified value.

static fun valueOf(value: Long): UInt384!

Return a UInt384 containing the specified value.

static fun valueOf(value: BigInteger!): UInt384!

xor

Return a bit-wise XOR of this value and the supplied value.

fun xor(value: UInt384!): UInt384!

Return a bit-wise XOR of this value and the supplied bytes.

fun xor(bytes: Bytes48!): UInt384!