LazyField

class LazyField<T>(clazz: Class<*>, fieldName: String?) : ReadOnlyProperty<T, Field>

A lazy field delegate designed to improve the performance in field reflection.

Parameters

clazz

The class that the field belongs to.

fieldName

The name of the field.

Constructors

Link copied to clipboard
constructor(clazz: Class<*>, fieldName: String?)

Functions

Link copied to clipboard
open operator override fun getValue(thisRef: T, property: KProperty<*>): Field