com.rapid7.container.analyzer.docker.model.Digest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of docker-image-analyzer Show documentation
Show all versions of docker-image-analyzer Show documentation
Extracts, parses, and analyzes Docker images into Java objects with JSON mappings.
package com.rapid7.container.analyzer.docker.model;
public class Digest extends HashId {
public Digest(String id, HashType type) {
super(id, type);
}
public Digest(String hashId) {
super(hashId);
}
@Override
public int hashCode() {
return super.hashCode();
}
@Override
public boolean equals(Object obj) {
if (obj == this)
return true;
else if (obj instanceof Digest) {
Digest other = (Digest)obj;
return super.equals(other);
} else
return false;
}
}