UShort
class in package klyn

    public class UShort extends AbstractUnsignedInt implements ValueType:

Object
└ AbstractNumber
└ AbstractInt
└ AbstractUnsignedInt
└ UShort
All Implemented Interfaces: ValueType

Represents a 16-bit unsigned integer.

Fields

Modifier and Type | Member | Description
--- | --- | ---
public static const | MAX_VALUE `MAX_VALUE as UShort = 65_535` | The greatest value representable by an UShort.
public static const | MIN_VALUE `MIN_VALUE as UShort = 0` | The smallest value representable by an UShort.

Properties inherited from Object: type
Constructors

Modifier and Type | Member | Description
--- | --- | ---
public native | UShort `UShort()` | Builds the neutral UShort value (`0`).
public native | UShort `UShort(value: Boolean)` | Builds a UShort from a Boolean value (`false` = 0, `true` = 1).
public native | UShort `UShort(value: Char)` | Builds a UShort from a character code point.
public native | UShort `UShort(value: Double)` | Builds a UShort from a Double value.
public native | UShort `UShort(value: Float)` | Builds a UShort from a Float value.
public native | UShort `UShort(value: Int)` | Builds a UShort from a signed 32-bit integer.
public native | UShort `UShort(value: Long)` | Builds a UShort from a signed 64-bit integer.
public native | UShort `UShort(value: String) throws BadValueException` | Builds a UShort from a textual representation.
public native | UShort `UShort(value: UInt)` | Builds a UShort from an unsigned 32-bit integer.
public native | UShort `UShort(value: ULong)` | Builds a UShort from an unsigned 64-bit integer.

Methods

Modifier and Type | Member | Description
--- | --- | ---
public static | parse `parse( readonly value as String ) as UShort throws BadValueException:` | Parses an UShort value from text.
public override | toString `toString() as String:` | Converts this value to its textual representation.
public static | tryParse `tryParse( readonly value as String, out result as UShort ) as Boolean:` | Parses an UShort value from text.

Methods inherited from Object: fromJson, toDict, toJson, toString, toXml
Operators

Modifier and Type | Member | Description
--- | --- | ---
public native static | operator!=( readonly a as UShort, readonly b as UShort ) as Boolean | Tests whether two UShort values are different.
public native static | operator%( readonly a as UShort, readonly b as UShort ) as UShort | Computes the remainder of one UShort value divided by another.
public native static | operator%=( readonly a as UShort, readonly b as UShort ) as Void | Replaces `a` with the remainder of `a` divided by `b`.
public native static | operator*( readonly a as UShort, readonly b as UShort ) as UShort | Multiplies two UShort values.
public native static | operator**( readonly value as UShort, readonly power as UInt ) as UShort | Raises a UShort value to a power.
public native static | operator**=( readonly value as UShort, readonly power as UInt ) as Void | Replaces `value` with `value ** power`.
public native static | operator*=( readonly a as UShort, readonly b as UShort ) as Void | Multiplies `a` by `b` in place.
public native static | operator+( readonly a as UShort, readonly b as UShort ) as UShort | Adds two UShort values.
public native static | operator+=( readonly a as UShort, readonly b as UShort ) as Void | Adds `b` to `a` in place.
public native static | operator-( readonly a as UShort, readonly b as UShort ) as UShort | Subtracts one UShort value from another.
public native static | operator-=( readonly a as UShort, readonly b as UShort ) as Void | Subtracts `b` from `a` in place.
public native static | operator/( readonly a as UShort, readonly b as UShort ) as Double | Divides one UShort value by another.
public native static | operator//( readonly a as UShort, readonly b as UShort ) as UShort | Performs integer division on two UShort values.
public native static | operator//=( readonly a as UShort, readonly b as UShort ) as Void | Replaces `a` with the integer division of `a` by `b`.
public native static | operator<( readonly a as UShort, readonly b as UShort ) as Boolean | Tests whether `a` is strictly lower than `b`.
public native static | operator<=( readonly a as UShort, readonly b as UShort ) as Boolean | Tests whether `a` is lower than or equal to `b`.
public native static | operator==( readonly a as UShort, readonly b as UShort ) as Boolean | Tests whether two UShort values are equal.
public native static | operator>( readonly a as UShort, readonly b as UShort ) as Boolean | Tests whether `a` is strictly greater than `b`.
public native static | operator>=( readonly a as UShort, readonly b as UShort ) as Boolean | Tests whether `a` is greater than or equal to `b`.