Package com.plotsquared.core
Class PlotVersion
java.lang.Object
com.plotsquared.core.PlotVersion
-
Field Summary
-
Constructor Summary
ConstructorDescriptionPlotVersion(int year, int month, int day, int hash, String rawVersion)
PlotVersion(String rawVersion, String commit, String date)
-
Method Summary
Modifier and TypeMethodDescriptionboolean
isLaterVersion(int[] verArray)
Compare a given version with the one cached here.boolean
isLaterVersion(@NonNull String versionString)
Compare a given version string with the one cached here.toString()
static @NonNull PlotVersion
@NonNull String
-
Field Details
-
year
public final int year -
month
public final int month -
day
public final int day -
hash
public final int hash -
versionString
-
version
public final int[] version -
suffix
-
-
Constructor Details
-
PlotVersion
-
PlotVersion
-
-
Method Details
-
tryParse
public static @NonNull PlotVersion tryParse(@NonNull String versionString, @NonNull String commit, @NonNull String date) -
versionString
-
toString
-
isLaterVersion
Compare a given version string with the one cached here.- Parameters:
versionString
- the version to compare- Returns:
- true if the given version is a "later" version
-
isLaterVersion
public boolean isLaterVersion(int[] verArray)Compare a given version with the one cached here.- Parameters:
verArray
- the version to compare- Returns:
- true if the given version is a "later" version
-