Utility enum for operating system names.
More...
|
| static OsName | detect () |
| | Detects the current operating system by reading the system property "os.name".
|
| |
Utility enum for operating system names.
◆ OsName()
| fr.softsf.sudokufx.common.enums.OsName.OsName |
( |
final String | os | ) |
|
◆ detect()
| static OsName fr.softsf.sudokufx.common.enums.OsName.detect |
( |
| ) |
|
|
static |
Detects the current operating system by reading the system property "os.name".
- Returns
- the corresponding OsName enum constant (WINDOWS, LINUX, or MAC)
- Exceptions
-
| IllegalArgumentException | if the OS name is null, blank, or unsupported |
◆ getOs()
| final String fr.softsf.sudokufx.common.enums.OsName.getOs |
( |
| ) |
|
◆ EMPTY_OS_FOR_TESTS
| fr.softsf.sudokufx.common.enums.OsName.EMPTY_OS_FOR_TESTS =("") |
◆ LINUX
| fr.softsf.sudokufx.common.enums.OsName.LINUX =("linux") |
◆ MAC
| fr.softsf.sudokufx.common.enums.OsName.MAC =("mac") |
◆ os
| final String fr.softsf.sudokufx.common.enums.OsName.os |
|
private |
◆ WINDOWS
| fr.softsf.sudokufx.common.enums.OsName.WINDOWS =("windows") |
◆ WRONG_OS_FOR_TESTS
| fr.softsf.sudokufx.common.enums.OsName.WRONG_OS_FOR_TESTS =("wrongOs") |
The documentation for this enum was generated from the following file:
- src/main/java/fr/softsf/sudokufx/common/enums/OsName.java