|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.lang.Enum<LM.LockType> tp.LM.LockType
public static enum LM.LockType
Enum Constant Summary | |
---|---|
READ
|
|
UNDEF
|
|
WRITE
|
Method Summary | |
---|---|
boolean |
conflicts(LM.LockType current)
check whether current lock type conflicts to this lock type |
boolean |
isCompatible(LM.LockType current)
check whether current lock type is compatible with this lock type |
boolean |
subsume(LM.LockType other)
check whether this lock type subsumes (is stronger) other lock type |
static LM.LockType |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static LM.LockType[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final LM.LockType UNDEF
public static final LM.LockType READ
public static final LM.LockType WRITE
Method Detail |
---|
public static LM.LockType[] values()
for (LM.LockType c : LM.LockType.values()) System.out.println(c);
public static LM.LockType valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is nullpublic boolean isCompatible(LM.LockType current)
current
- type of lock currently held
true
if the two locks are compatible.public boolean conflicts(LM.LockType current)
current
- type of lock currently held
true
if the two locks conflicts.public boolean subsume(LM.LockType other)
other
-
true
if this lock type is stronger than other
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |