net.kemitix.dependency.digraph.maven.plugin.PackageData Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of digraph-dependency-maven-plugin Show documentation
Show all versions of digraph-dependency-maven-plugin Show documentation
Generates a DOT Digraph of dependencies between packages within a project
package net.kemitix.dependency.digraph.maven.plugin;
import lombok.Getter;
import java.util.HashSet;
import java.util.Objects;
import java.util.Set;
import net.kemitix.node.Node;
/**
* Defines a package.
*
* @author pcampbell
*/
public class PackageData {
@Getter
private final String name;
@Getter
private final Set> uses = new HashSet<>();
/**
* Constructor.
*
* @param name the name of the package
*/
public PackageData(final String name) {
this.name = name;
}
@Override
@SuppressWarnings("magicnumber")
public int hashCode() {
int hash = 7;
hash = 29 * hash + Objects.hashCode(this.name);
return hash;
}
@Override
public boolean equals(final Object obj) {
if (this == obj) {
return true;
}
if (obj == null) {
return false;
}
if (getClass() != obj.getClass()) {
return false;
}
final PackageData other = (PackageData) obj;
if (!Objects.equals(this.name, other.name)) {
return false;
}
return true;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy