Package com.plotsquared.core
Class PlotVersion
java.lang.Object
com.plotsquared.core.PlotVersion
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionPlotVersion
(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
-
Field Details
-
year
-
month
-
day
-
hash
-
versionString
-
version
-
suffix
-
-
Constructor Details
-
PlotVersion
-
PlotVersion
-
-
Method Details
-
tryParse
-
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
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
-