public class ContextualInput<T> extends Object
Context.findOrCreate(ActiveDescriptor, ServiceHandle).
May be used as the key in a HashMap, where the criteria for equality
is the equality of the Descriptor| 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(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() |
String |
toString() |
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 creationCopyright © 2009–2019 Oracle Corporation. All rights reserved.