edu.umd.cs.piccolox.event
Class PNotificationCenter.NotificationTarget

java.lang.Object
  extended by java.lang.ref.Reference
      extended by java.lang.ref.WeakReference
          extended by edu.umd.cs.piccolox.event.PNotificationCenter.NotificationTarget
Enclosing class:
PNotificationCenter

protected static class PNotificationCenter.NotificationTarget
extends WeakReference


Field Summary
protected  int hashCode
           
protected  Method method
           
 
Constructor Summary
PNotificationCenter.NotificationTarget(Object object, Method method)
           
 
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.
 
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
 

Field Detail

hashCode

protected int hashCode

method

protected Method method
Constructor Detail

PNotificationCenter.NotificationTarget

public PNotificationCenter.NotificationTarget(Object object,
                                              Method method)
Method Detail

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.