org.glassfish.hk2.api.Context#findOrCreate(ActiveDescriptor, ServiceHandle) .
May be used as the key in a HashMap, where the criteria for equality
is the equality of the Descriptor
| Modifier and Type | Field and Description |
|---|---|
| private final ActiveDescriptor | |
| private final ServiceHandle |
| Access | Constructor and Description |
|---|---|
| public | ContextualInput(ActiveDescriptor<T>
The non-null descriptor associated with a contextual creation descriptor, ServiceHandle<?> The possibly null root associated with a contextual creation root)The inputs from the |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | equals(Object o)
Overrides java. Indicates whether some other object is "equal to" this one. |
| public ActiveDescriptor | Returns: The non-null descriptor associated with this creationReturns the descriptor associated with this contextual creation |
| public ServiceHandle | Returns: The possibly null root associated with this creationReturns the |
| public int | |
| public String |
| descriptor | back to summary |
|---|---|
| private final ActiveDescriptor<T> descriptor | |
| root | back to summary |
|---|---|
| private final ServiceHandle<?> root | |
| ContextualInput | back to summary |
|---|---|
| public ContextualInput(ActiveDescriptor<T> descriptor, ServiceHandle<?> root) The inputs from the
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object o) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes.
| |
| getDescriptor | back to summary |
|---|---|
| public ActiveDescriptor Returns the descriptor associated with this contextual creation
| |
| getRoot | back to summary |
|---|---|
| public ServiceHandle Returns the
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non-
| |