Package org.savantbuild.dep.domain
Class ArtifactID
java.lang.Object
org.savantbuild.dep.domain.ArtifactID
- All Implemented Interfaces:
Comparable<ArtifactID>
This class contains the properties that define an artifacts identity. Any two artifacts whose identity match are
considered the same artifact. All other properties associated with the artifact usually determine the artifacts
variant (such as version).
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionArtifactID(String spec) Constructs an artifact id using the shorthand.ArtifactID(String group, String project, String name, String type) Constructs an artifact id, which is composed of a group, project, name, and type -
Method Summary
-
Field Details
-
group
-
name
-
project
-
type
-
-
Constructor Details
-
ArtifactID
public ArtifactID(String group, String project, String name, String type) throws NullPointerException Constructs an artifact id, which is composed of a group, project, name, and type- Parameters:
group- the artifact groupproject- the artifact projectname- the artifact nametype- the artifact type- Throws:
NullPointerException- If any of the arguments are null.
-
ArtifactID
Constructs an artifact id using the shorthand.- Parameters:
spec- The spec.- Throws:
NullPointerException- If any of the arguments are null.
-
-
Method Details
-
compareTo
- Specified by:
compareToin interfaceComparable<ArtifactID>
-
equals
-
hashCode
public int hashCode() -
toString
-