public enum ReadLock extends Enum<ReadLock>
This enum defines two types of read locks: - Read: A standard read lock. - Perma Lock: A permanent lock that prevents further reading.
| Modifier and Type | Method and Description |
|---|---|
static ReadLock |
fromValue(int value) |
int |
getCode() |
String |
toString() |
static ReadLock |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ReadLock[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ReadLock read
public static final ReadLock permaLock
public static ReadLock[] values()
for (ReadLock c : ReadLock.values()) System.out.println(c);
public static ReadLock 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 int getCode()
public static ReadLock fromValue(int value)