com.updateimpact.report.Dependency Maven / Gradle / Ivy
package com.updateimpact.report;
import java.util.List;
public class Dependency {
private final DependencyId id;
private final List dependencies;
public Dependency(DependencyId id, List dependencies) {
this.id = id;
this.dependencies = dependencies;
}
public DependencyId getId() {
return id;
}
public List getDependencies() {
return dependencies;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
Dependency that = (Dependency) o;
return !(id != null ? !id.equals(that.id) : that.id != null);
}
@Override
public int hashCode() {
return id != null ? id.hashCode() : 0;
}
}