name
name: (OverlayPriority) -> stringThe constant's name as declared.
OverlayPriority.valueOf(…)
OverlayPriority.LOW
OverlayPriority.NONE| 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(OverlayPriority) | number | This ordinal less other's. |
equals(any) | boolean | Whether other is this constant. == answers the same. |
values() | {OverlayPriority} | 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) | OverlayPriority | valueOf(name): the constant named name; any other name is an error. |
| Field | Type | Description |
|---|---|---|
LOW | OverlayPriority | LOW: ordinal 0. |
NONE | OverlayPriority | NONE: ordinal 1. |
MED | OverlayPriority | MED: ordinal 2. |
HIGH | OverlayPriority | HIGH: ordinal 3. |
HIGHEST | OverlayPriority | HIGHEST: ordinal 4. |
| Method | Returns | Description |
|---|---|---|
OverlayPriorityClass.valueOf | OverlayPriority | valueOf(name): the constant named name; any other name is an error. |
OverlayPriorityClass.values | {OverlayPriority} | 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: (OverlayPriority) -> stringThe constant's name as declared.
ordinalordinal: (OverlayPriority) -> numberThe constant's 0-based position in values().
toStringtoString: (OverlayPriority) -> stringname(); tostring(c) answers the same.
compareTocompareTo: (OverlayPriority, OverlayPriority) -> numberThis ordinal less other's.
equalsequals: (OverlayPriority, any) -> booleanWhether other is this constant. == answers the same.
valuesvalues: () -> {OverlayPriority}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) -> OverlayPriorityvalueOf(name): the constant named name; any other name is an error.