public final class BsonTimestamp extends BsonValue implements java.lang.Comparable<BsonTimestamp>
| 构造器和说明 |
|---|
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.
|
| 限定符和类型 | 方法和说明 |
|---|---|
int |
compareTo(BsonTimestamp ts) |
boolean |
equals(java.lang.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() |
java.lang.String |
toString() |
asArray, asBinary, asBoolean, asDateTime, asDBPointer, asDocument, asDouble, asInt32, asInt64, asJavaScript, asJavaScriptWithScope, asNumber, asObjectId, asRegularExpression, asString, asSymbol, asTimestamp, isArray, isBinary, isBoolean, isDateTime, isDBPointer, 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 在类中 BsonValuepublic int getTime()
public int getInc()
public java.lang.String toString()
toString 在类中 java.lang.Objectpublic int compareTo(BsonTimestamp ts)
compareTo 在接口中 java.lang.Comparable<BsonTimestamp>public boolean equals(java.lang.Object o)
equals 在类中 java.lang.Objectpublic int hashCode()
hashCode 在类中 java.lang.Object