OSType Class

public final class OSType
extends ExpandableStringEnum<OSType>

OsType to be used to specify os type. Choose from Linux and Windows. Default to Linux.

Field Summary

Modifier and Type Field and Description
static final OSType LINUX

Static value Linux for OSType.

static final OSType WINDOWS

Static value Windows for OSType.

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

Static value Linux for OSType.

WINDOWS

public static final OSType WINDOWS

Static value Windows for OSType.

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 values()

Gets known OSType values.

Returns:

known OSType values.

Applies to