public class ContextualInput<T>
extends java.lang.Object
Context.findOrCreate(ActiveDescriptor, ServiceHandle)
.
May be used as the key in a HashMap, where the criteria for equality
is the equality of the DescriptorModifier and Type | Field and Description |
---|---|
private ActiveDescriptor<T> |
descriptor |
private ServiceHandle<?> |
root |
Constructor and Description |
---|
ContextualInput(ActiveDescriptor<T> descriptor,
ServiceHandle<?> root)
The inputs from the
Context.findOrCreate(ActiveDescriptor, ServiceHandle)
method |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
ActiveDescriptor<T> |
getDescriptor()
Returns the descriptor associated with this contextual creation
|
ServiceHandle<?> |
getRoot()
Returns the
ServiceHandle root associated with this
contextual creation |
int |
hashCode() |
java.lang.String |
toString() |
private final ActiveDescriptor<T> descriptor
private final ServiceHandle<?> root
public ContextualInput(ActiveDescriptor<T> descriptor, ServiceHandle<?> root)
Context.findOrCreate(ActiveDescriptor, ServiceHandle)
methoddescriptor
- The non-null descriptor associated with a contextual creationroot
- The possibly null root associated with a contextual creationpublic ActiveDescriptor<T> getDescriptor()
public ServiceHandle<?> getRoot()
ServiceHandle
root associated with this
contextual creationpublic int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object