name
name: (FormatStyle) -> stringThe constant's name as declared.
FormatStyle.valueOf(…)
FormatStyle.FULL
FormatStyle.LONG| Method | Returns | Description |
|---|---|---|
name() | string | The constant's name as declared. |
ordinal() | number | The constant's 0-based position in values(). |
toString() | string | The constant's printed name; tostring(c) answers the same. |
compareTo(FormatStyle) | number | This ordinal less other's. |
equals(any) | boolean | Whether other is this constant. == answers the same. |
values() | {FormatStyle} | Every constant in ordinal order, as a new 1-based array. |
valueOf(string) | FormatStyle | The constant named name; any other name is an error. |
| Field | Type | Description |
|---|---|---|
FULL | FormatStyle | FormatStyle.FULL. |
LONG | FormatStyle | FormatStyle.LONG. |
MEDIUM | FormatStyle | FormatStyle.MEDIUM. |
SHORT | FormatStyle | FormatStyle.SHORT. |
| Method | Returns | Description |
|---|---|---|
FormatStyleClass.valueOf | FormatStyle | The constant named name; any other name is an error. |
FormatStyleClass.values | {FormatStyle} | Every constant in ordinal order, as a new 1-based array. |
namename: (FormatStyle) -> stringThe constant's name as declared.
ordinalordinal: (FormatStyle) -> numberThe constant's 0-based position in values().
toStringtoString: (FormatStyle) -> stringThe constant's printed name; tostring(c) answers the same.
compareTocompareTo: (FormatStyle, FormatStyle) -> numberThis ordinal less other's.
equalsequals: (FormatStyle, any) -> booleanWhether other is this constant. == answers the same.
valuesvalues: () -> {FormatStyle}Every constant in ordinal order, as a new 1-based array.
valueOfvalueOf: (string) -> FormatStyleThe constant named name; any other name is an error.