org.kuali.rice.core.api.util
Class VersionHelper

java.lang.Object
  extended by 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)

Constructor Summary
VersionHelper()
           
 
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
 

Constructor Detail

VersionHelper

public VersionHelper()
Method Detail

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 version
versionTwo - string representation of a version
Returns:
int


Copyright © 2005-2012 The Kuali Foundation. All Rights Reserved.