Package-level declarations

Types

Link copied to clipboard

Utility object for creating property accessors from various sources. Provides factory methods to convert static values, read-only properties, and mutable properties into PropertyGetter and PropertySetter implementations.

Link copied to clipboard
fun interface PropertyGetter<in T, V>

Functional interface for getting property values from objects. Provides a unified way to access properties regardless of whether they are static values, computed properties, or actual object properties.

Link copied to clipboard
fun interface PropertySetter<in T, in V>

Functional interface for setting property values on objects. Provides a unified way to modify properties using a consistent API.

Link copied to clipboard
class SimplePropertyGetter<T, V>(val property: KProperty1<T, V>) : PropertyGetter<T, V>

PropertyGetter implementation that accesses a Kotlin property reflectively. This getter uses Kotlin reflection to access property values, automatically ensuring the property is accessible for private/protected properties.

Link copied to clipboard

PropertySetter implementation that modifies a Kotlin mutable property reflectively. This setter uses Kotlin reflection to set property values, automatically ensuring the property is accessible for private/protected properties.

Link copied to clipboard
class StaticPropertyGetter<T, V>(val value: V) : PropertyGetter<T, V>

PropertyGetter implementation that always returns a static (constant) value. This getter ignores the receiver object and always returns the same pre-configured value.