FormatStyle

Methods
7
Fields
4

Getting one

FormatStyle.valueOf(…)
FormatStyle.FULL
FormatStyle.LONG

Methods

MethodReturnsDescription
name()stringThe constant's name as declared.
ordinal()numberThe constant's 0-based position in values().
toString()stringThe constant's printed name; tostring(c) answers the same.
compareTo(FormatStyle)numberThis ordinal less other's.
equals(any)booleanWhether other is this constant. == answers the same.
values(){FormatStyle}Every constant in ordinal order, as a new 1-based array.
valueOf(string)FormatStyleThe constant named name; any other name is an error.

Fields

FieldTypeDescription
FULLFormatStyleFormatStyle.FULL.
LONGFormatStyleFormatStyle.LONG.
MEDIUMFormatStyleFormatStyle.MEDIUM.
SHORTFormatStyleFormatStyle.SHORT.

Returned by

MethodReturnsDescription
FormatStyleClass.valueOfFormatStyleThe constant named name; any other name is an error.
FormatStyleClass.values{FormatStyle}Every constant in ordinal order, as a new 1-based array.

Method details

toString

toString: (FormatStyle) -> string

The constant's printed name; tostring(c) answers the same.

equals

equals: (FormatStyle, any) -> boolean

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

values

values: () -> {FormatStyle}

Every constant in ordinal order, as a new 1-based array.

valueOf

valueOf: (string) -> FormatStyle

The constant named name; any other name is an error.