public class BsonDouble extends BsonNumber implements java.lang.Comparable<BsonDouble>
| 构造器和说明 |
|---|
BsonDouble(double value)
Construct a new instance with the given value.
|
| 限定符和类型 | 方法和说明 |
|---|---|
int |
compareTo(BsonDouble o) |
double |
doubleValue()
Returns the value of the specified number as a
double, which may involve rounding. |
boolean |
equals(java.lang.Object o) |
BsonType |
getBsonType()
Gets the BSON type of this value.
|
double |
getValue()
Gets the double value.
|
int |
hashCode() |
int |
intValue()
Returns the value of the specified number as an
int, which may involve rounding or truncation. |
long |
longValue()
Returns the value of the specified number as an
long, which may involve rounding or truncation. |
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 BsonDouble(double value)
value - the valuepublic int compareTo(BsonDouble o)
compareTo 在接口中 java.lang.Comparable<BsonDouble>public BsonType getBsonType()
BsonValuegetBsonType 在类中 BsonValuepublic double getValue()
public int intValue()
BsonNumberint, which may involve rounding or truncation.intValue 在类中 BsonNumberint.public long longValue()
BsonNumberlong, which may involve rounding or truncation.longValue 在类中 BsonNumberlong.public double doubleValue()
BsonNumberdouble, which may involve rounding.doubleValue 在类中 BsonNumberdouble.public boolean equals(java.lang.Object o)
equals 在类中 java.lang.Objectpublic int hashCode()
hashCode 在类中 java.lang.Objectpublic java.lang.String toString()
toString 在类中 java.lang.Object