public enum NotificationKind extends java.lang.Enum<NotificationKind> implements INativeEnum
Enum Constant and Description |
---|
ActionAborted
The current element has a notification that an action was aborted.
|
ActionCompleted
The current element has a notification that an action was completed.
|
ItemAdded
The current element and/or the container has had something added to it that should be presented to the user.
|
ItemRemoved
The current element has had something removed from inside of it that should be presented to the user.
|
Other
The current element has a notification not an add, remove, completed, or aborted action.
|
Modifier and Type | Method and Description |
---|---|
static java.util.Optional<NotificationKind> |
fromNativeValue(int nativeValue) |
java.lang.String |
getConstantName() |
int |
getNativeValue() |
static NotificationKind |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static NotificationKind[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final NotificationKind ItemAdded
public static final NotificationKind ItemRemoved
public static final NotificationKind ActionCompleted
public static final NotificationKind ActionAborted
public static final NotificationKind Other
public static NotificationKind[] values()
for (NotificationKind c : NotificationKind.values()) System.out.println(c);
public static NotificationKind valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic int getNativeValue()
getNativeValue
in interface INativeEnum
public java.lang.String getConstantName()
getConstantName
in interface INativeEnum
public static java.util.Optional<NotificationKind> fromNativeValue(int nativeValue)