StaticPropertyGetter

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.

Parameters

T

the type of the target object (not used)

V

the type of the property value

Constructors

Link copied to clipboard
constructor(value: V)

Properties

Link copied to clipboard
val value: V

the static value to return

Functions

Link copied to clipboard
open operator override fun get(receiver: T): V

Returns the static value, ignoring the receiver.

Link copied to clipboard

Converts a property getter into a named aggregate getter.