Share via


OSType Class

public final class OSType
extends ExpandableStringEnum<OSType>

OSType enums.

Field Summary

Modifier and Type Field and Description
static final OSType LINUX

The Linux operating system.

static final OSType WINDOWS

The Windows operating system.

Constructor Summary

Constructor Description
OSType()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of OSType value.

Method Summary

Modifier and Type Method and Description
static OSType fromString(String name)

Creates or finds a OSType from its string representation.

static Collection<OSType> values()

Gets known OSType values.

Methods inherited from ExpandableStringEnum

Methods inherited from java.lang.Object

Field Details

LINUX

public static final OSType LINUX

The Linux operating system.

WINDOWS

public static final OSType WINDOWS

The Windows operating system.

Constructor Details

OSType

@Deprecated
public OSType()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of OSType value.

Method Details

fromString

public static OSType fromString(String name)

Creates or finds a OSType from its string representation.

Parameters:

name - a name to look for.

Returns:

the corresponding OSType.

values

public static Collection<OSType> values()

Gets known OSType values.

Returns:

known OSType values.

Applies to