Class MethodHash


  • public class MethodHash
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) static java.util.Map hashMap  
    • Constructor Summary

      Constructors 
      Constructor Description
      MethodHash()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static long calculateHash​(java.lang.reflect.Method method)  
      static java.util.Map getInterfaceHashes​(java.lang.Class intf)
      Calculate method hashes.
      (package private) static java.lang.String getTypeString​(java.lang.Class cl)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • hashMap

        static java.util.Map hashMap
    • Constructor Detail

      • MethodHash

        public MethodHash()
    • Method Detail

      • getInterfaceHashes

        public static java.util.Map getInterfaceHashes​(java.lang.Class intf)
        Calculate method hashes. This algo is taken from RMI.
        Parameters:
        intf -
        Returns:
        the map
      • getTypeString

        static java.lang.String getTypeString​(java.lang.Class cl)
      • calculateHash

        public static long calculateHash​(java.lang.reflect.Method method)