@Portable public enum NotificationType extends Enum<NotificationType>
Modifier and Type | Method and Description |
---|---|
static NotificationType |
fromExitCode(int exitCode)
Returns the
NotificationType that matches a given exitCode |
static NotificationType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static NotificationType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final NotificationType SUCCESS
public static final NotificationType WARNING
public static final NotificationType ERROR
public static NotificationType[] values()
for (NotificationType c : NotificationType.values()) System.out.println(c);
public static NotificationType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static NotificationType fromExitCode(int exitCode)
NotificationType
that matches a given exitCodeexitCode
- The exit code to get it's notification typeNotificationType
that has the exitCode in range, if not found it will return ERROR.Copyright © 2012–2020 JBoss by Red Hat. All rights reserved.