com.capitalone.dashboard.model.BaseArtifact Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of artifactory-artifact-collector Show documentation
Show all versions of artifactory-artifact-collector Show documentation
Artifact Collector microservice currently collects data from JFrog Artifactory
The newest version!
package com.capitalone.dashboard.model;
import java.util.ArrayList;
import java.util.List;
import java.util.Objects;
public class BaseArtifact {
ArtifactItem artifactItem;
List binaryArtifacts = new ArrayList<>();
public ArtifactItem getArtifactItem() {
return artifactItem;
}
public void setArtifactItem(ArtifactItem artifactItem) {
this.artifactItem = artifactItem;
}
public List getBinaryArtifacts() {
return binaryArtifacts;
}
public void setBinaryArtifacts(List binaryArtifacts) {
this.binaryArtifacts = binaryArtifacts;
}
public void addBinaryArtifact(BinaryArtifact ba){
getBinaryArtifacts().add(ba);
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null || getClass() != obj.getClass())
return false;
BaseArtifact that = (BaseArtifact) obj;
return Objects.equals(getArtifactItem().getArtifactName(),that.getArtifactItem().getArtifactName()) &&
Objects.equals(getArtifactItem().getPath(),that.getArtifactItem().getPath()) &&
Objects.equals(getArtifactItem().getRepoName(), that.getArtifactItem().getRepoName());
}
@Override
public int hashCode() {
return Objects.hash(getArtifactItem().getArtifactName(), getArtifactItem().getPath(),getArtifactItem().getRepoName());
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy