Package-level declarations

Contains the Identifiable interface.

Usage

Implement this interface in any class that requires a unique identity.

class Device(override val identifier: String) : Identifiable<String>

The Identifiable interface is particularly useful when combined with other modules, such as :log, to provide automatic context to operations (e.g., source-tagged logging).

Types

Link copied to clipboard
interface Identifiable<out ID : Any>

An interface for objects that have a unique identifier.