public final class BsonInt32 extends BsonNumber implements java.lang.Comparable<BsonInt32>
| 构造器和说明 |
|---|
BsonInt32(int value)
Construct a new instance with the given value.
|
| 限定符和类型 | 方法和说明 |
|---|---|
int |
compareTo(BsonInt32 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.
|
int |
getValue()
Gets the integer 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 BsonInt32(int value)
value - the valuepublic BsonType getBsonType()
BsonValuegetBsonType 在类中 BsonValuepublic int 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