public class Short extends AbstractSignedInt implements ValueType:
Represents a 16-bit signed integer.
| Modifier and Type | Member | Description |
|---|---|---|
| public static const | MAX_VALUEMAX_VALUE as Short = 32_767 |
The greatest value representable by a Short. |
| public static const | MIN_VALUEMIN_VALUE as Short = -32_768 |
The smallest value representable by a Short. |
| Modifier and Type | Member | Description |
|---|---|---|
| public native | ShortShort() |
Builds the neutral Short value (0). |
| public native | Short | Builds a Short from a Boolean value (false = 0, true = 1). |
| public native | Short | Builds a Short from a character code point. |
| public native | Short | Builds a Short from a Double value. |
| public native | Short | Builds a Short from a Float value. |
| public native | Short | Builds a Short from a signed 32-bit integer. |
| public native | Short | Builds a Short from a signed 64-bit integer. |
| public native | ShortShort(value: String) throws BadValueException |
Builds a Short from a textual representation. |
| public native | Short | Builds a Short from an unsigned 32-bit integer. |
| public native | Short | Builds a Short from an unsigned 64-bit integer. |
| Modifier and Type | Member | Description |
|---|---|---|
| public override | toStringtoString() as String: |
Converts this value to its textual representation. |
| public static | tryParse | Parses a Short value from text. |