tuweni / org.apache.tuweni.units.bigints / UInt32

UInt32

class UInt32 : UInt32Value<UInt32!> (source)

An unsigned 32-bit precision number.

This is a raw UInt32Value - a 32-bit precision unsigned number of no particular unit.

Properties

MAX_VALUE

The maximum value of a UInt32

static val MAX_VALUE: UInt32!

MIN_VALUE

The minimum value of a UInt32

static val MIN_VALUE: UInt32!

ONE

The value 1

static val ONE: UInt32!

ZERO

The value 0

static val ZERO: UInt32!

Functions

add

fun add(value: UInt32!): UInt32!
fun add(value: Int): UInt32!

addMod

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

and

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

fun and(value: UInt32!): UInt32!

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

fun and(bytes: Bytes!): UInt32!

bitLength

fun bitLength(): Int

compareTo

fun compareTo(other: UInt32!): Int

divide

fun divide(value: UInt32!): UInt32!
fun divide(value: Int): UInt32!

equals

fun equals(other: Any?): Boolean

fromBytes

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

static fun fromBytes(bytes: Bytes!): UInt32!
static fun fromBytes(bytes: Bytes!, byteOrder: ByteOrder!): UInt32!

fromHexString

Parse a hexadecimal string into a UInt32.

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

hashCode

fun hashCode(): Int

isZero

fun isZero(): Boolean

mod

fun mod(modulus: UInt32!): UInt32!
fun mod(modulus: Int): UInt32!

multiply

fun multiply(value: UInt32!): UInt32!
fun multiply(value: Int): UInt32!

multiplyMod

fun multiplyMod(value: UInt32!, modulus: UInt32!): UInt32!
fun multiplyMod(value: Int, modulus: UInt32!): UInt32!
fun multiplyMod(value: Int, modulus: Int): UInt32!

not

Return a bit-wise NOT of this value.

fun not(): UInt32!

numberOfLeadingZeros

fun numberOfLeadingZeros(): Int

or

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

fun or(value: UInt32!): UInt32!

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

fun or(bytes: Bytes!): UInt32!

pow

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

shiftLeft

Shift all bits in this value to the left.

fun shiftLeft(distance: Int): UInt32!

shiftRight

Shift all bits in this value to the right.

fun shiftRight(distance: Int): UInt32!

subtract

fun subtract(value: UInt32!): UInt32!
fun subtract(value: Int): UInt32!

toBigInteger

fun toBigInteger(): BigInteger!

toBytes

fun toBytes(): Bytes!

toMinimalBytes

fun toMinimalBytes(): Bytes!

toString

fun toString(): String

toUInt32

fun toUInt32(): UInt32!

valueOf

Return a UInt32 containing the specified value.

static fun valueOf(value: Int): UInt32!

Return a UInt32 containing the specified value.

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

xor

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

fun xor(value: UInt32!): UInt32!
fun xor(value: Int): UInt32!

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

fun xor(bytes: Bytes!): UInt32!