UInt
classin packageklyn
public class UInt extends AbstractUnsignedInt implements ValueType:
All Implemented Interfaces: ValueType

Represents a 32-bit unsigned integer.

@example `klyn value = UInt(42) assert value >= UInt.MIN_VALUE assert value <= UInt.MAX_VALUE

Fields
Modifier and Type Member Description
public static const MAX_VALUE
MAX_VALUE as UInt = 4_294_967_295u
The greatest value representable by an UInt.
public static const MIN_VALUE
MIN_VALUE as UInt = 0u
The smallest value representable by an UInt.
Properties inherited from Object: type
Constructors
Modifier and Type Member Description
public native UInt Builds the neutral UInt value (`0u`).
public native UInt
UInt(value: Boolean)
Builds a UInt from a Boolean value (`false` = 0, `true` = 1).
public native UInt
UInt(value: Char)
Builds a UInt from a character code point.
public native UInt
UInt(value: Double)
Builds a UInt from a Double value.
public native UInt
UInt(value: Float)
Builds a UInt from a Float value.
public native UInt
UInt(value: Int)
Builds a UInt from an Int value.
public native UInt
UInt(value: Long)
Builds a UInt from a Long value.
public native UInt Builds a UInt from a textual representation.
public native UInt
UInt(value: UInt)
Builds a UInt from a UInt value.
public native UInt
UInt(value: ULong)
Builds a UInt from an ULong value.
Methods
Modifier and Type Member Description
public native override toString
toString() as String
Converts this unsigned integer to its decimal textual representation.
Methods inherited from Object: fromJson, toDict, toJson, toString, toXml
Operators
Modifier and Type Member Description
public native static operator!=( readonly a as UInt, readonly b as UInt ) as Boolean Tests whether two UInt values are different.
public native static operator%( readonly a as UInt, readonly b as UInt ) as UInt Computes the remainder of one UInt value divided by another.
public native static operator%=( readonly a as UInt, readonly b as UInt ) as Void Replaces `a` with the remainder of `a` divided by `b`.
public native static operator*( readonly a as UInt, readonly b as UInt ) as UInt Multiplies two UInt values.
public native static operator**( readonly value as UInt, readonly power as UInt ) as UInt Raises a UInt value to a power.
public native static operator**=( readonly value as UInt, readonly power as UInt ) as Void Replaces `value` with `value ** power`.
public native static operator*=( readonly a as UInt, readonly b as UInt ) as Void Multiplies `a` by `b` in place.
public native static operator+( readonly a as UInt, readonly b as UInt ) as UInt Adds two UInt values.
public native static operator+=( readonly a as UInt, readonly b as UInt ) as Void Adds `b` to `a` in place.
public native static operator-( readonly a as UInt, readonly b as UInt ) as UInt Subtracts one UInt value from another.
public native static operator-=( readonly a as UInt, readonly b as UInt ) as Void Subtracts `b` from `a` in place.
public native static operator/( readonly a as UInt, readonly b as UInt ) as Double Divides one UInt value by another.
public native static operator//( readonly a as UInt, readonly b as UInt ) as UInt Performs integer division on two UInt values.
public native static operator//=( readonly a as UInt, readonly b as UInt ) as Void Replaces `a` with the integer division of `a` by `b`.
public native static operator<( readonly a as UInt, readonly b as UInt ) as Boolean Tests whether `a` is strictly lower than `b`.
public native static operator<=( readonly a as UInt, readonly b as UInt ) as Boolean Tests whether `a` is lower than or equal to `b`.
public native static operator==( readonly a as UInt, readonly b as UInt ) as Boolean Tests whether two UInt values are equal.
public native static operator>( readonly a as UInt, readonly b as UInt ) as Boolean Tests whether `a` is strictly greater than `b`.
public native static operator>=( readonly a as UInt, readonly b as UInt ) as Boolean Tests whether `a` is greater than or equal to `b`.