Class LazyField

  • All Implemented Interfaces:
    kotlin.properties.ReadOnlyProperty

    
    public final class LazyField<T extends Object>
     implements ReadOnlyProperty<T, Field>
                        

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

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      Field getValue(T thisRef, KProperty<?> property)
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • LazyField

        LazyField(Class<?> clazz, String fieldName)
        Parameters:
        clazz - The class that the field belongs to.
        fieldName - The name of the field.