|
Oracle® Coherence Java API Reference v3.5 E14977-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 |
ZEROAn 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 value
public 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.Numberint.public long longValue()
long. This may involve rounding or truncation.longValue in class java.lang.Numberlong.public float floatValue()
float. This may involve rounding.floatValue in class java.lang.Numberfloat.public double doubleValue()
double. This may involve rounding.doubleValue in class java.lang.Numberdouble.public Binary getBits()
public java.math.BigInteger unscaledValue()
public int scale()
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 v3.5 E14977-01 |
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||