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 WeakReference
Method Summary |
boolean |
equals(Object object)
Returns true if this object is logically equivalent to the one passed
in. |
Method |
getMethod()
Returns the method that will be invoked on the listener object. |
int |
hashCode()
Returns hash code for this notification target. |
String |
toString()
Returns a string representation of this NotificationTarget for
debugging purposes. |
hashCode
protected int hashCode
method
protected Method method
PNotificationCenter.NotificationTarget
public PNotificationCenter.NotificationTarget(Object object,
Method method)
getMethod
public 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 Object
- Returns:
- hash code
equals
public boolean equals(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 Object
- Returns:
- true if logically equivalent
toString
public String toString()
- Returns a string representation of this NotificationTarget for
debugging purposes.
- Overrides:
toString
in class Object
- Returns:
- string representation
Copyright © 1995-2011 Piccolo2D. All Rights Reserved.