Class ContextualInput<T>


  • public class ContextualInput<T>
    extends java.lang.Object
    Used by several contexts for keeping the inputs of Context.findOrCreate(ActiveDescriptor, ServiceHandle). May be used as the key in a HashMap, where the criteria for equality is the equality of the Descriptor
    • Method Detail

      • getDescriptor

        public ActiveDescriptor<T> getDescriptor()
        Returns the descriptor associated with this contextual creation
        Returns:
        The non-null descriptor associated with this creation
      • getRoot

        public ServiceHandle<?> getRoot()
        Returns the ServiceHandle root associated with this contextual creation
        Returns:
        The possibly null root associated with this creation
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object