Package org.wildfly.channel
Class MavenArtifact
- java.lang.Object
-
- org.wildfly.channel.ArtifactCoordinate
-
- org.wildfly.channel.MavenArtifact
-
public class MavenArtifact extends ArtifactCoordinate
-
-
Field Summary
-
Fields inherited from class org.wildfly.channel.ArtifactCoordinate
artifactId, classifier, extension, groupId, version
-
-
Constructor Summary
Constructors Constructor Description MavenArtifact(String groupId, String artifactId, String extension, String classifier, String version, File file)MavenArtifact(String groupId, String artifactId, String extension, String classifier, String version, File file, String channelName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)Optional<String>getChannelName()The name of the channel the artifact was resolved from.FilegetFile()inthashCode()StringtoString()-
Methods inherited from class org.wildfly.channel.ArtifactCoordinate
getArtifactId, getClassifier, getExtension, getGroupId, getVersion
-
-
-
-
Method Detail
-
getFile
public File getFile()
-
getChannelName
public Optional<String> getChannelName()
The name of the channel the artifact was resolved from.- Returns:
Optionalwith the name of the chanel, or an emptyOptionalif the artifact was resolved directly or the channel was not named.
-
toString
public String toString()
- Overrides:
toStringin classArtifactCoordinate
-
equals
public boolean equals(Object o)
- Overrides:
equalsin classArtifactCoordinate
-
hashCode
public int hashCode()
- Overrides:
hashCodein classArtifactCoordinate
-
-