|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecthmi.util.HashCodes
public final class HashCodes
Hashcode implementation helper class
Hashcode algorithms from:
Effective Java, second edition, Joshua Bloch, Addison-Wesley, 2008
| Field Summary | |
|---|---|
private static int |
INTSIZE
|
| Constructor Summary | |
|---|---|
private |
HashCodes()
|
| Method Summary | |
|---|---|
int |
hashCode()
|
static int |
hashCode(boolean b)
Return hashcode for a boolean |
int |
hashCode(boolean[] arr)
Return hashcode for a boolean array |
static int |
hashCode(byte b)
Return hashcode for a byte |
int |
hashCode(byte[] arr)
Return hashcode for a byte array |
static int |
hashCode(char c)
Return hashcode for a char |
int |
hashCode(char[] arr)
Return hashcode for a char array |
static int |
hashCode(double d)
Return hashcode for a double |
int |
hashCode(double[] arr)
Return hashcode for a double array |
static int |
hashCode(float f)
Return hashcode for a float |
int |
hashCode(float[] arr)
Return hashcode for a float array |
int |
hashCode(int[] arr)
Return hashcode for an int array |
static int |
hashCode(long l)
Return hashcode for a long |
int |
hashCode(long[] arr)
Return hashcode for a long array |
int |
hashCode(Object[] arr)
Return hashcode for an Object array |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static final int INTSIZE
| Constructor Detail |
|---|
private HashCodes()
| Method Detail |
|---|
public int hashCode()
hashCode in class Objectpublic static int hashCode(boolean b)
public static int hashCode(char c)
public static int hashCode(byte b)
public static int hashCode(long l)
public static int hashCode(float f)
public static int hashCode(double d)
public int hashCode(Object[] arr)
public int hashCode(int[] arr)
public int hashCode(float[] arr)
public int hashCode(char[] arr)
public int hashCode(byte[] arr)
public int hashCode(boolean[] arr)
public int hashCode(double[] arr)
public int hashCode(long[] arr)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||