Short
classin packageklyn
public class Short extends AbstractSignedInt implements ValueType:
All Implemented Interfaces: ValueType

Represents a 16-bit signed integer.

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