orbit-shared / orbit.shared.addressable / Key

Key

sealed class Key

A key that represents an identity.

Types

Int32Key

A key that uses an int32 identity.

data class Int32Key : Key

Int64Key

A key that uses an int64 identity.

data class Int64Key : Key

NoKey

A key that represents no value.

object NoKey : Key

StringKey

A key that uses a string identity.

data class StringKey : Key

Companion Object Functions

none

A key with type NoKey.

fun none(): Key

of

Creates a key from a given value.

fun of(value: Any): Key