Top Description Fields Constructors Methods
io.smallrye.common.os

public final Enum OS

extends Enum<OS>
Class Inheritance
Imports
java.util.Locale

Enumerated type for operating systems.

Field Summary

Modifier and TypeField and Description
public static final OS
AIX

IBM AIX operating system.

private static final OS
public static final OS
LINUX

Linux-based operating system.

public static final OS
MAC

Apple Macintosh operating system (e.g., macOS).

public static final OS
OTHER

Anything else different from the above.

public static final OS
SOLARIS

Oracle Solaris operating system.

public static final OS
WINDOWS

Microsoft Windows operating system.

Constructor Summary

AccessConstructor and Description
private
OS()

Method Summary

Modifier and TypeMethod and Description
public static OS

Returns:

the current OS
current
()

Returns the current OS.

private static OS
public boolean

Returns:

true if this OS is known to be the operating system on which the current JVM is executing
isCurrent
()

Returns true if this OS is known to be the operating system on which the current JVM is executing.

pack-priv static OS
parse(String osName)

public static OS
public static OS[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

AIXback to summary
public static final OS AIX

IBM AIX operating system.

CURRENT_OSback to summary
private static final OS CURRENT_OS
LINUXback to summary
public static final OS LINUX

Linux-based operating system.

MACback to summary
public static final OS MAC

Apple Macintosh operating system (e.g., macOS).

OTHERback to summary
public static final OS OTHER

Anything else different from the above.

SOLARISback to summary
public static final OS SOLARIS

Oracle Solaris operating system.

WINDOWSback to summary
public static final OS WINDOWS

Microsoft Windows operating system.

Constructor Detail

OSback to summary
private OS()

Method Detail

currentback to summary
public static OS current()

Returns the current OS.

Returns:OS

the current OS

determineCurrentOsback to summary
private static OS determineCurrentOs()
isCurrentback to summary
public boolean isCurrent()

Returns true if this OS is known to be the operating system on which the current JVM is executing.

Returns:boolean

true if this OS is known to be the operating system on which the current JVM is executing

parseback to summary
pack-priv static OS parse(String osName)
valueOfback to summary
public static OS valueOf(String name)
valuesback to summary
public static OS[] values()