Package com.intellij.util
Class SystemProperties
java.lang.Object
com.intellij.util.SystemProperties
Utility wrappers for accessing system properties.
-
Method Summary
Modifier and TypeMethodDescriptionstatic booleangetBooleanProperty(String key, boolean defaultValue) Returns the value of given property as a boolean, ordefaultValueif the property is not specified or malformed.static intgetIntProperty(String key, int defaultValue) Returns the value of given property as integer, ordefaultValueif the property is not specified or malformed.static Stringstatic Stringstatic StringIf you need to compare Java version with some value, useSystemInfo.isJavaVersionAtLeast(String).static Stringstatic Stringstatic Stringstatic Stringstatic Stringstatic booleanstatic booleanstatic voidsetTestUserName(String name)
-
Method Details
-
getUserHome
-
getUserName
-
setTestUserName
-
getLineSeparator
-
getOsName
-
getJavaVersion
If you need to compare Java version with some value, useSystemInfo.isJavaVersionAtLeast(String). -
getJavaVmVendor
-
getJavaHome
-
getIntProperty
Returns the value of given property as integer, ordefaultValueif the property is not specified or malformed. -
getBooleanProperty
Returns the value of given property as a boolean, ordefaultValueif the property is not specified or malformed. -
getJavaVendor
-
is
-
has
-