com.googlecode.maven.plugins.overview.vo.ArtifactVertex Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of maven-overview-plugin Show documentation
Show all versions of maven-overview-plugin Show documentation
A Maven plugin, creating a diagram of all dependencies (The entire
transitive closure).
Works also as report.
The newest version!
package com.googlecode.maven.plugins.overview.vo;
import edu.uci.ics.jung.graph.impl.DirectedSparseVertex;
import org.apache.maven.artifact.Artifact;
public class ArtifactVertex extends DirectedSparseVertex {
private Artifact artifact;
private int distance;
public ArtifactVertex(Artifact artifact, int distance) {
super();
this.artifact = artifact;
this.distance = distance;
}
public Artifact getArtifact() {
return artifact;
}
public boolean equals(Object object) {
return object instanceof ArtifactVertex && artifact.equals(((ArtifactVertex) object).getArtifact());
}
public int hashCode() {
return artifact.hashCode();
}
public int getDistance() {
return distance;
}
public void setDistance(int distance) {
this.distance = distance;
}
public void alignDistance(int depth) {
if (distance > depth) distance = depth;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy