|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.exolab.core.foundation.LockType
This class defines an enumeration for lock types.. READ a read lock can be shared with other readers WRITE a write lock can not be shared with other readers and writers
Field Summary | |
static LockType |
READ
Instatiate instances related to each of the enumerations |
static LockType |
WRITE
|
Method Summary | |
boolean |
equals(java.lang.Object obj)
Return true iff the two specified object are of the same type and their ordinal values are identical. |
int |
getOrd()
Returns the ordinal value for this state |
boolean |
isReadLock()
Test if this is a read lock, |
boolean |
isWriteLock()
Test if this is a write lock. |
static int |
size()
Returns the number of states in this enumeration |
java.lang.String |
toString()
Returns the name of this lock type |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final LockType READ
public static final LockType WRITE
Method Detail |
public int getOrd()
public java.lang.String toString()
public static int size()
public boolean equals(java.lang.Object obj)
obj
- object to compare against
public boolean isReadLock()
public boolean isWriteLock()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |