
com.hubspot.deploy.RemoteArtifact Maven / Gradle / Ivy
The newest version!
package com.hubspot.deploy;
import java.util.Objects;
import com.google.common.base.Optional;
public abstract class RemoteArtifact extends Artifact {
private final Optional filesize;
public RemoteArtifact(String name, String filename, Optional md5sum, Optional filesize, Optional targetFolderRelativeToTask) {
super(name, filename, md5sum, targetFolderRelativeToTask);
this.filesize = filesize;
}
public Optional getFilesize() {
return filesize;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
if (!super.equals(o)) {
return false;
}
RemoteArtifact that = (RemoteArtifact) o;
return Objects.equals(filesize, that.filesize);
}
@Override
public int hashCode() {
return Objects.hash(super.hashCode(), filesize);
}
@Override
public String toString() {
return "RemoteArtifact [filesize=" + filesize + ", parent=" + super.toString() + "]";
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy