Class Artifact
- java.lang.Object
-
- net.minecraftforge.fml.relauncher.libraries.Artifact
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String
artifact
private java.lang.String
classifier
private java.util.Date
date
private java.lang.String
extension
private java.lang.String
filename
private java.lang.String
folder
private java.lang.String
group
private Repository
repo
private java.lang.String
timestamp
private java.lang.String
value
private org.apache.maven.artifact.versioning.ComparableVersion
version
-
Constructor Summary
Constructors Constructor Description Artifact(Artifact other, Repository repo, java.lang.String timestamp)
Artifact(Repository repo, java.lang.String value, java.lang.String timestamp)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(Artifact o)
int
compareVersion(Artifact o)
java.io.File
getFile()
java.lang.String
getFilename()
java.lang.String
getFolder()
java.lang.String
getPath()
Repository
getRepository()
java.io.File
getSnapshotMeta()
java.lang.String
getTimestamp()
org.apache.maven.artifact.versioning.ComparableVersion
getVersion()
int
hashCode()
boolean
isSnapshot()
boolean
matchesID(Artifact o)
java.lang.String
toString()
-
-
-
Field Detail
-
repo
private final Repository repo
-
group
private final java.lang.String group
-
artifact
private final java.lang.String artifact
-
classifier
private final java.lang.String classifier
-
extension
private final java.lang.String extension
-
value
private final java.lang.String value
-
version
private final org.apache.maven.artifact.versioning.ComparableVersion version
-
timestamp
private final java.lang.String timestamp
-
date
private final java.util.Date date
-
filename
private java.lang.String filename
-
folder
private java.lang.String folder
-
-
Constructor Detail
-
Artifact
public Artifact(Repository repo, java.lang.String value, java.lang.String timestamp)
-
Artifact
public Artifact(Artifact other, Repository repo, java.lang.String timestamp)
-
-
Method Detail
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
getFilename
public java.lang.String getFilename()
-
getFolder
public java.lang.String getFolder()
-
getPath
public java.lang.String getPath()
-
getFile
public java.io.File getFile()
-
getSnapshotMeta
public java.io.File getSnapshotMeta()
-
isSnapshot
public boolean isSnapshot()
-
getTimestamp
public java.lang.String getTimestamp()
-
getVersion
public org.apache.maven.artifact.versioning.ComparableVersion getVersion()
-
getRepository
public Repository getRepository()
-
matchesID
public boolean matchesID(Artifact o)
-
compareVersion
public int compareVersion(Artifact o)
-
-