org.kuali.rice.core.api.util
Class VersionHelper
java.lang.Object
org.kuali.rice.core.api.util.VersionHelper
public class VersionHelper
- extends Object
Helper class for comparing version strings
- Author:
- Kuali Rice Team (rice.collab@kuali.org)
Method Summary |
static int |
compareVersion(String versionOne,
String versionTwo)
returns -1 if versionOne is less than versionTwo, 0 if the versions are equal, and 1 if versionOne is more recent than versionTwo |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
VersionHelper
public VersionHelper()
compareVersion
public static int compareVersion(String versionOne,
String versionTwo)
- returns -1 if versionOne is less than versionTwo, 0 if the versions are equal, and 1 if versionOne is more recent than versionTwo
- Parameters:
versionOne
- string representation of a versionversionTwo
- string representation of a version
- Returns:
- int
Copyright © 2005-2012 The Kuali Foundation. All Rights Reserved.