|
NextApp Echo App Container 1.0.5 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object nextapp.echoservlet.util.Version
Utility class for comparing version numbers in String format. This class may be used to determine if a version number is greater than another to make a hypothesis about whether the version is compatible with a requirement.
Constructor Summary | |
private |
Version()
Non-instantiable class. |
Method Summary | |
private static int |
getTokenValue(java.lang.String token)
Returns a best guess translation of a string to an integer. |
static boolean |
meetsRequirement(java.lang.String requiredVersion,
java.lang.String testVersion)
Tests to see if a version number meets or exceeds a requirement. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
private Version()
Method Detail |
public static final boolean meetsRequirement(java.lang.String requiredVersion, java.lang.String testVersion)
requiredVersion
- The version number that is required.testVersion
- The version number that is available.
private static final int getTokenValue(java.lang.String token)
token
- A string that may or may not contain a number.
|
NextApp Echo App Container 1.0.5 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |