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

Represents an 8-bit unsigned integer.

Fields
Modifier and Type Member Description
public const MAX_VALUE
MAX_VALUE as Byte = 255
The greatest value representable by a Byte.
public const MIN_VALUE
MIN_VALUE as Byte = 0
The smallest value representable by a Byte.
Inherited Properties
propertyInherited Properties from Object: type
Constructors
Modifier and Type Member Description
public native Byte Builds the neutral Byte value (0).
public native Byte
Byte(value as Boolean)
Builds a Byte from a Boolean value (false = 0, true = 1).
public native Byte
Byte(value as Char)
Builds a Byte from a Unicode scalar value.
public native Byte
Byte(value as CodeUnit)
Builds a Byte from a UTF-16 code-unit value.
public native Byte
Byte(value as Double)
Builds a Byte from a Double value.
public native Byte
Byte(value as Float)
Builds a Byte from a Float value.
public native Byte
Byte(value as Int)
Builds a Byte from a signed 32-bit integer.
public native Byte
Byte(value as Long)
Builds a Byte from a signed 64-bit integer.
public native Byte
Byte(value as String) throws ValueException
Builds a Byte from a textual representation.
public native Byte
Byte(value as UInt)
Builds a Byte from an unsigned 32-bit integer.
public native Byte
Byte(value as ULong)
Builds a Byte from an unsigned 64-bit integer.
Methods
Modifier and Type Member Description
public native override toString
toString() as String
Converts this value to its textual representation.
public static tryParse
tryParse( readonly value as String, out result as Byte ) as Boolean
Parses text into a Byte without propagating invalid-value errors.
Inherited Methods
methodInherited Methods from Object: deepCopy, fromJson, hash, toDict, toJson, toMap, toString, toXml
Operators
Modifier and Type Member Description
public native static operator<( readonly a as Byte, readonly b as Byte ) as Boolean Tests whether a is strictly lower than b.
public native static operator<=( readonly a as Byte, readonly b as Byte ) as Boolean Tests whether a is lower than or equal to b.
public native static operator!=( readonly a as Byte, readonly b as Byte ) as Boolean Tests whether two Byte values are different.
public native static operator%( readonly a as Byte, readonly b as Byte ) as Byte Computes the remainder of one Byte value divided by another.
public native static operator%=( readonly a as Byte, readonly b as Byte ) as Void Replaces a with the remainder of a divided by b.
public native static operator*( readonly a as Byte, readonly b as Byte ) as Byte Multiplies two Byte values.
public native static operator**( readonly value as Byte, readonly power as UInt ) as Byte Raises a Byte value to a power.
public native static operator**=( readonly value as Byte, readonly power as UInt ) as Void Replaces value with value ** power.
public native static operator*=( readonly a as Byte, readonly b as Byte ) as Void Multiplies a by b in place.
public native static operator+( readonly a as Byte, readonly b as Byte ) as Byte Adds two Byte values.
public native static operator+=( readonly a as Byte, readonly b as Byte ) as Void Adds b to a in place.
public native static operator-( readonly a as Byte, readonly b as Byte ) as Byte Subtracts one Byte value from another.
public native static operator-=( readonly a as Byte, readonly b as Byte ) as Void Subtracts b from a in place.
public native static operator/( readonly a as Byte, readonly b as Byte ) as Double Divides one Byte value by another.
public native static operator//( readonly a as Byte, readonly b as Byte ) as Byte Performs integer division on two Byte values.
public native static operator//=( readonly a as Byte, readonly b as Byte ) as Void Replaces a with the integer division of a by b.
public native static operator==( readonly a as Byte, readonly b as Byte ) as Boolean Tests whether two Byte values are equal.
public native static operator>( readonly a as Byte, readonly b as Byte ) as Boolean Tests whether a is strictly greater than b.
public native static operator>=( readonly a as Byte, readonly b as Byte ) as Boolean Tests whether a is greater than or equal to b.