LabelCase

Label cases selectable as the project-wide default (SealedClassEnumizerExtension.labelCase).

Mirrors the runtime API's LabelCase without PROJECT_DEFAULT — the project default is what this DSL defines, so a "read the project default" entry would be self-referential here. The conversion rules are documented on the runtime API's LabelCase and are frozen across releases.

Entries

Link copied to clipboard

No conversion: the label is the declared simple name.

Link copied to clipboard

FooBarFOO_BAR.

Link copied to clipboard

FooBarfoo_bar.

Link copied to clipboard

FooBarfoo-bar.

Properties

Link copied to clipboard

Returns a representation of an immutable list of all enum entries, in the order they're declared.

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
fun valueOf(value: String): LabelCase

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.