com.caucho.util
Class HashKey

java.lang.Object
  extended by com.caucho.util.HashKey
All Implemented Interfaces:
java.io.Serializable

public class HashKey
extends java.lang.Object
implements java.io.Serializable

Creates hashes for the identifiers.

See Also:
Serialized Form

Constructor Summary
HashKey(byte[] hash)
          Creates the manager
 
Method Summary
 int compareTo(HashKey key)
           
static HashKey create(byte[] hash)
           
static boolean equals(byte[] hashA, byte[] hashB)
          Check for equality
 boolean equals(java.lang.Object o)
          Check for equality
 byte[] getHash()
           
static byte[] getHash(HashKey testValue)
           
 int hashCode()
          Calculates the key's hash
 boolean isAny()
           
 boolean isNull()
           
 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

create

public static HashKey create(byte[] hash)

getHash

public static byte[] getHash(HashKey testValue)

getHash

public byte[] getHash()

isNull

public boolean isNull()

isAny

public boolean isAny()

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

equals

public static boolean equals(byte[] hashA,
                             byte[] hashB)
Check for equality


compareTo

public int compareTo(HashKey key)

toString

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