public final class BsonTimestamp extends BsonValue implements Comparable<BsonTimestamp>
| Constructor and Description | 
|---|
| BsonTimestamp()Construct a new instance with a null time and a 0 increment. | 
| BsonTimestamp(int seconds,
             int inc)Construct a new instance for the given time and increment. | 
| Modifier and Type | Method and Description | 
|---|---|
| int | compareTo(BsonTimestamp ts) | 
| boolean | equals(Object o) | 
| BsonType | getBsonType()Gets the BSON type of this value. | 
| int | getInc()Gets the increment value. | 
| int | getTime()Gets the time in seconds since epoch. | 
| int | hashCode() | 
| String | toString() | 
asArray, asBinary, asBoolean, asDateTime, asDBPointer, asDecimal128, asDocument, asDouble, asInt32, asInt64, asJavaScript, asJavaScriptWithScope, asNumber, asObjectId, asRegularExpression, asString, asSymbol, asTimestamp, isArray, isBinary, isBoolean, isDateTime, isDBPointer, isDecimal128, isDocument, isDouble, isInt32, isInt64, isJavaScript, isJavaScriptWithScope, isNull, isNumber, isObjectId, isRegularExpression, isString, isSymbol, isTimestamppublic BsonTimestamp()
public BsonTimestamp(int seconds,
                     int inc)
seconds - the number of seconds since the epochinc - the increment.public BsonType getBsonType()
BsonValuegetBsonType in class BsonValuepublic int getTime()
public int getInc()
public int compareTo(BsonTimestamp ts)
compareTo in interface Comparable<BsonTimestamp>