name
name: (InputType) -> stringThe constant's name as declared.
InputType.valueOf(…)
InputType.CLIENT_CHATBOX_PANEL
InputType.CLIENT| Method | Returns | Description |
|---|---|---|
name() | string | The constant's name as declared. |
ordinal() | number | The constant's 0-based position in values(). |
toString() | string | name(); tostring(c) answers the same. |
compareTo(InputType) | number | This ordinal less other's. |
equals(any) | boolean | Whether other is this constant. == answers the same. |
getType() | number | This 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) | InputType | valueOf(name): the constant named name; any other name is an error. |
| Field | Type | Description |
|---|---|---|
CLIENT_CHATBOX_PANEL | InputType | CLIENT_CHATBOX_PANEL: ordinal 0; getType() -3. Its name() and toString() are "CLIENT_CHATBOX_PANEL", and valueOf takes that nam… |
CLIENT | InputType | CLIENT: ordinal 1; getType() -2. Its name() and toString() are "CLIENT", and valueOf takes that name only. |
NONE | InputType | NONE: ordinal 2; getType() 0. |
PRIVATE_MESSAGE | InputType | PRIVATE_MESSAGE: ordinal 3; getType() 6. |
SEARCH | InputType | SEARCH: ordinal 4; getType() 11. |
| Method | Returns | Description |
|---|---|---|
InputTypeClass.valueOf | InputType | valueOf(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. |
namename: (InputType) -> stringThe constant's name as declared.
ordinalordinal: (InputType) -> numberThe constant's 0-based position in values().
toStringtoString: (InputType) -> stringname(); tostring(c) answers the same.
compareTocompareTo: (InputType, InputType) -> numberThis ordinal less other's.
equalsequals: (InputType, any) -> booleanWhether other is this constant. == answers the same.
getTypegetType: (InputType) -> numberThis constant's getType() value, listed on each constant.
valuesvalues: () -> {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.
valueOfvalueOf: (string) -> InputTypevalueOf(name): the constant named name; any other name is an error.
CLIENT_CHATBOX_PANELCLIENT_CHATBOX_PANEL: InputTypeCLIENT_CHATBOX_PANEL: ordinal 0; getType() -3. Its name() and toString() are "CLIENT_CHATBOX_PANEL", and valueOf takes that name only.