Class DependencyNode

java.lang.Object
com.android.builder.dependency.level2.DependencyNode

@Immutable public final class DependencyNode extends Object
A node in the dependency graph. It contains an unique key/coordinates that allows finding the actual dependency information. It does contain some immutable state related to this particular usage: requested coordinates as well as the transitive dependencies.
  • Constructor Details

  • Method Details

    • getAddress

      @NonNull public Object getAddress()
      Returns a unique address that matches Dependency.getAddress().
    • getNodeType

      @NonNull public DependencyNode.NodeType getNodeType()
    • getRequestedCoordinates

      @Nullable public com.android.builder.model.MavenCoordinates getRequestedCoordinates()
      Returns this library's Maven coordinates, as requested in the build file.
    • getDependencies

      @NonNull public com.google.common.collect.ImmutableList<DependencyNode> getDependencies()
      Return the direct dependency of this node.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object