Class OS
- java.lang.Object
-
- org.eclipse.lemminx.utils.platform.OS
-
public class OS extends Object
OS information
-
-
Constructor Summary
Constructors Constructor Description OS()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetArch()Returns the OS arch.StringgetName()Returns the OS name.StringgetVersion()Returns the OS version.booleanisWindows()Returns true if the operating system is Windows and false otherwise
-
-
-
Method Detail
-
getName
public String getName()
Returns the OS name.- Returns:
- the OS name.
-
getVersion
public String getVersion()
Returns the OS version.- Returns:
- the OS version.
-
getArch
public String getArch()
Returns the OS arch.- Returns:
- the OS arch.
-
isWindows
public boolean isWindows()
Returns true if the operating system is Windows and false otherwise- Returns:
- true if the operating system is Windows and false otherwise
-
-