MethodHandles.DropReturn(MethodHandle) Method

Definition

Drop the return value of the target handle (if any).

[Android.Runtime.Register("dropReturn", "(Ljava/lang/invoke/MethodHandle;)Ljava/lang/invoke/MethodHandle;", "", ApiSince=34)]
public static Java.Lang.Invoke.MethodHandle? DropReturn (Java.Lang.Invoke.MethodHandle? target);
[<Android.Runtime.Register("dropReturn", "(Ljava/lang/invoke/MethodHandle;)Ljava/lang/invoke/MethodHandle;", "", ApiSince=34)>]
static member DropReturn : Java.Lang.Invoke.MethodHandle -> Java.Lang.Invoke.MethodHandle

Parameters

target
MethodHandle

the method handle to adapt

Returns

a possibly adapted method handle

Attributes

Remarks

Drop the return value of the target handle (if any). The returned method handle will have a void return type.

Added in 16.

Java documentation for java.lang.invoke.MethodHandles.dropReturn(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