Class Attachments.Key<T>

  • Type Parameters:
    T - the attachment value type
    Enclosing class:
    Attachments

    public static final class Attachments.Key<T>
    extends Object
    An attachment key.
    • Constructor Detail

      • Key

        public Key​(Class<T> type)
        Construct a new instance.
        Parameters:
        type - the key type class.
    • Method Detail

      • getType

        public Class<T> getType()
        Get the attachment type class.
        Returns:
        the attachment type class