protected static class PNotificationCenter.NotificationKey extends WeakReference
| Constructor and Description |
|---|
PNotificationCenter.NotificationKey(Object name,
Object object)
Creates a notification key with the provided name associated to the
object given.
|
PNotificationCenter.NotificationKey(Object name,
Object object,
ReferenceQueue queue)
Creates a notification key with the provided name associated with the
provided object.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object anObject)
Two keys are equal if they have the same name and are associated with
the same object and conform to all other equals rules.
|
int |
hashCode() |
Object |
name()
Returns name of notification this key represents.
|
String |
toString()
Returns a nice string representation of this notification key.
|
clear, enqueue, get, isEnqueuedpublic PNotificationCenter.NotificationKey(Object name, Object object)
name - name of notificationobject - associated objectpublic PNotificationCenter.NotificationKey(Object name, Object object, ReferenceQueue queue)
name - name of notificationobject - associated objectqueue - ReferenceQueue in which this NotificationKey will be
appended once it has been cleared to be garbage collectedCopyright © 1995-2012 Piccolo2D. All Rights Reserved.