Class Artifact
java.lang.Object
org.moddingx.launcherlib.util.Artifact
- All Implemented Interfaces:
Serializable, Comparable<Artifact>
Represents a maven artifact.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionintbooleanstatic ArtifactCreates a new artifact from the given descriptor.static ArtifactCreates a new artifact from the given values.static ArtifactCreates a new artifact from the given values.static ArtifactCreates a new artifact from the given values.Gets the artifacts classifier ornullif there is none.Gets the artifacts descriptor.Gets the artifacts extension ornullif there is none.getGroup()Gets the artifacts group.getName()Gets the artifacts name.getPath()Gets the path of the artifact inside a maven repository.getPom()Gets an artifact describing the POM of this artifact.Gets the artifacts version.inthashCode()toString()withClassifier(String classifier) Returns a copy of this artifact with the given classifier and no explicit extension.withClassifier(String classifier, String extension) Returns a copy of this artifact with the given classifier and extension.
-
Method Details
-
from
-
from
-
from
-
from
-
getGroup
Gets the artifacts group. -
getName
Gets the artifacts name. -
getVersion
Gets the artifacts version. -
getClassifier
Gets the artifacts classifier ornullif there is none. -
getExtension
Gets the artifacts extension ornullif there is none. -
getDescriptor
Gets the artifacts descriptor. -
getPath
Gets the path of the artifact inside a maven repository. -
getPom
Gets an artifact describing the POM of this artifact. -
withClassifier
-
withClassifier
-
equals
-
hashCode
-
compareTo
- Specified by:
compareToin interfaceComparable<Artifact>
-
toString
-