Package com.djrapitops.plan.version
Class VersionInfo
- java.lang.Object
-
- com.djrapitops.plan.version.VersionInfo
-
- All Implemented Interfaces:
java.lang.Comparable<VersionInfo>
public class VersionInfo extends java.lang.Object implements java.lang.Comparable<VersionInfo>
Data class for reading version.txt in https://github.com/AuroraLS3/Plan-PlayerAnalytics.
-
-
Constructor Summary
Constructors Constructor Description VersionInfo(boolean release, VersionNumber version, java.lang.String downloadUrl, java.lang.String changeLogUrl)
VersionInfo(boolean release, java.lang.String version, java.lang.String downloadUrl, java.lang.String changeLogUrl)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(VersionInfo o)
boolean
equals(java.lang.Object o)
java.lang.String
getChangeLogUrl()
java.lang.String
getDownloadUrl()
VersionNumber
getVersion()
int
hashCode()
boolean
isRelease()
-
-
-
Constructor Detail
-
VersionInfo
public VersionInfo(boolean release, java.lang.String version, java.lang.String downloadUrl, java.lang.String changeLogUrl)
-
VersionInfo
public VersionInfo(boolean release, VersionNumber version, java.lang.String downloadUrl, java.lang.String changeLogUrl)
-
-
Method Detail
-
isRelease
public boolean isRelease()
-
getVersion
public VersionNumber getVersion()
-
getDownloadUrl
public java.lang.String getDownloadUrl()
-
getChangeLogUrl
public java.lang.String getChangeLogUrl()
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
compareTo
public int compareTo(VersionInfo o)
- Specified by:
compareTo
in interfacejava.lang.Comparable<VersionInfo>
-
-