public class LockInfo extends Object
Constructor and Description |
---|
LockInfo(String className,
int identityHashCode)
Creates a new
LockInfo instance. |
Modifier and Type | Method and Description |
---|---|
static LockInfo |
from(CompositeData compositeData)
Returns a
LockInfo object represented by the given
CompositeData . |
String |
getClassName()
Returns the name of the lock object's class in fully qualified form (i.e.
|
int |
getIdentityHashCode()
Returns the value of the associated lock object's identity hash code
|
String |
toString()
Provides callers with a string value that represents the associated lock.
|
public LockInfo(String className, int identityHashCode)
LockInfo
instance.className
- the name (including the package prefix) of the associated lock
object's classidentityHashCode
- the value of the associated lock object's identity hash code.
This amounts to the result of calling
System.identityHashCode(Object)
with the lock object
as the sole argument.NullPointerException
- if className
is null
public String getClassName()
public int getIdentityHashCode()
public static LockInfo from(CompositeData compositeData)
LockInfo
object represented by the given
CompositeData
. The given CompositeData
must contain the
following attributes:
The attributes and the types the given CompositeData contains Attribute Name Type className java.lang.String
identityHashCode java.lang.Integer
compositeData
- CompositeData
representing a LockInfo
LockInfo
object represented by compositeData
if compositeData
is not null
; null
otherwise.IllegalArgumentException
- if compositeData
does not represent a LockInfo
with the
attributes described above.public String toString()
getClassName()
+ @ + Integer.toHexString(getIdentityHashCode()
)
Eclipse OpenJ9 website.
To raise a bug report or suggest an improvement create an Eclipse OpenJ9 issue.
Copyright © 1993, 2023 IBM Corp. and others.