|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.sun.j3d.internal.HashCodeUtil
public class HashCodeUtil
Utility class used when computing the hash code for objects containing float or double values. This fixes Issue 36.
| Constructor Summary | |
|---|---|
private |
HashCodeUtil()
Do not construct an instance of this class. |
| Method Summary | |
|---|---|
static long |
doubleToLongBits(double d)
Returns the representation of the specified floating-point value according to the IEEE 754 floating-point "double format" bit layout, after first mapping -0.0 to 0.0. |
static int |
floatToIntBits(float f)
Returns the representation of the specified floating-point value according to the IEEE 754 floating-point "single format" bit layout, after first mapping -0.0 to 0.0. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
private HashCodeUtil()
| Method Detail |
|---|
public static int floatToIntBits(float f)
f - an input floating-point number
public static long doubleToLongBits(double d)
d - an input double precision floating-point number
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||