public class LockInfo extends java.lang.Object
java.util.concurrent.locks.AbstractOwnableSynchronizer),
or a java.util.concurrent.locks.Condition
object.| Constructor and Description |
|---|
LockInfo(java.lang.String className,
int identityHashCode)
Constructs a new
LockInfo object with the
specified class name and identity hash code. |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getClassName()
Returns the class name of the lock object.
|
int |
getIdentityHashCode()
Returns the identity hash code of the lock object.
|
java.lang.String |
toString()
Returns a textual representation of the lock,
constructed by concatenating the class name,
'@' and the identity hash code
in unsigned hexadecimal form. |
@ConstructorProperties(value={"className","identityHashCode"})
public LockInfo(java.lang.String className,
int identityHashCode)
LockInfo object with the
specified class name and identity hash code.className - the name of the class of the lock object.identityHashCode - the identity hash code of the
lock object.public java.lang.String getClassName()
public int getIdentityHashCode()
public java.lang.String toString()
'@' and the identity hash code
in unsigned hexadecimal form.toString in class java.lang.ObjectObject.getClass(),
Object.hashCode(),
Class.getName(),
Integer.toHexString(int)