public class Hashes
extends java.lang.Object
Method
s to hashes and from (Class
, hash) to Method
are statically cached.Modifier and Type | Method and Description |
---|---|
static long |
getHash(java.lang.reflect.Method meth)
Converts (and caches) the hash for the given
Method . |
static java.lang.reflect.Method |
getMethod(java.lang.Class klass,
long hash)
Searches a given
Class for a Method having a
given hash. |
static long |
opnum(java.lang.reflect.Method method)
Computes the RMI specified hash for the given method.
|
public static long getHash(java.lang.reflect.Method meth)
Method
.
The hash algorithm used is the one described in the RMI
specification.meth
- the Method
to hashpublic static java.lang.reflect.Method getMethod(java.lang.Class klass, long hash)
Class
for a Method
having a
given hash. The result of this search is cached.klass
- the Class
to searchhash
- the hash of the desired methodMethod
matching the given hash, or null if
none existspublic static long opnum(java.lang.reflect.Method method)
method
- the method to hash