com.caucho.server.cluster
Class HashKey

java.lang.Object
  extended by com.caucho.server.cluster.HashKey

public class HashKey
extends java.lang.Object

Creates hashes for the identifiers.


Constructor Summary
HashKey(byte[] hash)
          Creates the manager
 
Method Summary
 boolean equals(java.lang.Object o)
          Check for equality
 byte[] getHash()
           
 int hashCode()
          Calculates the key's hash
 java.lang.String toString()
           
static java.lang.String toString(byte[] hash)
           
static java.lang.String toString(byte[] hash, int len)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

HashKey

public HashKey(byte[] hash)
Creates the manager

Method Detail

getHash

public byte[] getHash()

toString

public static java.lang.String toString(byte[] hash)

toString

public static java.lang.String toString(byte[] hash,
                                        int len)

hashCode

public int hashCode()
Calculates the key's hash

Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object o)
Check for equality

Overrides:
equals in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object