com.rapid7.container.analyzer.docker.model.image.LayerId 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.image;
import com.rapid7.container.analyzer.docker.model.HashId;
import com.rapid7.container.analyzer.docker.model.HashType;
public class LayerId extends HashId implements Comparable {
public LayerId(String id, HashType type) {
super(id, type);
}
public LayerId(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 LayerId))
return false;
else
return super.equals(obj);
}
@Override
public int compareTo(LayerId other) {
return id.compareTo(other.id);
}
}