|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Artifact
A single code artifact (jar) within a maven2 repository either remote or local. The status of the artifact is not held in this interface as it is only meaningful in relation to a Repository.
Normally you would subclass BasicArtifact instead of implementing
this interface, as Artifact implementors also must be Comparable,
implementing Comparable.compareTo(Object)compareTo and overriding
Object.equals(Object) and Object.hashCode().
BasicArtifact| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object other)
Compare with another object. |
java.lang.String |
getArtifactId()
Get the artifact ID for this Artifact |
java.lang.String |
getGroupId()
Get the group ID for this Artifact |
java.lang.String |
getVersion()
Get the version for this Artifact, the version is not constrained to any particular format but is generally a period separated list of integers under lexicographical ordering. |
int |
hashCode()
The hashCode should be calculated as the hash of the concatination of the artifactId, groupId and version, as in BasicArtifact.hashCode(). |
| Methods inherited from interface java.lang.Comparable |
|---|
compareTo |
| Method Detail |
|---|
boolean equals(java.lang.Object other)
getArtifactId(), getGroupId() and
getVersion() all equals.
equals in class java.lang.Objectother - Object to compare
java.lang.String getArtifactId()
java.lang.String getGroupId()
java.lang.String getVersion()
int hashCode()
BasicArtifact.hashCode().
hashCode in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||