InputType

Methods
8
Fields
5

Getting one

InputType.valueOf(…)
InputType.CLIENT_CHATBOX_PANEL
InputType.CLIENT

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(InputType)numberThis ordinal less other's.
equals(any)booleanWhether other is this constant. == answers the same.
getType()numberThis constant's getType() value, listed on each constant.
values(){InputType}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)InputTypevalueOf(name): the constant named name; any other name is an error.

Fields

FieldTypeDescription
CLIENT_CHATBOX_PANELInputTypeCLIENT_CHATBOX_PANEL: ordinal 0; getType() -3. Its name() and toString() are "CLIENT_CHATBOX_PANEL", and valueOf takes that nam…
CLIENTInputTypeCLIENT: ordinal 1; getType() -2. Its name() and toString() are "CLIENT", and valueOf takes that name only.
NONEInputTypeNONE: ordinal 2; getType() 0.
PRIVATE_MESSAGEInputTypePRIVATE_MESSAGE: ordinal 3; getType() 6.

Returned by

MethodReturnsDescription
InputTypeClass.valueOfInputTypevalueOf(name): the constant named name; any other name is an error.
InputTypeClass.values{InputType}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

ordinal

ordinal: (InputType) -> number

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

equals

equals: (InputType, any) -> boolean

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

getType

getType: (InputType) -> number

This constant's getType() value, listed on each constant.

values

values: () -> {InputType}

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) -> InputType

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

Field details

CLIENT_CHATBOX_PANEL

CLIENT_CHATBOX_PANEL: InputType

CLIENT_CHATBOX_PANEL: ordinal 0; getType() -3. Its name() and toString() are "CLIENT_CHATBOX_PANEL", and valueOf takes that name only.