VarHandle.GetAndBitwiseXor(Object[]) 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.
Atomically sets the value of a variable to the result of bitwise XOR between the variable's current value and the mask with the memory semantics of setVolatile(java.lang.Object...) and returns the variable's previous value, as accessed with the memory semantics of getVolatile(java.lang.Object...).
[Android.Runtime.Register("getAndBitwiseXor", "([Ljava/lang/Object;)Ljava/lang/Object;", "", ApiSince=33)]
public Java.Lang.Object? GetAndBitwiseXor(params Java.Lang.Object[]? args);
[<Android.Runtime.Register("getAndBitwiseXor", "([Ljava/lang/Object;)Ljava/lang/Object;", "", ApiSince=33)>]
member this.GetAndBitwiseXor : Java.Lang.Object[] -> Java.Lang.Object
Parameters
- args
- Object[]
the signature-polymorphic parameter list of the form (CT1 ct1,..., CTn ctn, T mask), statically represented using varargs.
Returns
the signature-polymorphic result that is the previous value of the variable, statically represented using Object.
- Attributes
Remarks
Atomically sets the value of a variable to the result of bitwise XOR between the variable's current value and the mask with the memory semantics of setVolatile(java.lang.Object...) and returns the variable's previous value, as accessed with the memory semantics of getVolatile(java.lang.Object...). If the variable type is the non-integral boolean type then a logical XOR is performed instead of a bitwise XOR. The method signature is of the form (CT1 ct1,..., CTn ctn, T mask)T. The symbolic type descriptor at the call site of getAndBitwiseXor must match the access mode type that is the result of calling accessModeType(VarHandle.AccessMode.GET_AND_BITWISE_XOR) on this VarHandle.
Java reference for java.lang.invoke.VarHandle.getAndBitwiseXor.