HashCode (fawkeZ - Developer's Documentation)

org.jcoderz.commons.util
Class HashCode

  extended by org.jcoderz.commons.util.HashCode
All Implemented Interfaces:

public final class HashCode
extends
implements

The class can be used to easily implement .

Author:
Michael Griffel
See Also:
Serialized Form

Constructor Summary
HashCode()
           
 
Method Summary
 void hash(boolean aBoolean)
          Updates the internal hash code with the given Boolean.
 void hash(char aChar)
          Updates the internal hash code with the given character.
 void hash(double aDouble)
          Updates the internal hash code with the given double.
 void hash(float aFloat)
          Updates the internal hash code with the given float.
 void hash(int aInt)
          Updates the internal hash code with the given integer.
 void hash(long aLong)
          Updates the internal hash code with the given long.
 void hash( aObject)
          Updates the internal hash code with the given object.
 int toInt()
          Returns the current snapshot of the hash code.
 
Methods inherited from class java.lang.
, , , , , , , , , ,
 

Constructor Detail

HashCode

public HashCode()
Method Detail

hash

public void hash(boolean aBoolean)
Updates the internal hash code with the given Boolean.

Parameters:
aBoolean - the Boolean to add to the hash code.

hash

public void hash(char aChar)
Updates the internal hash code with the given character.

Parameters:
aChar - the character to add to the hash code.

hash

public void hash(double aDouble)
Updates the internal hash code with the given double.

Parameters:
aDouble - the double to add to the hash code.

hash

public void hash(float aFloat)
Updates the internal hash code with the given float.

Parameters:
aFloat - the float to add to the hash code.

hash

public void hash(int aInt)
Updates the internal hash code with the given integer.

Parameters:
aInt - the integer to add to the hash code.

hash

public void hash(long aLong)
Updates the internal hash code with the given long.

Parameters:
aLong - the long to add to the hash code.

hash

public void hash( aObject)
Updates the internal hash code with the given object. aObject is a possibly-null object field, and possibly an array. If aObject is an array, then each element may be a primitive or a possibly-null object.

Parameters:
aObject - the object to add to the hash code.

toInt

public int toInt()
Returns the current snapshot of the hash code.

Returns:
the current snapshot of the hash code.


Copyright 2007 The jCoderZ Project.