SudokuFX
Loading...
Searching...
No Matches
fr.softsf.sudokufx.common.enums.OsName Enum Reference

Utility enum for operating system names. More...

+ Collaboration diagram for fr.softsf.sudokufx.common.enums.OsName:

Public Member Functions

 OsName (final String os)
 
final String getOs ()
 

Static Public Member Functions

static OsName detect ()
 Detects the current operating system by reading the system property "os.name".
 

Public Attributes

 EMPTY_OS_FOR_TESTS =("")
 
 LINUX =("linux")
 
 MAC =("mac")
 
 WINDOWS =("windows")
 
 WRONG_OS_FOR_TESTS =("wrongOs")
 

Private Attributes

final String os
 

Detailed Description

Utility enum for operating system names.

Constructor & Destructor Documentation

◆ OsName()

fr.softsf.sudokufx.common.enums.OsName.OsName ( final String os)

Member Function Documentation

◆ 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
IllegalArgumentExceptionif the OS name is null, blank, or unsupported
+ Here is the call graph for this function:

◆ getOs()

final String fr.softsf.sudokufx.common.enums.OsName.getOs ( )

Member Data Documentation

◆ 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: