Package de.bwaldvogel.mongo.bson
Class Decimal128
- java.lang.Object
-
- java.lang.Number
-
- de.bwaldvogel.mongo.bson.Decimal128
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<Decimal128>
public final class Decimal128 extends java.lang.Number implements java.io.Serializable, java.lang.Comparable<Decimal128>
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static Decimal128NaNstatic Decimal128NEGATIVE_INFINITYstatic Decimal128NEGATIVE_ZEROstatic Decimal128ONEstatic Decimal128POSITIVE_INFINITYstatic Decimal128POSITIVE_ZEROstatic Decimal128TWO
-
Constructor Summary
Constructors Constructor Description Decimal128(long low, long high)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(Decimal128 o)doubledoubleValue()floatfloatValue()longgetHigh()longgetLow()intintValue()longlongValue()java.lang.StringtoString()
-
-
-
Field Detail
-
ONE
public static final Decimal128 ONE
-
TWO
public static final Decimal128 TWO
-
NaN
public static final Decimal128 NaN
-
POSITIVE_ZERO
public static final Decimal128 POSITIVE_ZERO
-
NEGATIVE_ZERO
public static final Decimal128 NEGATIVE_ZERO
-
POSITIVE_INFINITY
public static final Decimal128 POSITIVE_INFINITY
-
NEGATIVE_INFINITY
public static final Decimal128 NEGATIVE_INFINITY
-
-
Method Detail
-
getLow
public long getLow()
-
getHigh
public long getHigh()
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
intValue
public int intValue()
- Specified by:
intValuein classjava.lang.Number
-
longValue
public long longValue()
- Specified by:
longValuein classjava.lang.Number
-
floatValue
public float floatValue()
- Specified by:
floatValuein classjava.lang.Number
-
doubleValue
public double doubleValue()
- Specified by:
doubleValuein classjava.lang.Number
-
compareTo
public int compareTo(Decimal128 o)
- Specified by:
compareToin interfacejava.lang.Comparable<Decimal128>
-
-