RuleAction Class

public final class RuleAction
extends ExpandableStringEnum<RuleAction>

The action enum for networking rule.

Field Summary

Modifier and Type Field and Description
static final RuleAction ALLOW

Static value Allow for RuleAction.

static final RuleAction DENY

Static value Deny for RuleAction.

Constructor Summary

Constructor Description
RuleAction()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of RuleAction value.

Method Summary

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

Creates or finds a RuleAction from its string representation.

static Collection<RuleAction> values()

Gets known RuleAction values.

Methods inherited from ExpandableStringEnum

Methods inherited from java.lang.Object

Field Details

ALLOW

public static final RuleAction ALLOW

Static value Allow for RuleAction.

DENY

public static final RuleAction DENY

Static value Deny for RuleAction.

Constructor Details

RuleAction

@Deprecated
public RuleAction()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of RuleAction value.

Method Details

fromString

public static RuleAction fromString(String name)

Creates or finds a RuleAction from its string representation.

Parameters:

name - a name to look for.

Returns:

the corresponding RuleAction.

values

public static Collection<RuleAction> values()

Gets known RuleAction values.

Returns:

known RuleAction values.

Applies to