public class GiGrouperVersion extends Object
Modifier and Type | Field and Description |
---|---|
static String |
GROUPER_VERSION
current version
this must be three integers separated by dots for major version, minor version, and build number.
|
Constructor and Description |
---|
GiGrouperVersion(String versionString)
private constructor
|
Modifier and Type | Method and Description |
---|---|
static boolean |
_grouperVersionGreaterOrEqualHelper(String grouperVersion,
String anotherVersion)
helper method for unit testing
|
static GiGrouperVersion |
currentVersion()
current grouper version
|
boolean |
equals(Object obj) |
boolean |
greaterOrEqualToArg(GiGrouperVersion version)
see if the grouper version is greater than or equal to a certain version
|
boolean |
greaterOrEqualToArg(String version)
see if the grouper version is greater than or equal to a certain version
|
static boolean |
grouperVersionGreaterOrEqual(String version)
see if the grouper version is greater than or equal to a certain version
|
int |
hashCode() |
boolean |
lessThanArg(GiGrouperVersion other)
see if this version is less than the argument one
|
boolean |
lessThanArg(GiGrouperVersion other,
boolean orEqual)
see if this version is less than the argument one
|
boolean |
lessThanMajorMinorArg(GiGrouperVersion other,
boolean orEqual)
see if this version is less than the argument one, only considering major and minor version
|
static String |
stringValueOrNull(String versionString)
return the parsed and tostring version of this version string (consistent),
or null if nothing passed in
|
String |
toString() |
static GiGrouperVersion |
valueOfIgnoreCase(String string)
convert string to version like an enum would
|
static GiGrouperVersion |
valueOfIgnoreCase(String string,
boolean exceptionOnNull)
convert string to version like an enum would
|
public static final String GROUPER_VERSION
public GiGrouperVersion(String versionString)
versionString
- public static String stringValueOrNull(String versionString)
versionString
- public boolean equals(Object obj)
equals
in class Object
Object.equals(Object)
public int hashCode()
hashCode
in class Object
Object.hashCode()
public String toString()
toString
in class Object
Object.toString()
public static GiGrouperVersion currentVersion()
public static GiGrouperVersion valueOfIgnoreCase(String string)
string
- cannot be blankpublic static GiGrouperVersion valueOfIgnoreCase(String string, boolean exceptionOnNull)
string
- exceptionOnNull
- will not allow null or blank entriespublic static boolean grouperVersionGreaterOrEqual(String version)
version
- public boolean greaterOrEqualToArg(String version)
version
- public boolean lessThanArg(GiGrouperVersion other, boolean orEqual)
other
- orEqual
- public boolean lessThanMajorMinorArg(GiGrouperVersion other, boolean orEqual)
other
- orEqual
- public boolean lessThanArg(GiGrouperVersion other)
other
- public boolean greaterOrEqualToArg(GiGrouperVersion version)
version
- Copyright © 2016 Internet2. All rights reserved.