RiskLevel Class

public final class RiskLevel
extends ExpandableStringEnum<RiskLevel>

The risk level.

Field Summary

Modifier and Type Field and Description
static final RiskLevel CRITICAL

Critical.

static final RiskLevel HIGH

High.

static final RiskLevel LOW

Low.

static final RiskLevel MEDIUM

Medium.

static final RiskLevel NONE

None.

Constructor Summary

Constructor Description
RiskLevel()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of RiskLevel value.

Method Summary

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

Creates or finds a RiskLevel from its string representation.

static Collection<RiskLevel> values()

Gets known RiskLevel values.

Methods inherited from ExpandableStringEnum

Methods inherited from java.lang.Object

Field Details

CRITICAL

public static final RiskLevel CRITICAL

Critical.

HIGH

public static final RiskLevel HIGH

High.

LOW

public static final RiskLevel LOW

Low.

MEDIUM

public static final RiskLevel MEDIUM

Medium.

NONE

public static final RiskLevel NONE

None.

Constructor Details

RiskLevel

@Deprecated
public RiskLevel()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of RiskLevel value.

Method Details

fromString

public static RiskLevel fromString(String name)

Creates or finds a RiskLevel from its string representation.

Parameters:

name - a name to look for.

Returns:

the corresponding RiskLevel.

values

public static Collection<RiskLevel> values()

Gets known RiskLevel values.

Returns:

known RiskLevel values.

Applies to