Package com.sgs.common.database
Enum Notification.NotificationType
- java.lang.Object
-
- java.lang.Enum<Notification.NotificationType>
-
- com.sgs.common.database.Notification.NotificationType
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<Notification.NotificationType>
- Enclosing class:
- Notification
public static enum Notification.NotificationType extends java.lang.Enum<Notification.NotificationType>
The type of notification 0 = Message 1 = Info 2 = Alert 3 = Warning 4 = Danger- Author:
- SG Systems
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getInt()
static Notification.NotificationType
parse(int type)
java.lang.String
toString()
static Notification.NotificationType
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static Notification.NotificationType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
MESSAGE
public static final Notification.NotificationType MESSAGE
-
INFO
public static final Notification.NotificationType INFO
-
ALERT
public static final Notification.NotificationType ALERT
-
WARNING
public static final Notification.NotificationType WARNING
-
DANGER
public static final Notification.NotificationType DANGER
-
-
Method Detail
-
values
public static Notification.NotificationType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (Notification.NotificationType c : Notification.NotificationType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Notification.NotificationType valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
parse
public static Notification.NotificationType parse(int type)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Enum<Notification.NotificationType>
-
getInt
public int getInt()
-
-