Serializable, Comparable<VarHandle.AccessMode>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
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_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.addAndGetpublic static final VarHandle.AccessMode COMPARE_AND_EXCHANGE
VarHandle.compareAndExchangepublic static final VarHandle.AccessMode COMPARE_AND_EXCHANGE_ACQUIRE
VarHandle.compareAndExchangeAcquirepublic static final VarHandle.AccessMode COMPARE_AND_EXCHANGE_RELEASE
VarHandle.compareAndExchangeReleasepublic static final VarHandle.AccessMode COMPARE_AND_SET
VarHandle.compareAndSetpublic static final VarHandle.AccessMode GET
VarHandle.getpublic static final VarHandle.AccessMode GET_ACQUIRE
VarHandle.getAcquirepublic static final VarHandle.AccessMode GET_AND_ADD
VarHandle.getAndAddpublic static final VarHandle.AccessMode GET_AND_SET
VarHandle.getAndSetpublic static final VarHandle.AccessMode GET_OPAQUE
VarHandle.getOpaquepublic static final VarHandle.AccessMode GET_VOLATILE
VarHandle.getVolatilepublic static final VarHandle.AccessMode SET
VarHandle.setpublic static final VarHandle.AccessMode SET_OPAQUE
VarHandle.setOpaquepublic static final VarHandle.AccessMode SET_RELEASE
VarHandle.setReleasepublic static final VarHandle.AccessMode SET_VOLATILE
VarHandle.setVolatilepublic static final VarHandle.AccessMode WEAK_COMPARE_AND_SET
VarHandle.weakCompareAndSetpublic static final VarHandle.AccessMode WEAK_COMPARE_AND_SET_ACQUIRE
VarHandle.weakCompareAndSetAcquirepublic static final VarHandle.AccessMode WEAK_COMPARE_AND_SET_RELEASE
VarHandle.weakCompareAndSetReleasepublic static final VarHandle.AccessMode WEAK_COMPARE_AND_SET_VOLATILE
VarHandle.weakCompareAndSetVolatilepublic 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-Ubuntu+0-9b134-2ubuntu1