Class GiGrouperVersion
java.lang.Object
edu.internet2.middleware.grouperInstaller.GiGrouperVersion
keep track of which version grouper is. Update this file (the GROUPER_VERSION constant) before each
non-release-candidate release
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
_grouperVersionGreaterOrEqualHelper
(String grouperVersion, String anotherVersion) helper method for unit testingstatic GiGrouperVersion
current grouper versionboolean
boolean
greaterOrEqualToArg
(GiGrouperVersion version) see if the grouper version is greater than or equal to a certain versionboolean
greaterOrEqualToArg
(String version) see if the grouper version is greater than or equal to a certain versionstatic boolean
grouperVersionGreaterOrEqual
(String version) see if the grouper version is greater than or equal to a certain versionint
hashCode()
boolean
lessThanArg
(GiGrouperVersion other) see if this version is less than the argument oneboolean
lessThanArg
(GiGrouperVersion other, boolean orEqual) see if this version is less than the argument oneboolean
lessThanMajorMinorArg
(GiGrouperVersion other, boolean orEqual) see if this version is less than the argument one, only considering major and minor versionstatic String
stringValueOrNull
(String versionString) return the parsed and tostring version of this version string (consistent), or null if nothing passed intoString()
static GiGrouperVersion
valueOfIgnoreCase
(String string) convert string to version like an enum wouldstatic GiGrouperVersion
valueOfIgnoreCase
(String string, boolean exceptionOnNull) convert string to version like an enum would
-
Constructor Details
-
GiGrouperVersion
private constructor- Parameters:
versionString
-
-
-
Method Details
-
stringValueOrNull
return the parsed and tostring version of this version string (consistent), or null if nothing passed in- Parameters:
versionString
-- Returns:
- the version string
-
equals
-
hashCode
public int hashCode() -
toString
-
currentVersion
current grouper version- Returns:
- current grouper version
-
valueOfIgnoreCase
convert string to version like an enum would- Parameters:
string
- cannot be blank- Returns:
- the enum or null or exception if not found
-
valueOfIgnoreCase
convert string to version like an enum would- Parameters:
string
-exceptionOnNull
- will not allow null or blank entries- Returns:
- the enum or null or exception if not found
-
grouperVersionGreaterOrEqual
see if the grouper version is greater than or equal to a certain version- Parameters:
version
-- Returns:
- true if the grouper version is greater than or equal to a certain version
-
greaterOrEqualToArg
see if the grouper version is greater than or equal to a certain version- Parameters:
version
-- Returns:
- true if the grouper version is greater than or equal to a certain version
-
lessThanArg
see if this version is less than the argument one- Parameters:
other
-orEqual
-- Returns:
- true if less than, false if equal or greater
-
lessThanMajorMinorArg
see if this version is less than the argument one, only considering major and minor version- Parameters:
other
-orEqual
-- Returns:
- true if less than, false if equal or greater
-
lessThanArg
see if this version is less than the argument one- Parameters:
other
-- Returns:
- true if less than, false if equal or greater
-
greaterOrEqualToArg
see if the grouper version is greater than or equal to a certain version- Parameters:
version
-- Returns:
- true if the grouper version is greater than or equal to a certain version
-
_grouperVersionGreaterOrEqualHelper
public static boolean _grouperVersionGreaterOrEqualHelper(String grouperVersion, String anotherVersion) helper method for unit testing- Parameters:
grouperVersion
-anotherVersion
-- Returns:
- true if grouper is greater
-