Class ClassBasedComponentKey<T>

  • Type Parameters:
    T - the type the class of this key has to be a subtype of

    public class ClassBasedComponentKey<T>
    extends Object
    Generic Component key that is based on a single Class.
    Since:
    1.0.0
    • Constructor Detail

      • ClassBasedComponentKey

        public ClassBasedComponentKey​(Class<? extends T> type)
        Creates a new key.
        Parameters:
        type - the type associated with this key
    • Method Detail

      • getType

        public Class<? extends T> getType()
        Gets the type associated with this key.
        Returns:
        the type
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object