Use get to build a freestanding dependency, or InjectionPoint to build one
that's attached to a constructor, method or field.
| Modifier and Type | Field and Description |
|---|---|
| private final InjectionPoint | |
| private final Key | |
| private final boolean | |
| private final int |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | equals(Object
the reference object with which to compare. o)Overrides java. |
| public static Set | forInjectionPoints(Set<InjectionPoint> injectionPoints)
Returns the dependencies from the given injection points. |
| public static <T> Dependency | |
| public InjectionPoint | getInjectionPoint()
Returns the injection point to which this dependency belongs, or null if this dependency isn't attached to a particular injection point. |
| public Key | |
| public int | getParameterIndex()
Returns the index of this dependency in the injection point's parameter list, or |
| public int | |
| public boolean | |
| public String |
| injectionPoint | back to summary |
|---|---|
| private final InjectionPoint injectionPoint | |
| key | back to summary |
|---|---|
| private final Key<T> key | |
| nullable | back to summary |
|---|---|
| private final boolean nullable | |
| parameterIndex | back to summary |
|---|---|
| private final int parameterIndex | |
| Dependency | back to summary |
|---|---|
| pack-priv Dependency(InjectionPoint injectionPoint, Key<T> key, boolean nullable, int parameterIndex) | |
| 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. | |
| forInjectionPoints | back to summary |
|---|---|
| public static Set Returns the dependencies from the given injection points. | |
| get | back to summary |
|---|---|
| public static <T> Dependency Returns a new dependency that is not attached to an injection point. The returned dependency is nullable. | |
| getInjectionPoint | back to summary |
|---|---|
| public InjectionPoint getInjectionPoint() Returns the injection point to which this dependency belongs, or null if this dependency isn't attached to a particular injection point. | |
| getKey | back to summary |
|---|---|
| public Key Returns the key to the binding that satisfies this dependency. | |
| getParameterIndex | back to summary |
|---|---|
| public int getParameterIndex() Returns the index of this dependency in the injection point's parameter list, or | |
| 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
| |
| isNullable | back to summary |
|---|---|
| public boolean isNullable() Returns true if null is a legal value for this dependency. | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |