Class ClassHashKey


  • public final class ClassHashKey
    extends Key

    Key implementation that uses the classes implmented or extended by the proxy class.

    Author:
    Brennan Spies
    • Constructor Detail

      • ClassHashKey

        public ClassHashKey​(ClassLoader loader,
                            Class<?>... classes)
        Constructor takes the class loader of the proxy and the classes which the proxy extends or implements.
        Parameters:
        loader - The classloader
        classes - The classes
      • ClassHashKey

        public ClassHashKey​(ClassLoader loader,
                            Collection<Class<?>> classes)
        Constructor takes the class loader of the proxy and the classes which the proxy extends or implements.
        Parameters:
        loader - The classloader
        classes - The classes
    • Method Detail

      • hashCode

        public int hashCode()
        Description copied from class: Key
        Every Key subclass must define its own Object.hashCode() method.
        Specified by:
        hashCode in class Key
        Returns:
        The hash code