public class Tag
extends java.lang.Object
implements java.lang.Comparable
Red (jiazou) |
Yellow (jiazou) |
Modifier and Type | Field and Description |
---|---|
int |
microstep
The microstep.
|
Time |
timestamp
The timestamp.
|
Constructor and Description |
---|
Tag()
Construct an empty Tag.
|
Tag(Time timestamp,
int microstep)
Construct a Tag.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(java.lang.Object other)
Compare a tag with another.
|
boolean |
equals(java.lang.Object arg0)
Checks if this tag is the same as another.
|
int |
hashCode()
Hashcode for this class.
|
java.lang.String |
toString()
Return a string representation of this class.
|
public Time timestamp
public int microstep
public Tag(Time timestamp, int microstep)
timestamp
- The timestamp.microstep
- The microstep.public Tag()
public int compareTo(java.lang.Object other)
compareTo
in interface java.lang.Comparable
other
- The object to be compared.public boolean equals(java.lang.Object arg0)
equals
in class java.lang.Object
arg0
- The object checking against.public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object