public final class DependencyPath extends Object
Artifact with scope
and optional flag.| Constructor and Description |
|---|
DependencyPath() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(org.eclipse.aether.artifact.Artifact artifact,
String scope,
Boolean optional) |
boolean |
equals(Object o) |
org.eclipse.aether.artifact.Artifact |
get(int i)
Returns the artifact at
ith node in the path. |
com.google.common.collect.ImmutableList<org.eclipse.aether.artifact.Artifact> |
getArtifacts()
Returns the list of artifact in the path.
|
org.eclipse.aether.artifact.Artifact |
getLeaf()
Returns the artifact in the leaf (the furthest node from the node) of the path.
|
int |
hashCode() |
int |
size()
Returns the length of the path.
|
String |
toString() |
public int size()
public org.eclipse.aether.artifact.Artifact getLeaf()
public com.google.common.collect.ImmutableList<org.eclipse.aether.artifact.Artifact> getArtifacts()
public org.eclipse.aether.artifact.Artifact get(int i)
ith node in the path. The 0th element is the root of
the dependency tree.Copyright © 2018–2020 Google LLC.. All rights reserved.