abstract class BaseUInt32Value<T : UInt32Value<T>!> : UInt32Value<T> (source)
Base class for UInt32Value.
This class is abstract as it is not meant to be used directly, but it has no abstract methods. As mentioned in UInt32Value, this is used to create strongly-typed type aliases of UInt32. In other words, this allow to "tag" numbers with the unit of what they represent for the type-system, which can help clarity, but also forbid mixing numbers that are mean to be of different units (the strongly-typed part).
This class implements UInt32Value, but also adds a few operations that take a UInt32 directly, for instance #multiply(UInt32). The rational is that multiplying a given quantity of something by a "raw" number is always meaningful, and return a new quantity of the same thing.
<init> |
BaseUInt32Value(value: UInt32!, ctor: Function<UInt32!, T>!)BaseUInt32Value(value: Int, ctor: Function<UInt32!, T>!)BaseUInt32Value(value: BigInteger!, ctor: Function<UInt32!, T>!) |
add |
open fun add(value: T): Topen fun add(value: Int): T
Returns a value that is open fun add(value: UInt32!): T |
addMod |
open fun addMod(value: T, modulus: UInt32!): Topen fun addMod(value: Long, modulus: UInt32!): Topen fun addMod(value: Long, modulus: Long): T
Returns a value equivalent to open fun addMod(value: UInt32!, modulus: UInt32!): T |
compareTo |
open fun compareTo(other: T): Int
Compare two open fun compareTo(other: UInt32!): Int |
copy |
Return a copy of this value, or itself if immutable. open fun copy(): T |
divide |
open fun divide(value: T): Topen fun divide(value: Int): T
Returns a value that is open fun divide(value: UInt32!): T |
equals |
open fun equals(other: Any?): Boolean |
hashCode |
open fun hashCode(): Int |
mod |
open fun mod(modulus: UInt32!): Topen fun mod(modulus: Int): T |
multiply |
open fun multiply(value: T): Topen fun multiply(value: Int): T
Returns a value that is open fun multiply(value: UInt32!): T |
multiplyMod |
open fun multiplyMod(value: T, modulus: UInt32!): Topen fun multiplyMod(value: Int, modulus: UInt32!): Topen fun multiplyMod(value: Int, modulus: Int): T
Returns a value that is open fun multiplyMod(value: UInt32!, modulus: UInt32!): T |
pow |
open fun pow(exponent: UInt32!): Topen fun pow(exponent: Long): T |
subtract |
open fun subtract(value: T): Topen fun subtract(value: Int): T
Returns a value that is open fun subtract(value: UInt32!): T |
toBytes |
open fun toBytes(): Bytes! |
toMinimalBytes |
open fun toMinimalBytes(): Bytes! |
toString |
open fun toString(): String |
toUInt32 |
open fun toUInt32(): UInt32! |
zero |
Return the zero value for this type. open fun zero(): T |