|
CoherenceTM v3.3 Copyright© 2000-2007 by Oracle Corporation |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.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(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(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. |
String |
toString()
Format this object's data as a human-readable string. |
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(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 Number
int
.public long longValue()
long
.
This may involve rounding or truncation.
longValue
in class Number
long
.public float floatValue()
float
.
This may involve rounding.
floatValue
in class Number
float
.public double doubleValue()
double
.
This may involve rounding.
doubleValue
in class Number
double
.public Binary getBits()
public BigInteger unscaledValue()
public int scale()
public boolean equals(Object o)
o
- another object to compare to for equality
public int hashCode()
public String toString()
|
CoherenceTM v3.3 Copyright© 2000-2007 by Oracle Corporation |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |