public int hashCode() { // CheckStyle:MagicNumber| OFF int hash = 33; hash = hash * 17 + getModuleRevisionId().hashCode(); if (getPublicationDate() != null) { hash = hash * 17 + getPublicationDate().hashCode(); } hash = hash * 17 + getName().hashCode(); hash = hash * 17 + getExt().hashCode(); hash = hash * 17 + getType().hashCode(); hash = hash * 17 + getQualifiedExtraAttributes().hashCode(); // CheckStyle:MagicNumber| ON return hash; }
public String toString() { return String.valueOf(getId()); }
public boolean equals(Object obj) { if (!(obj instanceof Artifact)) { return false; } Artifact art = (Artifact) obj; return getModuleRevisionId().equals(art.getModuleRevisionId()) && getPublicationDate() == null ? (art.getPublicationDate() == null) : getPublicationDate().equals(art.getPublicationDate()) && getName().equals(art.getName()) && getExt().equals(art.getExt()) && getType().equals(art.getType()) && getQualifiedExtraAttributes().equals(art.getQualifiedExtraAttributes()); }
public Map getExtraAttributes() { return getId().getExtraAttributes(); }
public String getAttribute(String attName) { return getId().getAttribute(attName); }
public Map getAttributes() { return getId().getAttributes(); }
public Map getQualifiedExtraAttributes() { return getId().getQualifiedExtraAttributes(); }
public String getExtraAttribute(String attName) { return getId().getExtraAttribute(attName); }