|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.ref.Reference
java.lang.ref.WeakReference
edu.umd.cs.piccolox.event.PNotificationCenter.NotificationKey
protected static class PNotificationCenter.NotificationKey
Represents a notification type from a particular object.
| Constructor Summary | |
|---|---|
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. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.ref.Reference |
|---|
clear, enqueue, get, isEnqueued |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public PNotificationCenter.NotificationKey(Object name,
Object object)
name - name of notificationobject - associated object
public 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 collected| Method Detail |
|---|
public Object name()
public int hashCode()
hashCode in class Objectpublic boolean equals(Object anObject)
equals in class ObjectanObject - object being tested for equivalence to this
NotificationKey
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||