Skip to main content

Class SystemUtils

public class SystemUtils

org.viktor44.jtvision.util.SystemUtils

Summary​

Constructors​

VisibilitySignature
publicSystemUtils()

Fields​

ModifiersField nameType
public static finalOS_NAMEString
public static finalOS_ARCHString
public static finalIS_OS_MACboolean
public static finalIS_OS_WINDOWSboolean

Methods​

ModifiersMethod signatureReturn type
private staticisOsNameMatch(String osName, String osNamePrefix)boolean

Constructors​

SystemUtils()​

No method description provided

Fields​

String OS_NAME​

A constant for the System Property os.name. Operating system name.

String OS_ARCH​

A constant for the System Property os.arch. Operating system architecture.

boolean IS_OS_MAC​

The constant true if this is Mac.

boolean IS_OS_WINDOWS​

The constant true if this is Windows.

Methods​

isOsNameMatch(String osName, String osNamePrefix)​

Tests whether the operating system matches with a case-insensitive comparison.

This method is package private instead of private to support unit test invocation.

Parameters

  • osName - the actual OS name.
  • osNamePrefix - the prefix for the expected OS name.

Returns

true for a case-insensitive match, or false if not.