NotificationLevel Class

public final class NotificationLevel
extends ExpandableStringEnum<NotificationLevel>

The level of notification.

Field Summary

Modifier and Type Field and Description
static final NotificationLevel ALL

Static value All for NotificationLevel.

static final NotificationLevel CRITICAL

Static value Critical for NotificationLevel.

Constructor Summary

Constructor Description
NotificationLevel()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of NotificationLevel value.

Method Summary

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

Creates or finds a NotificationLevel from its string representation.

static Collection<NotificationLevel> values()

Gets known NotificationLevel values.

Methods inherited from ExpandableStringEnum

Methods inherited from java.lang.Object

Field Details

ALL

public static final NotificationLevel ALL

Static value All for NotificationLevel.

CRITICAL

public static final NotificationLevel CRITICAL

Static value Critical for NotificationLevel.

Constructor Details

NotificationLevel

@Deprecated
public NotificationLevel()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of NotificationLevel value.

Method Details

fromString

public static NotificationLevel fromString(String name)

Creates or finds a NotificationLevel from its string representation.

Parameters:

name - a name to look for.

Returns:

the corresponding NotificationLevel.

values

public static Collection values()

Gets known NotificationLevel values.

Returns:

known NotificationLevel values.

Applies to