|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.opensolaris.os.dtrace.UserSymbolRecord.Value
public static final class UserSymbolRecord.Value
The composite value of a symbol's process ID and user address.
Immutable. Supports persistence using XMLEncoder
.
Constructor Summary | |
---|---|
UserSymbolRecord.Value(int pid,
long addressValue)
Creates a composite value with the given user process ID and symbol address. |
Method Summary | |
---|---|
int |
compareTo(UserSymbolRecord.Value v)
Compares this value with the given UserSymbolRecord.Value and orders by process ID first and
address second. |
boolean |
equals(java.lang.Object o)
Compares the specified object with this UserSymbolRecord.Value for equality. |
long |
getAddress()
Gets the symbol's user address. |
int |
getProcessID()
Gets the process ID associated with this value's user address. |
int |
hashCode()
Overridden to ensure that equal instances have equal hash codes. |
java.lang.String |
toString()
Gets a string representation of this UserSymbolRecord.Value instance useful for logging and not
intended for display. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public UserSymbolRecord.Value(int pid, long addressValue)
Supports XML persistence.
pid
- non-negative process IDaddressValue
- symbol address
java.lang.IllegalArgumentException
- if the given process ID is
negativeMethod Detail |
---|
public int getProcessID()
public long getAddress()
public boolean equals(java.lang.Object o)
UserSymbolRecord.Value
for equality. Returns true
if and only if the specified object is also a UserSymbolRecord.Value
and both values have the same process
ID and the same address.
equals
in class java.lang.Object
true
if and only if the specified object is
also a UserSymbolRecord.Value
and both values have
the same process ID and the same addresspublic int hashCode()
hashCode
in class java.lang.Object
public int compareTo(UserSymbolRecord.Value v)
UserSymbolRecord.Value
and orders by process ID first and
address second. The comparison treats addresses as unsigned
values so the ordering is consistent with that defined in the
native DTrace library. The compareTo()
method is
compatible with equals()
.
compareTo
in interface java.lang.Comparable<UserSymbolRecord.Value>
public java.lang.String toString()
UserSymbolRecord.Value
instance useful for logging and not
intended for display. The exact details of the
representation are unspecified and subject to change, but the
following format may be regarded as typical:
class-name[property1 = value1, property2 = value2]
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |