{% setvar book_path %}/reference/androidx/_book.yaml{% endsetvar %} {% include "_shared/_reference-head-tags.html" %}
public class ReflectiveField<T>
Helper class for making more performant reflection field access.
Lazy initializes and caches Method object ro attempt to reduce reflection overhead.
Public constructors |
|
|---|---|
ReflectiveField(@NonNull String className, @NonNull String fieldName)Creates a ReflectiveField. |
|
Public methods |
|
|---|---|
@NonNull T |
Retrieves the field's value, initializing if necessary. |
public ReflectiveField(@NonNull String className, @NonNull String fieldName)
Creates a ReflectiveField.