Class Key<T>

  • Type Parameters:
    T -

    public class Key<T>
    extends Object
    Author:
    Pierre Lecerf ([email protected]) Created on 23/05/2020. Adapted from org.codejargon.feather
    • Method Detail

      • of

        public static <T> Key<T> of​(Class<T> type)
        Returns:
        Key for a given type
      • of

        public static <T> Key<T> of​(Class<T> type,
                                    Class<? extends Annotation> qualifier)
        Returns:
        Key for a given type and qualifier annotation type
      • of

        public static <T> Key<T> of​(Class<T> type,
                                    String name)
        Returns:
        Key for a given type and name (@Named value)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object