MethodHandles.FilterReturnValue(MethodHandle, MethodHandle) Method

Definition

Adapts a target method handle by post-processing its return value (if any) with a filter (another method handle).

[Android.Runtime.Register("filterReturnValue", "(Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodHandle;)Ljava/lang/invoke/MethodHandle;", "", ApiSince=26)]
public static Java.Lang.Invoke.MethodHandle? FilterReturnValue (Java.Lang.Invoke.MethodHandle? target, Java.Lang.Invoke.MethodHandle? filter);
[<Android.Runtime.Register("filterReturnValue", "(Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodHandle;)Ljava/lang/invoke/MethodHandle;", "", ApiSince=26)>]
static member FilterReturnValue : Java.Lang.Invoke.MethodHandle * Java.Lang.Invoke.MethodHandle -> Java.Lang.Invoke.MethodHandle

Parameters

target
MethodHandle

the method handle to invoke before filtering the return value

filter
MethodHandle

method handle to call on the return value

Returns

MethodHandle

method handle which incorporates the specified return value filtering logic

Attributes

Remarks

Java documentation for java.lang.invoke.MethodHandles.filterReturnValue(java.lang.invoke.MethodHandle, java.lang.invoke.MethodHandle).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to