public static enum VarHandle.AccessMode extends Enum<VarHandle.AccessMode>
Enum Constant and Description |
---|
ADD_AND_GET
The access mode whose access is specified by the corresponding
method
VarHandle.addAndGet |
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_EXCHANGE_VOLATILE
The access mode whose access is specified by the corresponding
method
VarHandle.compareAndExchangeVolatile |
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_SET
The access mode whose access is specified by the corresponding
method
VarHandle.getAndSet |
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_RELEASE
The access mode whose access is specified by the corresponding
method
VarHandle.weakCompareAndSetRelease |
WEAK_COMPARE_AND_SET_VOLATILE
The access mode whose access is specified by the corresponding
method
VarHandle.weakCompareAndSetVolatile |
Modifier and Type | Method and 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 ADD_AND_GET
VarHandle.addAndGet
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 COMPARE_AND_EXCHANGE_VOLATILE
VarHandle.compareAndExchangeVolatile
public static final VarHandle.AccessMode COMPARE_AND_SET
VarHandle.compareAndSet
public static final VarHandle.AccessMode GET
VarHandle.get
public static final VarHandle.AccessMode GET_ACQUIRE
VarHandle.getAcquire
public static final VarHandle.AccessMode GET_AND_ADD
VarHandle.getAndAdd
public static final VarHandle.AccessMode GET_AND_SET
VarHandle.getAndSet
public static final VarHandle.AccessMode GET_OPAQUE
VarHandle.getOpaque
public static final VarHandle.AccessMode GET_VOLATILE
VarHandle.getVolatile
public static final VarHandle.AccessMode SET
VarHandle.set
public static final VarHandle.AccessMode SET_OPAQUE
VarHandle.setOpaque
public static final VarHandle.AccessMode SET_RELEASE
VarHandle.setRelease
public static final VarHandle.AccessMode SET_VOLATILE
VarHandle.setVolatile
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 WEAK_COMPARE_AND_SET_VOLATILE
VarHandle.weakCompareAndSetVolatile
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
valuevalueFromMethodName(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
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2016, Oracle and/or its affiliates. All rights reserved.
DRAFT 9-ea+126