Class PayaraVersion
- java.lang.Object
-
- fish.payara.arquillian.container.payara.PayaraVersion
-
public class PayaraVersion extends Object
A utility class to store the Payara Version and check if it's more recent than another version.
-
-
Constructor Summary
Constructors Constructor Description PayaraVersion(String versionString)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PayaraVersionbuildVersionFromBrandingProperties(String major, String minor, String update, String payaraMinor, String payaraUpdate)This Method takes in properties from a glassfish-version.properties file and constructs a new PayaraVersion object from this data.booleanisMoreRecentThan(PayaraVersion minimum)A Utility method used for comparing PayaraVersion objects When the parsed PayaraVersion is equal to the version it's being compared to, the method will return truebooleanisMoreRecentThan(String versionString)StringtoString()
-
-
-
Constructor Detail
-
PayaraVersion
public PayaraVersion(String versionString)
-
-
Method Detail
-
buildVersionFromBrandingProperties
public static PayaraVersion buildVersionFromBrandingProperties(String major, String minor, String update, String payaraMinor, String payaraUpdate) throws IllegalArgumentException
This Method takes in properties from a glassfish-version.properties file and constructs a new PayaraVersion object from this data. It is assumed that there will always be a major and minor version but update, payaraMajor and payaraMinor may be null.- Parameters:
major- - Major version of the serverminor- - Minor version of the serverupdate- - Stability/Feature patch version of the serverpayaraMinor- - Minor version of Payara 4 versionspayaraUpdate- - Stability/Feat patch version of Payara 4 versions- Returns:
- Throws:
IllegalArgumentException
-
isMoreRecentThan
public boolean isMoreRecentThan(String versionString)
-
isMoreRecentThan
public boolean isMoreRecentThan(PayaraVersion minimum)
A Utility method used for comparing PayaraVersion objects When the parsed PayaraVersion is equal to the version it's being compared to, the method will return true- Parameters:
minimum- - the version you wish to compare to- Returns:
- true if minimum is equal to or greater than the version to compare
-
-