| Modifier and Type | Class and Description |
|---|---|
| private static class | Linux.
Lazy constants for WSL. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static boolean | Returns: true if the operating system is the Windows Subsystem for Linux, or false if it is notReturns true if the operating system is the Windows Subsystem for Linux, or false if it is not. |
| public static boolean | Returns: true if the WSL version is 2 or later, or false if it is notReturns true if the WSL version is 2 or later, or false if it is not. |
| Linux | back to summary |
|---|---|
| private Linux() | |
| isWSL | back to summary |
|---|---|
| public static boolean isWSL() Returns true if the operating system is the Windows Subsystem for Linux, or false if it is not.
| |
| isWSLv2 | back to summary |
|---|---|
| public static boolean isWSLv2() Returns true if the WSL version is 2 or later, or false if it is not.
| |
| Modifier and Type | Field and Description |
|---|---|
| private static final int |
| Access | Constructor and Description |
|---|---|
| private |
| version | back to summary |
|---|---|
| private static final int version | |
| WSL | back to summary |
|---|---|
| private WSL() | |