public class TargetedNotification extends Object implements Serializable
Constructor and Description |
---|
TargetedNotification(Notification notif,
Integer id)
Constructs a new
TargetedNotification which connects
the supplied notification with the specified identifier. |
Modifier and Type | Method and Description |
---|---|
Integer |
getListenerID()
Returns the identifier for the listener
which received the notification.
|
Notification |
getNotification()
Returns the notification.
|
String |
toString()
Returns a textual representation of the object.
|
public TargetedNotification(Notification notif, Integer id)
TargetedNotification
which connects
the supplied notification with the specified identifier. The
identifier matches one of those returned by a previous call
to add a new notification listener.notif
- the notification.id
- the identifier of the listener that received the
notification.IllegalArgumentException
- if either argument is
null
.public Notification getNotification()
public Integer getListenerID()
public String toString()
toString
in class Object
Object.getClass()
,
Object.hashCode()
,
Class.getName()
,
Integer.toHexString(int)