public final class BSONTimestamp extends java.lang.Object implements java.lang.Comparable<BSONTimestamp>, java.io.Serializable
Constructor and Description |
---|
BSONTimestamp()
Creates a new instance.
|
BSONTimestamp(int time,
int increment)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(BSONTimestamp ts) |
boolean |
equals(java.lang.Object obj) |
int |
getInc()
Gets the incrementing ordinal for operations within a given second.
|
int |
getTime()
Gets the time in seconds since epoch
|
int |
hashCode() |
java.lang.String |
toString() |
public BSONTimestamp()
public BSONTimestamp(int time, int increment)
time
- the time in seconds since epochincrement
- an incrementing ordinal for operations within a given secondpublic 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