|
Oracle® Coherence Java API Reference Release 3.7.1.0 E22843-01 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
java.lang.Number
com.tangosol.io.pof.RawQuad
public class RawQuad
An immutable POF 128-bit float.
Field Summary | |
---|---|
static RawQuad |
ZERO An empty RawQuad value. |
Constructor Summary | |
---|---|
RawQuad(java.math.BigInteger nUnscaledValue, int nScale) Construct a RawQuad from an unscaled integer value and a scale. |
|
RawQuad(Binary binBits) Construct a RawQuad from the raw binary data. |
|
RawQuad(double dfl) Construct a RawQuad from a double. |
Method Summary | |
---|---|
double |
doubleValue() Returns the value of the specified number as a double . |
boolean |
equals(java.lang.Object o) Compare this object with another for equality. |
float |
floatValue() Returns the value of the specified number as a float . |
Binary |
getBits() Obtain the raw binary form of the 128-bit float. |
int |
hashCode() Obtain the hashcode for this object. |
int |
intValue() Returns the value of the specified number as an int . |
long |
longValue() Returns the value of the specified number as a long . |
int |
scale() Get the base-2 scale (exponent) of the quad value. |
java.lang.String |
toString() Format this object's data as a human-readable string. |
java.math.BigInteger |
unscaledValue() Get the base-2 unscaled value (mantissa) of the quad value. |
Methods inherited from class java.lang.Number |
---|
byteValue, shortValue |
Field Detail |
---|
public static final RawQuad ZERO
Constructor Detail |
---|
public RawQuad(Binary binBits)
binBits
- the raw binary form of the 128-bit floatpublic RawQuad(double dfl)
dfl
- the double valuepublic RawQuad(java.math.BigInteger nUnscaledValue, int nScale)
nUnscaledValue
- the unscaled value (mantissa)nScale
- the scale (exponent)Method Detail |
---|
public int intValue()
int
. This may involve rounding or truncation.intValue
in class java.lang.Number
int
.public long longValue()
long
. This may involve rounding or truncation.longValue
in class java.lang.Number
long
.public float floatValue()
float
. This may involve rounding.floatValue
in class java.lang.Number
float
.public double doubleValue()
double
. This may involve rounding.doubleValue
in class java.lang.Number
double
.public Binary getBits()
public java.math.BigInteger unscaledValue()
The name of this method is based on Java's BigDecimal.
public int scale()
The name of this method is based on Java's BigDecimal.
public boolean equals(java.lang.Object o)
o
- another object to compare to for equalitypublic int hashCode()
public java.lang.String toString()
|
Oracle® Coherence Java API Reference Release 3.7.1.0 E22843-01 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |