findFirstVarHandle

fun findFirstVarHandle(target: Class<*>, fieldType: Class<*>?): VarHandle?

Find and cache the first varhandle in a class with a specified field type.

Return

the varhandle if found, or null if not found

Parameters

target

the class to look up the varhandle

fieldType

the type of the field to look up