다음을 통해 공유


RuntimeVersion Class

public final class RuntimeVersion
extends ExpandableStringEnum<RuntimeVersion>

Defines values for RuntimeVersion.

Field Summary

Modifier and Type Field and Description
static final RuntimeVersion JAVA_11

Static value Java_11 for RuntimeVersion.

static final RuntimeVersion JAVA_17

Static value Java_17 for RuntimeVersion.

static final RuntimeVersion JAVA_8

Static value Java_8 for RuntimeVersion.

static final RuntimeVersion NET_CORE_31

Static value NetCore_31 for RuntimeVersion.

Constructor Summary

Constructor Description
RuntimeVersion()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of RuntimeVersion value.

Method Summary

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

Creates or finds a RuntimeVersion from its string representation.

static Collection<RuntimeVersion> values()

Gets known RuntimeVersion values.

Methods inherited from ExpandableStringEnum

Methods inherited from java.lang.Object

Field Details

JAVA_11

public static final RuntimeVersion JAVA_11

Static value Java_11 for RuntimeVersion.

JAVA_17

public static final RuntimeVersion JAVA_17

Static value Java_17 for RuntimeVersion.

JAVA_8

public static final RuntimeVersion JAVA_8

Static value Java_8 for RuntimeVersion.

NET_CORE_31

public static final RuntimeVersion NET_CORE_31

Static value NetCore_31 for RuntimeVersion.

Constructor Details

RuntimeVersion

@Deprecated
public RuntimeVersion()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of RuntimeVersion value.

Method Details

fromString

public static RuntimeVersion fromString(String name)

Creates or finds a RuntimeVersion from its string representation.

Parameters:

name - a name to look for.

Returns:

the corresponding RuntimeVersion.

values

public static Collection values()

Gets known RuntimeVersion values.

Returns:

known RuntimeVersion values.

Applies to