# Interface DependencyResult

All Known Subinterfaces:
  `ResolvedDependencyResult, UnresolvedDependencyResult`

public interface DependencyResult
An edge in the dependency graph. Provides information about the origin of the dependency and the requested component.

Since:
  1.3
See Also:
  - `ResolutionResult`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `ResolvedComponentResult`
  `getFrom()`
  Returns the origin of the dependency.
  `ComponentSelector`
  `getRequested()`
  Returns the requested component.
  `boolean`
  `isConstraint()`
  Indicates if this dependency edge originated from a dependency constraint.

- ## Method Details

  - ### getRequested

    ComponentSelector getRequested()

    Returns the requested component.

    The return type is declared as an opaque `ComponentSelector`, however the selector may also implement one of the following interfaces:

    - `ProjectComponentSelector` for those dependencies that request a component from some other project in the current build.
    - `ModuleComponentSelector` for those dependencies that request a component to be found in some repository.
    Returns:
      the requested component
    Since:
      1.3

  - ### getFrom

    ResolvedComponentResult getFrom()
    Returns the origin of the dependency.
    Returns:
      the origin of the dependency
    Since:
      1.3

  - ### isConstraint

    boolean isConstraint()
    Indicates if this dependency edge originated from a dependency constraint.
    Returns:
      true if the dependency is a constraint.
    Since:
      5.1