com.opera.core.systems.util
Class VersionUtil

java.lang.Object
  extended by com.opera.core.systems.util.VersionUtil

public class VersionUtil
extends java.lang.Object

A replacement for a subset of com.sun.xml.ws.util.VersionUtil.

Author:
Jan Vidar Krey

Method Summary
static int compare(java.lang.String a, java.lang.String b)
          Returns a negative number if the first version is lower than the second, zero if they are equal, and a positive number if the first version is higher than the second.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

compare

public static int compare(java.lang.String a,
                          java.lang.String b)
Returns a negative number if the first version is lower than the second, zero if they are equal, and a positive number if the first version is higher than the second.

Parameters:
a -
b -
Returns:


Copyright © 2011. All Rights Reserved.