Docsy / docs

KOTLIN · DOKKA

Kotlin · Dokka

Real Dokka HTML output from the checked-in kotlin fixture source. Generated artifacts, commands, versions, and SHA-256 hashes are recorded under sources/native. This is a teaching library, not a published SDK.

8 symbols4 categorieskotlin

Functions

function

greet

Greet a reader.

Parameters

nameString

Reader name.

Returns

String
function

greetChecked

Reject an empty reader name.

Errors

IllegalArgumentException

When name is empty.

Parameters

nameString

Reader name.

Returns

String
function

greetMany

Greet several readers in order.

Parameters

namesList<String>

Reader names.

separatorStringoptional

Separator between greetings.

Returns

String
function

valueOf

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.)

Errors

kotlin.IllegalArgumentException

if this enum type has no constant with the specified name

Parameters

valueString

Returns

Mood
function

values

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

Returns

Array<Mood>

Classes

class

Greeter

Build personalized greetings without network access.

Properties

property

prefix

Greeting prefix used for future calls.

Enums

enum

Mood

Supported greeting moods.

Values

FriendlyFormal
—