insensa.helpers
Class VersionHelper
java.lang.Object
insensa.helpers.VersionHelper
public class VersionHelper
- extends java.lang.Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
VERSION_OLDER
public static final int VERSION_OLDER
- See Also:
- Constant Field Values
VERSION_NEWER
public static final int VERSION_NEWER
- See Also:
- Constant Field Values
VERSION_EQUAL
public static final int VERSION_EQUAL
- See Also:
- Constant Field Values
VERSION_UNKNOWN
public static final int VERSION_UNKNOWN
- See Also:
- Constant Field Values
OS_UNKNOWN
public static final int OS_UNKNOWN
- See Also:
- Constant Field Values
OS_WIN
public static final int OS_WIN
- See Also:
- Constant Field Values
OS_LINUX
public static final int OS_LINUX
- See Also:
- Constant Field Values
OS_MAC
public static final int OS_MAC
- See Also:
- Constant Field Values
ARCH_UNKNOWN
public static final int ARCH_UNKNOWN
- See Also:
- Constant Field Values
ARCH_32BIT
public static final int ARCH_32BIT
- See Also:
- Constant Field Values
ARCH_64BIT
public static final int ARCH_64BIT
- See Also:
- Constant Field Values
itemInsensa
private ItemInsensa itemInsensa
instance
private static VersionHelper instance
VersionHelper
private VersionHelper()
- Throws:
org.jdom.JDOMException
java.io.IOException
getInstance
public static VersionHelper getInstance()
- Returns:
getVersion
public java.lang.String getVersion()
- Returns:
getArch
public java.lang.String getArch()
getOs
public java.lang.String getOs()
compareVersion
public static java.lang.Integer compareVersion(java.lang.String testObject,
java.lang.String compareWith)
- Compares two version numbers
- Parameters:
testObject
- compareWith
-
- Returns:
isOlderThan
public static boolean isOlderThan(java.lang.String testObject,
java.lang.String compareWith)
- Deprecated. since 0.1.6> Use
compareVersion(String, String)
instead
- Parameters:
testObject
- compareWith
-
- Returns: