|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.smartics.properties.resource.domain.ArtifactId
@ThreadSafe public final class ArtifactId
Identifies an artifact of resources.
Nested Class Summary | |
---|---|
static class |
ArtifactId.Builder Builder to create instances of ArtifactId . |
Method Summary | |
---|---|
int |
compareTo(ArtifactId o) |
static ArtifactId |
create(String groupId, String name, String version, String archiveType, String classifier) Helper to create instances of ArtifactId instead of using the ArtifactId.Builder . |
boolean |
equals(Object object) Returns true if the given object is semantically equal to the given object, false otherwise. |
String |
getArchiveType() Returns the artifact type that is expressed by the artifact's file name extension. |
String |
getClassifier() Returns the classifier to the artifact. |
String |
getGroupId() Returns the group the artifact belongs to. |
String |
getName() Returns the name of the artifact. |
String |
getVersion() Returns the version of the artifact. |
int |
hashCode() Returns the hash code of the object. |
String |
toShortString() Returns the short string representation of the object. |
String |
toString() Returns the string representation of the object. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public static ArtifactId create(String groupId, String name, String version, String archiveType, String classifier) throws IllegalArgumentException
ArtifactId
instead of using the
ArtifactId.Builder
.
groupId
- the group the artifact belongs to.
name
- the identifier of the artifact.
version
- the version of the artifact.
archiveType
- the artifact type that is expressed by the artifact's file name extension.
classifier
- the classifier to the artifact.
IllegalArgumentException
- if any of the arguments (except
classifier
) is blank or
classifier
is blank except being
null
.
public String getGroupId()
public String getName()
public String getVersion()
public String getArchiveType()
public String getClassifier()
null
.
public int hashCode()
hashCode
in class
Object
public boolean equals(Object object)
true
if the given object is semantically equal to the given object,
false
otherwise.
equals
in class
Object
object
- the instance to compare to.
true
if the given object is semantically equal to the given object,
false
otherwise.
public int compareTo(ArtifactId o)
compareTo
in interface
Comparable<ArtifactId>
Comparable.compareTo(java.lang.Object)
public String toShortString()
public String toString()
toString
in class
Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |