public class BSONTimestamp extends java.lang.Object implements java.lang.Comparable<BSONTimestamp>, java.io.Serializable
time
is seconds
since epoch inc
is an ordinal.Constructor and Description |
---|
BSONTimestamp()
Construct a new instance with a null time and a 0 increment.
|
BSONTimestamp(int time,
int inc)
Construct a new instance for the given time and increment.
|
public BSONTimestamp()
public BSONTimestamp(int time, int inc)
time
- the number of seconds since the epochinc
- the increment.public int getTime()
public int getInc()
public java.lang.String toString()
toString
in class java.lang.Object
public int compareTo(BSONTimestamp ts)
compareTo
in interface java.lang.Comparable<BSONTimestamp>
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object