
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 |
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 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 © 2015 JBoss by Red Hat. All rights reserved.