- All Implemented Interfaces:
Serializable,Comparable<MemoryOrder>,Constable
The possible memory order modes.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns true if this mode may be used for read operations, or false if it cannot.booleanReturns true if this mode may be used for write operations, or false if it cannot.static MemoryOrderReturns the enum constant of this class with the specified name.static MemoryOrder[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
AsDeclared
-
Plain
Access using "plain" semantics. All assignables support this type of access. -
Opaque
Access using "opaque" semantics. -
Acquire
Access using "acquire" semantics. -
Release
Access using "release" semantics. -
Volatile
Access using "volatile" semantics.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
validForReads
public boolean validForReads()Returns true if this mode may be used for read operations, or false if it cannot.- Returns:
- true if this mode may be used for read operations, or false if it cannot
-
validForWrites
public boolean validForWrites()Returns true if this mode may be used for write operations, or false if it cannot.- Returns:
- true if this mode may be used for write operations, or false if it cannot
-