edu.umd.cs.piccolox.event
Class PNotificationCenter.NotificationTarget
java.lang.Object
java.lang.ref.Reference
java.lang.ref.WeakReference
edu.umd.cs.piccolox.event.PNotificationCenter.NotificationTarget
- Enclosing class:
- PNotificationCenter
protected static class PNotificationCenter.NotificationTarget
- extends java.lang.ref.WeakReference
Field Summary |
protected int |
hashCode
|
protected java.lang.reflect.Method |
method
|
Method Summary |
boolean |
equals(java.lang.Object object)
Returns true if this object is logically equivalent to the one passed
in. |
java.lang.reflect.Method |
getMethod()
Returns the method that will be invoked on the listener object. |
int |
hashCode()
Returns hash code for this notification target. |
java.lang.String |
toString()
Returns a string representation of this NotificationTarget for
debugging purposes. |
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 |
hashCode
protected int hashCode
method
protected java.lang.reflect.Method method
PNotificationCenter.NotificationTarget
public PNotificationCenter.NotificationTarget(java.lang.Object object,
java.lang.reflect.Method method)
getMethod
public java.lang.reflect.Method getMethod()
- Returns the method that will be invoked on the listener object.
- Returns:
- method to be invoked with notification is to be dispatched
hashCode
public int hashCode()
- Returns hash code for this notification target.
- Overrides:
hashCode
in class java.lang.Object
- Returns:
- hash code
equals
public boolean equals(java.lang.Object object)
- Returns true if this object is logically equivalent to the one passed
in. For this to happen they must have the same method and object.
- Overrides:
equals
in class java.lang.Object
- Returns:
- true if logically equivalent
toString
public java.lang.String toString()
- Returns a string representation of this NotificationTarget for
debugging purposes.
- Overrides:
toString
in class java.lang.Object
- Returns:
- string representation