Modifiable

interface Modifiable

Represents an object whose state can be marked as modified.

This interface is commonly used by events or data carriers that wish to indicate that some handler has altered their contents. Systems receiving the event may use this flag to perform conditional logic—such as updating caches or propagating changes only when necessary.

A default implementation is provided through the companion object's invoke operator.

Inheritors

Types

Link copied to clipboard
object Companion

Factory for creating the default Modifiable implementation.

Properties

Link copied to clipboard
abstract val modified: Boolean

Indicates whether this object has been marked as modified.

Functions

Link copied to clipboard
abstract fun markModified()

Marks this object as modified.