private static enum ReadWriteLockNamedLock.Step extends java.lang.Enum<ReadWriteLockNamedLock.Step>
Enum Constant and Description |
---|
EXCLUSIVE
Step when
ReadWriteLock.writeLock() was locked |
SHARED
Step when
ReadWriteLock.readLock() was locked |
Modifier and Type | Method and Description |
---|---|
static ReadWriteLockNamedLock.Step |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ReadWriteLockNamedLock.Step[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ReadWriteLockNamedLock.Step SHARED
ReadWriteLock.readLock()
was lockedpublic static final ReadWriteLockNamedLock.Step EXCLUSIVE
ReadWriteLock.writeLock()
was lockedpublic static ReadWriteLockNamedLock.Step[] values()
for (ReadWriteLockNamedLock.Step c : ReadWriteLockNamedLock.Step.values()) System.out.println(c);
public static ReadWriteLockNamedLock.Step valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null