MethodHandles.FilterReturnValue(MethodHandle, MethodHandle) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
method handle which incorporates the specified return value filtering logic
- Attributes
Remarks
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.