public final class ArtifactCoordinates extends Object
| Constructor and Description |
|---|
ArtifactCoordinates(String groupId,
String artifactId,
String version)
Construct a new instance with an empty classifier.
|
ArtifactCoordinates(String groupId,
String artifactId,
String version,
String classifier)
Construct a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(ArtifactCoordinates obj)
Determine whether this coordinates object equals the target object.
|
boolean |
equals(Object obj)
Determine whether this coordinates object equals the target object.
|
static ArtifactCoordinates |
fromString(String string)
Parse a string and produce artifact coordinates from it.
|
String |
getArtifactId()
Get the artifact ID.
|
String |
getClassifier()
Get the classifier.
|
String |
getGroupId()
Get the group ID.
|
String |
getVersion()
Get the version.
|
int |
hashCode()
Get the hash code.
|
String |
relativeArtifactPath()
Create a relative repository path for the given artifact coordinates with a
'/' separator. |
String |
relativeArtifactPath(char separator)
Create a relative repository path for the given artifact coordinates.
|
String |
toString()
Get the string representation.
|
public ArtifactCoordinates(String groupId, String artifactId, String version, String classifier)
groupId - the group ID (must not be null)artifactId - the artifact ID (must not be null)version - the version string (must not be null)classifier - the classifier string (must not be null, may be empty)public static ArtifactCoordinates fromString(String string)
string - the string to parse (must not be null)null)public String getGroupId()
null)public String getArtifactId()
null)public String getVersion()
null)public String getClassifier()
null, may be empty)public String relativeArtifactPath(char separator)
separator - the separator character to use (typically '/' or File.separatorChar)public String relativeArtifactPath()
'/' separator.public boolean equals(Object obj)
public boolean equals(ArtifactCoordinates obj)
obj - the target objecttrue if the object is equal to this one, false otherwisepublic int hashCode()
Copyright © 2017. All rights reserved.