public class Event
extends java.lang.Object
implements java.lang.Cloneable
| Constructor and Description |
|---|
Event(long samplestamp,
java.lang.String type,
java.lang.String comment)
Event Contructor
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
java.lang.String |
getComment()
Gets the comment of this Event
|
long |
getSamplestamp()
Deprecated.
use getSampleStamp
|
long |
getSampleStamp()
Gets the sample stamp of this Event.
|
java.lang.String |
getType()
Gets the the type of this Event.
|
void |
setComment(java.lang.String comment)
Sets the comment for this Event.
|
void |
setSamplestamp(long samplestamp)
Deprecated.
use setSampleStamp
|
void |
setSampleStamp(long sampleStamp)
Sets the sample stamp of this Event.
|
void |
setType(java.lang.String type)
Sets the the type of this Event.
|
void |
trim(int typeLength,
int commentLength)
Truncate comments and types when necessary
|
public Event(long samplestamp,
java.lang.String type,
java.lang.String comment)
samplestamp - the samplestamp of this Event in sample countstype - the type of this Eventcomment - the comment of this Eventpublic java.lang.String getComment()
public void setComment(java.lang.String comment)
comment - public long getSampleStamp()
public void setSampleStamp(long sampleStamp)
sampleStamp - the sample stamp in sample counts@Deprecated public long getSamplestamp()
getSampleStamp()@Deprecated public void setSamplestamp(long samplestamp)
samplestamp - the samplestamp in sample countssetSampleStamp(long)public java.lang.String getType()
public void setType(java.lang.String type)
type - the type of this Eventpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic void trim(int typeLength,
int commentLength)
typeLength - specified typeLengthcommentLength - specified commentLength