Added in API level 33

AccessMode

class AccessMode
kotlin.Any
   ↳ kotlin.Enum<java.lang.invoke.VarHandle.AccessMode>
   ↳ java.lang.invoke.VarHandle.AccessMode

The set of access modes that specify how a variable, referenced by a VarHandle, is accessed.

Summary

Enum values

The access mode whose access is specified by the corresponding method VarHandle.compareAndExchange

The access mode whose access is specified by the corresponding method VarHandle.compareAndExchangeAcquire

The access mode whose access is specified by the corresponding method VarHandle.compareAndExchangeRelease

The access mode whose access is specified by the corresponding method VarHandle.compareAndSet

The access mode whose access is specified by the corresponding method VarHandle.get

The access mode whose access is specified by the corresponding method VarHandle.getAcquire

The access mode whose access is specified by the corresponding method VarHandle.getAndAdd

The access mode whose access is specified by the corresponding method VarHandle.getAndAddAcquire

The access mode whose access is specified by the corresponding method VarHandle.getAndAddRelease

The access mode whose access is specified by the corresponding method VarHandle.getAndBitwiseAnd

The access mode whose access is specified by the corresponding method VarHandle.getAndBitwiseAndAcquire

The access mode whose access is specified by the corresponding method VarHandle.getAndBitwiseAndRelease

The access mode whose access is specified by the corresponding method VarHandle.getAndBitwiseOr

The access mode whose access is specified by the corresponding method VarHandle.getAndBitwiseOrAcquire

The access mode whose access is specified by the corresponding method VarHandle.getAndBitwiseOrRelease

The access mode whose access is specified by the corresponding method VarHandle.getAndBitwiseXor

The access mode whose access is specified by the corresponding method VarHandle.getAndBitwiseXorAcquire

The access mode whose access is specified by the corresponding method VarHandle.getAndBitwiseXorRelease

The access mode whose access is specified by the corresponding method VarHandle.getAndSet

The access mode whose access is specified by the corresponding method VarHandle.getAndSetAcquire

The access mode whose access is specified by the corresponding method VarHandle.getAndSetRelease

The access mode whose access is specified by the corresponding method VarHandle.getOpaque

The access mode whose access is specified by the corresponding method VarHandle.getVolatile

The access mode whose access is specified by the corresponding method VarHandle.set

The access mode whose access is specified by the corresponding method VarHandle.setOpaque

The access mode whose access is specified by the corresponding method VarHandle.setRelease

The access mode whose access is specified by the corresponding method VarHandle.setVolatile

The access mode whose access is specified by the corresponding method VarHandle.weakCompareAndSet

The access mode whose access is specified by the corresponding method VarHandle.weakCompareAndSetAcquire

The access mode whose access is specified by the corresponding method VarHandle.weakCompareAndSetPlain

The access mode whose access is specified by the corresponding method VarHandle.weakCompareAndSetRelease

Public methods
String!

Returns the VarHandle signature-polymorphic method name associated with this AccessMode value.

static VarHandle.AccessMode!

Returns the AccessMode value associated with the specified VarHandle signature-polymorphic method name.

Enum values

COMPARE_AND_EXCHANGE

Added in API level 33
enum val COMPARE_AND_EXCHANGE : VarHandle.AccessMode

The access mode whose access is specified by the corresponding method VarHandle.compareAndExchange

COMPARE_AND_EXCHANGE_ACQUIRE

Added in API level 33
enum val COMPARE_AND_EXCHANGE_ACQUIRE : VarHandle.AccessMode

The access mode whose access is specified by the corresponding method VarHandle.compareAndExchangeAcquire

COMPARE_AND_EXCHANGE_RELEASE

Added in API level 33
enum val COMPARE_AND_EXCHANGE_RELEASE : VarHandle.AccessMode

The access mode whose access is specified by the corresponding method VarHandle.compareAndExchangeRelease

COMPARE_AND_SET

Added in API level 33
enum val COMPARE_AND_SET : VarHandle.AccessMode

The access mode whose access is specified by the corresponding method VarHandle.compareAndSet

GET

Added in API level 33
enum val GET : VarHandle.AccessMode

The access mode whose access is specified by the corresponding method VarHandle.get

GET_ACQUIRE

Added in API level 33
enum val GET_ACQUIRE : VarHandle.AccessMode

The access mode whose access is specified by the corresponding method VarHandle.getAcquire

GET_AND_ADD

Added in API level 33
enum val GET_AND_ADD : VarHandle.AccessMode

The access mode whose access is specified by the corresponding method VarHandle.getAndAdd

GET_AND_ADD_ACQUIRE

Added in API level 33
enum val GET_AND_ADD_ACQUIRE : VarHandle.AccessMode

The access mode whose access is specified by the corresponding method VarHandle.getAndAddAcquire

GET_AND_ADD_RELEASE

Added in API level 33
enum val GET_AND_ADD_RELEASE : VarHandle.AccessMode

The access mode whose access is specified by the corresponding method VarHandle.getAndAddRelease

GET_AND_BITWISE_AND

Added in API level 33
enum val GET_AND_BITWISE_AND : VarHandle.AccessMode

The access mode whose access is specified by the corresponding method VarHandle.getAndBitwiseAnd

GET_AND_BITWISE_AND_ACQUIRE

