|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.i2p.util.SystemVersion
public abstract class SystemVersion
Methods to find out what system we are running on
Constructor Summary | |
---|---|
SystemVersion()
|
Method Summary | |
---|---|
static int |
getAndroidVersion()
Identical to android.os.Build.VERSION.SDK_INT. |
static boolean |
hasWrapper()
Is the wrapper present? Same as I2PAppContext.hasWrapper() |
static boolean |
is64Bit()
This isn't always correct. |
static boolean |
isAndroid()
|
static boolean |
isApache()
Apache Harmony JVM, or Android |
static boolean |
isGNU()
gij or JamVM with GNU Classpath |
static boolean |
isJava6()
Better than (new VersionComparator()).compare(System.getProperty("java.version"), "1.6") >= 0 as it handles Android also, where java.version = "0". |
static boolean |
isMac()
|
static boolean |
isWindows()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SystemVersion()
Method Detail |
---|
public static boolean isWindows()
public static boolean isMac()
public static boolean isAndroid()
public static boolean isApache()
public static boolean isGNU()
public static boolean isJava6()
public static boolean is64Bit()
public static int getAndroidVersion()
public static boolean hasWrapper()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |