cz.cuni.utils
Class HashCodes

java.lang.Object
  extended by cz.cuni.utils.HashCodes

public final class HashCodes
extends java.lang.Object


Field Summary
protected  int hashCode
           
 
Constructor Summary
protected HashCodes()
           
 
Method Summary
 void add(int number)
           
 int getHashCode()
           
static HashCodes getNewCounter()
           
static int hash(boolean b)
           
static int hash(byte b)
           
static int hash(double d)
           
static int hash(float f)
           
static int hash(char c)
           
static int hash(int i)
           
static int hash(long i)
           
static int hash(java.lang.Object o)
           
static int hash(short s)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

hashCode

protected int hashCode
Constructor Detail

HashCodes

protected HashCodes()
Method Detail

hash

public static int hash(boolean b)

hash

public static int hash(byte b)

hash

public static int hash(char c)

hash

public static int hash(short s)

hash

public static int hash(int i)

hash

public static int hash(long i)

hash

public static int hash(float f)

hash

public static int hash(double d)

hash

public static int hash(java.lang.Object o)

getNewCounter

public static HashCodes getNewCounter()

add

public void add(int number)

getHashCode

public int getHashCode()