public class SystemUtil
extends java.lang.Object
Constructor and Description |
---|
SystemUtil() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
get(java.lang.String name)
Returns system property or
null if not set. |
static java.lang.String |
get(java.lang.String name,
java.lang.String defaultValue)
Returns system property.
|
static boolean |
getBoolean(java.lang.String name,
boolean defaultValue)
Returns system property as boolean.
|
static long |
getInt(java.lang.String name,
int defaultValue)
Returns system property as an int.
|
static long |
getLong(java.lang.String name,
long defaultValue)
Returns system property as a long.
|
static SystemInfo |
info()
Returns system information.
|
public static java.lang.String get(java.lang.String name)
null
if not set.public static java.lang.String get(java.lang.String name, java.lang.String defaultValue)
public static boolean getBoolean(java.lang.String name, boolean defaultValue)
public static long getInt(java.lang.String name, int defaultValue)
public static long getLong(java.lang.String name, long defaultValue)
public static SystemInfo info()
Copyright © 2003-present Jodd Team