Enum NotificationType
- java.lang.Object
-
- java.lang.Enum<NotificationType>
-
- org.springframework.social.google.api.calendar.NotificationType
-
- All Implemented Interfaces:
Serializable,Comparable<NotificationType>
public enum NotificationType extends Enum<NotificationType>
Enumeration representing a notification type.- Author:
- Martin Wink
-
-
Enum Constant Summary
Enum Constants Enum Constant Description AGENDA"agenda" - An agenda with the events of the day (sent out in the morning).EVENT_CANCELLATION"eventCancellation" - Notification sent when an event is cancelled.EVENT_CHANGE"eventChange" - Notification sent when an event is changed.EVENT_CREATION"eventCreation" - Notification sent when a new event is put on the calendar.EVENT_RESPONSE"eventResponse" - Notification sent when an event is changed.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static NotificationTypevalueOf(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.
-
-
-
Enum Constant Detail
-
EVENT_CREATION
public static final NotificationType EVENT_CREATION
"eventCreation" - Notification sent when a new event is put on the calendar.
-
EVENT_CHANGE
public static final NotificationType EVENT_CHANGE
"eventChange" - Notification sent when an event is changed.
-
EVENT_CANCELLATION
public static final NotificationType EVENT_CANCELLATION
"eventCancellation" - Notification sent when an event is cancelled.
-
EVENT_RESPONSE
public static final NotificationType EVENT_RESPONSE
"eventResponse" - Notification sent when an event is changed.
-
AGENDA
public static final NotificationType AGENDA
"agenda" - An agenda with the events of the day (sent out in the morning).
-
-
Method Detail
-
values
public static 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 (NotificationType c : 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 NotificationType valueOf(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:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
-