public class BsonDateTime extends BsonValue implements Comparable<BsonDateTime>
Constructor and Description |
---|
BsonDateTime(long value)
Construct a new instance with the given value.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(BsonDateTime o) |
boolean |
equals(Object o) |
BsonType |
getBsonType()
Gets the BSON type of this value.
|
long |
getValue()
Gets the DateTime value as a long
|
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, isTimestamp
public BsonDateTime(long value)
value
- the value, which may not be nullpublic int compareTo(BsonDateTime o)
compareTo
in interface Comparable<BsonDateTime>
public BsonType getBsonType()
BsonValue
getBsonType
in class BsonValue
public long getValue()