Language

VarHandle.Get(Object[]) Method

Definition

Returns the value of a variable, with memory semantics of reading as if the variable was declared non-volatile.

[Android.Runtime.Register("get", "([Ljava/lang/Object;)Ljava/lang/Object;", "", ApiSince=33)]
public Java.Lang.Object? Get(params Java.Lang.Object[]? args);
[<Android.Runtime.Register("get", "([Ljava/lang/Object;)Ljava/lang/Object;", "", ApiSince=33)>]
member this.Get : Java.Lang.Object[] -> Java.Lang.Object

Parameters

args
Object[]

the signature-polymorphic parameter list of the form (CT1 ct1,..., CTn), statically represented using varargs.

Returns

the signature-polymorphic result that is the value of the variable, statically represented using Object.

Attributes

Remarks

Returns the value of a variable, with memory semantics of reading as if the variable was declared non-volatile. Commonly referred to as plain read access. The method signature is of the form (CT1 ct1,..., CTn ctn)T. The symbolic type descriptor at the call site of get must match the access mode type that is the result of calling accessModeType(VarHandle.AccessMode.GET) on this VarHandle. This access mode is supported by all VarHandle instances and never throws UnsupportedOperationException.

Java reference for java.lang.invoke.VarHandle.get.

Applies to