Added in API level 33
enum val GET_AND_BITWISE_AND_ACQUIRE : VarHandle.AccessMode

The access mode whose access is specified by the corresponding method VarHandle.getAndBitwiseAndAcquire

GET_AND_BITWISE_AND_RELEASE

Added in API level 33
enum val GET_AND_BITWISE_AND_RELEASE : VarHandle.AccessMode

The access mode whose access is specified by the corresponding method VarHandle.getAndBitwiseAndRelease

GET_AND_BITWISE_OR

Added in API level 33
enum val GET_AND_BITWISE_OR : VarHandle.AccessMode

The access mode whose access is specified by the corresponding method VarHandle.getAndBitwiseOr

GET_AND_BITWISE_OR_ACQUIRE

Added in API level 33
enum val GET_AND_BITWISE_OR_ACQUIRE : VarHandle.AccessMode

The access mode whose access is specified by the corresponding method VarHandle.getAndBitwiseOrAcquire

GET_AND_BITWISE_OR_RELEASE

Added in API level 33
enum val GET_AND_BITWISE_OR_RELEASE : VarHandle.AccessMode

The access mode whose access is specified by the corresponding method VarHandle.getAndBitwiseOrRelease

GET_AND_BITWISE_XOR

Added in API level 33
enum val GET_AND_BITWISE_XOR : VarHandle.AccessMode

The access mode whose access is specified by the corresponding method VarHandle.getAndBitwiseXor

GET_AND_BITWISE_XOR_ACQUIRE

Added in API level 33
enum val GET_AND_BITWISE_XOR_ACQUIRE : VarHandle.AccessMode

The access mode whose access is specified by the corresponding method VarHandle.getAndBitwiseXorAcquire

GET_AND_BITWISE_XOR_RELEASE

Added in API level 33
enum val GET_AND_BITWISE_XOR_RELEASE : VarHandle.AccessMode

The access mode whose access is specified by the corresponding method VarHandle.getAndBitwiseXorRelease

GET_AND_SET

Added in API level 33
enum val GET_AND_SET : VarHandle.AccessMode

The access mode whose access is specified by the corresponding method VarHandle.getAndSet

GET_AND_SET_ACQUIRE

Added in API level 33
enum val GET_AND_SET_ACQUIRE : VarHandle.AccessMode

The access mode whose access is specified by the corresponding method VarHandle.getAndSetAcquire

GET_AND_SET_RELEASE

Added in API level 33
enum val GET_AND_SET_RELEASE : VarHandle.AccessMode

The access mode whose access is specified by the corresponding method VarHandle.getAndSetRelease

GET_OPAQUE

Added in API level 33
enum val GET_OPAQUE : VarHandle.AccessMode

The access mode whose access is specified by the corresponding method VarHandle.getOpaque

GET_VOLATILE

Added in API level 33
enum val GET_VOLATILE : VarHandle.AccessMode

The access mode whose access is specified by the corresponding method VarHandle.getVolatile

SET

Added in API level 33
enum val SET : VarHandle.AccessMode

The access mode whose access is specified by the corresponding method VarHandle.set

SET_OPAQUE

Added in API level 33
enum val SET_OPAQUE : VarHandle.AccessMode

The access mode whose access is specified by the corresponding method VarHandle.setOpaque

SET_RELEASE

Added in API level 33
enum val SET_RELEASE : VarHandle.AccessMode

The access mode whose access is specified by the corresponding method VarHandle.setRelease

SET_VOLATILE

Added in API level 33
enum val SET_VOLATILE : VarHandle.AccessMode

The access mode whose access is specified by the corresponding method VarHandle.setVolatile

WEAK_COMPARE_AND_SET

Added in API level 33
enum val WEAK_COMPARE_AND_SET : VarHandle.AccessMode

The access mode whose access is specified by the corresponding method VarHandle.weakCompareAndSet

WEAK_COMPARE_AND_SET_ACQUIRE

Added in API level 33
enum val WEAK_COMPARE_AND_SET_ACQUIRE : VarHandle.AccessMode

The access mode whose access is specified by the corresponding method VarHandle.weakCompareAndSetAcquire

WEAK_COMPARE_AND_SET_PLAIN

Added in API level 33
enum val WEAK_COMPARE_AND_SET_PLAIN : VarHandle.AccessMode

The access mode whose access is specified by the corresponding method VarHandle.weakCompareAndSetPlain

WEAK_COMPARE_AND_SET_RELEASE

Added in API level 33
enum val WEAK_COMPARE_AND_SET_RELEASE : VarHandle.AccessMode

The access mode whose access is specified by the corresponding method VarHandle.weakCompareAndSetRelease

Public methods

methodName

Added in API level 33
fun methodName(): String!

Returns the VarHandle signature-polymorphic method name associated with this AccessMode value.

Return
String! the signature-polymorphic method name

valueFromMethodName

Added in API level 33
static fun valueFromMethodName(methodName: String!): VarHandle.AccessMode!

Returns the AccessMode value associated with the specified VarHandle signature-polymorphic method name.

Parameters
methodName String!: the signature-polymorphic method name
Return
VarHandle.AccessMode! the AccessMode value
Exceptions
java.lang.IllegalArgumentException if there is no AccessMode value associated with method name (indicating the method name does not correspond to a VarHandle signature-polymorphic method name).

See Also