OSType

Methods
8
Fields
4

Getting one

OSType.valueOf(…)
OSType.getOSType()
OSType.Windows

Methods

MethodReturnsDescription
name()stringThe constant's name as declared.
ordinal()numberThe constant's 0-based position in values().
toString()stringname(); tostring(c) answers the same.
compareTo(OSType)numberThis ordinal less other's.
equals(any)booleanWhether other is this constant. == answers the same.
values(){OSType}Every constant in ordinal order, as a 1-based array: the same frozen array every values() call, so table.clone it before changing it.
valueOf(string)OSTypevalueOf(name): the constant named name; any other name is an error.
getOSType()OSTypeThe operating system the client runs on: Windows (the client is Windows-only).

Fields

FieldTypeDescription
WindowsOSTypeWindows: ordinal 0.
MacOSOSTypeMacOS: ordinal 1.
LinuxOSTypeLinux: ordinal 2.
OtherOSTypeOther: ordinal 3.

Returned by

MethodReturnsDescription
OSTypeClass.getOSTypeOSTypeThe operating system the client runs on: Windows (the client is Windows-only).
OSTypeClass.valueOfOSTypevalueOf(name): the constant named name; any other name is an error.
OSTypeClass.values{OSType}Every constant in ordinal order, as a 1-based array: the same frozen array every values() call, so table.clone it before changing it.

Method details

name

name: (OSType) -> string

The constant's name as declared.

ordinal

ordinal: (OSType) -> number

The constant's 0-based position in values().

toString

toString: (OSType) -> string

name(); tostring(c) answers the same.

equals

equals: (OSType, any) -> boolean

Whether other is this constant. == answers the same.

values

values: () -> {OSType}

Every constant in ordinal order, as a 1-based array: the same frozen array every values() call, so table.clone it before changing it.

valueOf

valueOf: (string) -> OSType

valueOf(name): the constant named name; any other name is an error.

getOSType

getOSType: () -> OSType

The operating system the client runs on: Windows (the client is Windows-only).