public class EuclidHashCodeTools
extends java.lang.Object
Point3D.| Modifier and Type | Field | Description | 
|---|---|---|
| static long | MULTIPLIER | Long used for the multiplication factor in each step of the hash. | 
| Constructor | Description | 
|---|---|
| EuclidHashCodeTools() | 
| Modifier and Type | Method | Description | 
|---|---|---|
| static long | addToHashCode(long hashCode,
             double value) | Calls  combineHashCode(long, long)after convertingvalueto long bits. | 
| static long | addToHashCode(long hashCode,
             float value) | Calls  combineHashCode(long, long)after convertingvalueto int bits. | 
| static long | combineHashCode(long hashCode1,
               long hashCode2) | Combine the two hash code bit streams. | 
| static int | toIntHashCode(long bits) | Returns a hash bit stream as an integer hash value. | 
public static final long MULTIPLIER
public static int toIntHashCode(long bits)
bits - the bits to turn into integer hash code.public static long addToHashCode(long hashCode,
                                 double value)
combineHashCode(long, long) after converting value to long bits.hashCode - long hash code bit stream to add to.value - double value to add to the hash code.public static long addToHashCode(long hashCode,
                                 float value)
combineHashCode(long, long) after converting value to int bits.hashCode - long hash code bit stream to add to.value - float value to add to the hash code.public static long combineHashCode(long hashCode1,
                                   long hashCode2)
hashCode1 - first hash code to combine.hashCode2 - second hash code to combine.hashCode1 + MULTIPLIER * hashCode2