The field must be part of the code created for this functional interface, as there is no way to pass the field in during invocation.
This interface is almost identical to java.
save the exceptions thrown, which is the reason for its existence.
| Modifier and Type | Method and Description |
|---|---|
| public R | Returns: The value of the field from the given objectThe object from which the value of the field should be
retrieved object)Invoke the code to retrieve a value from a field. |
| invoke | back to summary |
|---|---|
| public R invoke(T object) throws IllegalAccessException, InvocationTargetException Invoke the code to retrieve a value from a field.
| |