net.sourceforge.basher.events
Class BasherEvent

java.lang.Object
  extended by java.util.EventObject
      extended by net.sourceforge.basher.events.BasherEvent
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
AverageCollectedEvent, BasherShutdownEvent, CollectionEvent, InitializationEvent, NoTasksAvailableEvent, PhaseTransitionEvent, TasksAvailableEvent, ThreadAddedEvent, ThreadRemovedEvent, TickEvent

public abstract class BasherEvent
extends EventObject

Version:
$Revision$
Author:
Johan Lindquist
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
BasherEvent()
           
BasherEvent(Object source)
          Constructs a prototypical Event.
 
Method Summary
 boolean equals(Object o)
           
 long getCreationTime()
          Retrieves the creation time of this event instance.
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.util.EventObject
getSource
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BasherEvent

public BasherEvent()

BasherEvent

public BasherEvent(Object source)
Constructs a prototypical Event.

Parameters:
source - The object on which the Event initially occurred.
Throws:
IllegalArgumentException - if source is null.
Method Detail

getCreationTime

public long getCreationTime()
Retrieves the creation time of this event instance.

Returns:
The creation time

toString

public String toString()
Overrides:
toString in class EventObject

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object


Copyright © 2006-2010 Basher Team. All Rights Reserved.