|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.mondemand.TraceId
public class TraceId
Field Summary | |
---|---|
static TraceId |
NULL_TRACE_ID
|
Constructor Summary | |
---|---|
TraceId()
Default constructor, if no id is given |
|
TraceId(long id)
Create a trace ID with the given identifier |
Method Summary | |
---|---|
int |
compareTo(TraceId traceId)
Compares this TraceId with another. |
boolean |
equals(Object obj)
|
long |
getId()
Accessor which returns the identifier for this trace id |
int |
hashCode()
|
void |
setId(long newId)
Mutator which allows the identifier to be overwritten |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final TraceId NULL_TRACE_ID
Constructor Detail |
---|
public TraceId(long id)
id
- the identifier to usepublic TraceId()
Method Detail |
---|
public long getId()
public void setId(long newId)
newId
- the new identifier for this trace idpublic int compareTo(TraceId traceId)
compareTo
in interface Comparable<TraceId>
public boolean equals(Object obj)
equals
in class Object
public int hashCode()
hashCode
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |