|
||||||||||
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 long |
getMaxMemory()
Runtime.getRuntime().maxMemory() but check for bogus values |
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 |
isARM()
|
static boolean |
isGentoo()
|
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 |
isJava7()
Better than (new VersionComparator()).compare(System.getProperty("java.version"), "1.7") >= 0 as it handles Android also, where java.version = "0". |
static boolean |
isJava8()
|
static boolean |
isJava9()
|
static boolean |
isMac()
|
static boolean |
isWindows()
|
static boolean |
isX86()
|
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 isGentoo()
public static boolean isARM()
public static boolean isX86()
public static boolean isJava6()
public static boolean isJava7()
public static boolean isJava8()
public static boolean isJava9()
public static boolean is64Bit()
public static int getAndroidVersion()
public static boolean hasWrapper()
public static long getMaxMemory()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |