|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.easybeans.rpc.util.Hash
public final class Hash
Utility class providing some hashing methods on java.lang.reflect.Method or java.lang.Class.
Field Summary | |
---|---|
private static int |
BYTE_MASK
Mask for hashing algorithm. |
private static int |
BYTES_LENGTH
Length of hash of a method (eight byte sequence). |
private static JLog |
logger
Logger. |
Constructor Summary | |
---|---|
private |
Hash()
Utility class, no public constructor. |
Method Summary | |
---|---|
static java.util.Map<java.lang.Long,java.lang.reflect.Method> |
hashClass(java.lang.Class clz)
Gets a map between an hash and its associated method. |
static long |
hashMethod(java.lang.reflect.Method method)
Computes the hash for a given method. The method hash to be used for the opnum parameter is a 64-bit (long) integer computed from the first two 32-bit values of the message digest of a particular byte stream using the National Institute of Standards and Technology (NIST) Secure Hash Algorithm (SHA-1). |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static JLog logger
private static final int BYTES_LENGTH
private static final int BYTE_MASK
Constructor Detail |
---|
private Hash()
Method Detail |
---|
public static long hashMethod(java.lang.reflect.Method method)
method
- the given method.
public static java.util.Map<java.lang.Long,java.lang.reflect.Method> hashClass(java.lang.Class clz)
clz
- the class to analyze.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |