edu.umd.cs.findbugs
Class SystemProperties
java.lang.Object
edu.umd.cs.findbugs.SystemProperties
public class SystemProperties
- extends java.lang.Object
- Author:
- pugh
Method Summary |
static boolean |
getBoolean(java.lang.String arg0)
Get boolean property, returning false if a security manager prevents us
from accessing system properties |
static boolean |
getBoolean(java.lang.String name,
boolean defaultValue)
|
static java.lang.Integer |
getInteger(java.lang.String arg0,
int arg1)
|
static java.lang.String |
getProperty(java.lang.String arg0)
|
static java.lang.String |
getProperty(java.lang.String arg0,
java.lang.String arg1)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ASSERTIONS_ENABLED
public static final boolean ASSERTIONS_ENABLED
SystemProperties
public SystemProperties()
getBoolean
public static boolean getBoolean(java.lang.String arg0)
- Get boolean property, returning false if a security manager prevents us
from accessing system properties
- Returns:
- true if the property exists and is set to true
getBoolean
public static boolean getBoolean(java.lang.String name,
boolean defaultValue)
getInteger
public static java.lang.Integer getInteger(java.lang.String arg0,
int arg1)
- Parameters:
arg0
- property namearg1
- default value
- Returns:
- the int value (or arg1 if the property does not exist)
getProperty
public static java.lang.String getProperty(java.lang.String arg0)
- Parameters:
arg0
- property name
- Returns:
- string value (or null if the property does not exist)
getProperty
public static java.lang.String getProperty(java.lang.String arg0,
java.lang.String arg1)
- Parameters:
arg0
- property namearg1
- default value
- Returns:
- string value (or arg1 if the property does not exist)
FindBugs™ is licenced under the LGPL. Copyright © 2006 University of Maryland.