Identifier

interface Identifier

Represents an identifiable entity with a unique identifier.

This interface provides a contract for objects that need to be uniquely identifiable within a system. Implementing classes must provide a string-based identifier that can be used for equality checks, database operations, caching, and other scenarios requiring unique entity references.

The identifier should be immutable and unique across all instances of the same type. Common implementations include UUIDs, database primary keys, or domain-specific identifiers.

Samples

Inheritors

Properties

Link copied to clipboard
abstract val id: String

Represents a unique identifier for the implementing entity.