java.io.Serializable
, Comparable<VarHandle.AccessMode>
, Constable
public static enum VarHandle.AccessMode extends Enum<VarHandle.AccessMode>
Enum.EnumDesc<E extends Enum<E>>
Enum Constant | Description |
---|---|
COMPARE_AND_EXCHANGE |
The access mode whose access is specified by the corresponding
method
VarHandle.compareAndExchange |
COMPARE_AND_EXCHANGE_ACQUIRE |
The access mode whose access is specified by the corresponding
method
VarHandle.compareAndExchangeAcquire |
COMPARE_AND_EXCHANGE_RELEASE |
The access mode whose access is specified by the corresponding
method
VarHandle.compareAndExchangeRelease |
COMPARE_AND_SET |
The access mode whose access is specified by the corresponding
method
VarHandle.compareAndSet |
GET |
The access mode whose access is specified by the corresponding
method
VarHandle.get |
GET_ACQUIRE |
The access mode whose access is specified by the corresponding
method
VarHandle.getAcquire |
GET_AND_ADD |
The access mode whose access is specified by the corresponding
method
VarHandle.getAndAdd |
GET_AND_ADD_ACQUIRE |
The access mode whose access is specified by the corresponding
method
VarHandle.getAndAddAcquire |
GET_AND_ADD_RELEASE |
The access mode whose access is specified by the corresponding
method
VarHandle.getAndAddRelease |
GET_AND_BITWISE_AND |
The access mode whose access is specified by the corresponding
method
VarHandle.getAndBitwiseAnd |
GET_AND_BITWISE_AND_ACQUIRE |
The access mode whose access is specified by the corresponding
method
VarHandle.getAndBitwiseAndAcquire |
GET_AND_BITWISE_AND_RELEASE |
The access mode whose access is specified by the corresponding
method
VarHandle.getAndBitwiseAndRelease |
GET_AND_BITWISE_OR |
The access mode whose access is specified by the corresponding
method
VarHandle.getAndBitwiseOr |
GET_AND_BITWISE_OR_ACQUIRE |
The access mode whose access is specified by the corresponding
method
VarHandle.getAndBitwiseOrAcquire |
GET_AND_BITWISE_OR_RELEASE |
The access mode whose access is specified by the corresponding
method
VarHandle.getAndBitwiseOrRelease |
GET_AND_BITWISE_XOR |
The access mode whose access is specified by the corresponding
method
VarHandle.getAndBitwiseXor |
GET_AND_BITWISE_XOR_ACQUIRE |
The access mode whose access is specified by the corresponding
method
VarHandle.getAndBitwiseXorAcquire |
GET_AND_BITWISE_XOR_RELEASE |
The access mode whose access is specified by the corresponding
method
VarHandle.getAndBitwiseXorRelease |
GET_AND_SET |
The access mode whose access is specified by the corresponding
method
VarHandle.getAndSet |
GET_AND_SET_ACQUIRE |
The access mode whose access is specified by the corresponding
method
VarHandle.getAndSetAcquire |
GET_AND_SET_RELEASE |
The access mode whose access is specified by the corresponding
method
VarHandle.getAndSetRelease |
GET_OPAQUE |
The access mode whose access is specified by the corresponding
method
VarHandle.getOpaque |
GET_VOLATILE |
The access mode whose access is specified by the corresponding
method
VarHandle.getVolatile |
SET |
The access mode whose access is specified by the corresponding
method
VarHandle.set |
SET_OPAQUE |
The access mode whose access is specified by the corresponding
method
VarHandle.setOpaque |
SET_RELEASE |
The access mode whose access is specified by the corresponding
method
VarHandle.setRelease |
SET_VOLATILE |
The access mode whose access is specified by the corresponding
method
VarHandle.setVolatile |
WEAK_COMPARE_AND_SET |
The access mode whose access is specified by the corresponding
method
VarHandle.weakCompareAndSet |
WEAK_COMPARE_AND_SET_ACQUIRE |
The access mode whose access is specified by the corresponding
method
VarHandle.weakCompareAndSetAcquire |
WEAK_COMPARE_AND_SET_PLAIN |
The access mode whose access is specified by the corresponding
method
VarHandle.weakCompareAndSetPlain |
WEAK_COMPARE_AND_SET_RELEASE |
The access mode whose access is specified by the corresponding
method
VarHandle.weakCompareAndSetRelease |
Modifier and Type | Method | Description |
---|---|---|
String |
methodName() |
Returns the
VarHandle signature-polymorphic method name
associated with this AccessMode value. |
static VarHandle.AccessMode |
valueFromMethodName(String methodName) |
Returns the
AccessMode value associated with the specified
VarHandle signature-polymorphic method name. |
static VarHandle.AccessMode |
valueOf(String name) |
Returns the enum constant of this type with the specified name.
|
static VarHandle.AccessMode[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final VarHandle.AccessMode GET
VarHandle.get
public static final VarHandle.AccessMode SET
VarHandle.set
public static final VarHandle.AccessMode GET_VOLATILE
VarHandle.getVolatile
public static final VarHandle.AccessMode SET_VOLATILE
VarHandle.setVolatile
public static final VarHandle.AccessMode GET_ACQUIRE
VarHandle.getAcquire
public static final VarHandle.AccessMode SET_RELEASE
VarHandle.setRelease
public static final VarHandle.AccessMode GET_OPAQUE
VarHandle.getOpaque
public static final VarHandle.AccessMode SET_OPAQUE
VarHandle.setOpaque
public static final VarHandle.AccessMode COMPARE_AND_SET
VarHandle.compareAndSet
public static final VarHandle.AccessMode COMPARE_AND_EXCHANGE
VarHandle.compareAndExchange
public static final VarHandle.AccessMode COMPARE_AND_EXCHANGE_ACQUIRE
VarHandle.compareAndExchangeAcquire
public static final VarHandle.AccessMode COMPARE_AND_EXCHANGE_RELEASE
VarHandle.compareAndExchangeRelease
public static final VarHandle.AccessMode WEAK_COMPARE_AND_SET_PLAIN
VarHandle.weakCompareAndSetPlain
public static final VarHandle.AccessMode WEAK_COMPARE_AND_SET
VarHandle.weakCompareAndSet
public static final VarHandle.AccessMode WEAK_COMPARE_AND_SET_ACQUIRE
VarHandle.weakCompareAndSetAcquire
public static final VarHandle.AccessMode WEAK_COMPARE_AND_SET_RELEASE
VarHandle.weakCompareAndSetRelease
public static final VarHandle.AccessMode GET_AND_SET
VarHandle.getAndSet
public static final VarHandle.AccessMode GET_AND_SET_ACQUIRE
VarHandle.getAndSetAcquire
public static final VarHandle.AccessMode GET_AND_SET_RELEASE
VarHandle.getAndSetRelease
public static final VarHandle.AccessMode GET_AND_ADD
VarHandle.getAndAdd
public static final VarHandle.AccessMode GET_AND_ADD_ACQUIRE
VarHandle.getAndAddAcquire
public static final VarHandle.AccessMode GET_AND_ADD_RELEASE
VarHandle.getAndAddRelease
public static final VarHandle.AccessMode GET_AND_BITWISE_OR
VarHandle.getAndBitwiseOr
public static final VarHandle.AccessMode GET_AND_BITWISE_OR_RELEASE
VarHandle.getAndBitwiseOrRelease
public static final VarHandle.AccessMode GET_AND_BITWISE_OR_ACQUIRE
VarHandle.getAndBitwiseOrAcquire
public static final VarHandle.AccessMode GET_AND_BITWISE_AND
VarHandle.getAndBitwiseAnd
public static final VarHandle.AccessMode GET_AND_BITWISE_AND_RELEASE
VarHandle.getAndBitwiseAndRelease
public static final VarHandle.AccessMode GET_AND_BITWISE_AND_ACQUIRE
VarHandle.getAndBitwiseAndAcquire
public static final VarHandle.AccessMode GET_AND_BITWISE_XOR
VarHandle.getAndBitwiseXor
public static final VarHandle.AccessMode GET_AND_BITWISE_XOR_RELEASE
VarHandle.getAndBitwiseXorRelease
public static final VarHandle.AccessMode GET_AND_BITWISE_XOR_ACQUIRE
VarHandle.getAndBitwiseXorAcquire
public static VarHandle.AccessMode[] values()
for (VarHandle.AccessMode c : VarHandle.AccessMode.values()) System.out.println(c);
public static VarHandle.AccessMode valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic String methodName()
VarHandle
signature-polymorphic method name
associated with this AccessMode
value.valueFromMethodName(java.lang.String)
public static VarHandle.AccessMode valueFromMethodName(String methodName)
AccessMode
value associated with the specified
VarHandle
signature-polymorphic method name.methodName
- the signature-polymorphic method nameAccessMode
valueIllegalArgumentException
- if there is no AccessMode
value associated with method name (indicating the method
name does not correspond to a VarHandle
signature-polymorphic method name).methodName()