public class Notification extends Object implements Serializable
This class represents a notification that will be delivered to users. This is a general concept and it has no
knowledge of the possible ways to be delivered (see NotificationChannel) or of the users who should
receive it (see NotificationDispatcher).
| Constructor and Description |
|---|
Notification(String type)
Create a new
Notification of the given type. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getFieldValue(String field)
Returns the value of a field.
|
String |
getType()
Returns the type of the notification
|
int |
hashCode() |
Notification |
setFieldValue(String field,
String value)
Adds a field (kind of property) to the notification
|
String |
toString() |
public Notification(String type)
Create a new Notification of the given type.
type - the type of notificationpublic Notification setFieldValue(String field, String value)
field - the name of the field (= the key)value - the value of the fieldpublic String getFieldValue(String field)
field - the fieldCopyright © 2009-2012 SonarSource. All Rights Reserved.