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

Represents a 64-bit signed integer.

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