public class BSONTimestamp extends Object implements Comparable<BSONTimestamp>, 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 int compareTo(BSONTimestamp ts)
compareTo
in interface Comparable<BSONTimestamp>